type fixes and renames
Merge branch 'master' of github.com:angryziber/rawfs
fix types
protection against incorrect offset or size