svn commit: r190006 - in stable/7/usr.sbin: . makefs
jh at saunalahti.fi
Mon Mar 23 09:01:54 PDT 2009
On 2009-03-19, Sam Leffler wrote:
> MFC makefs: a tool for creating a file system image from a directory tree
FYI, images created with sector size (-S option) other than 512 don't
work on FreeBSD. (PR 131341)
Sector size affects to the value of the fs_fsbtodb super block field.
Looks like FreeBSD ffs requires that it's always calculated with
DEV_BSIZE (512). newfs(8) sets the sector size to DEV_BSIZE before
calculating fs_fsbtodb (however the code is marked with XXX).
Here is a workaround to recalculate fs_fsbtodb at mount time if it's not
based on DEV_BSIZE:
More information about the svn-src-stable-7