Date: Mon, 23 Mar 2009 17:45:36 +0200 From: Jaakko Heinonen <jh@saunalahti.fi> To: Sam Leffler <sam@FreeBSD.org> Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-7@freebsd.org Subject: Re: svn commit: r190006 - in stable/7/usr.sbin: . makefs Message-ID: <20090323154536.GA2853@a91-153-125-115.elisa-laajakaista.fi> In-Reply-To: <200903190028.n2J0SsTa042656@svn.freebsd.org> References: <200903190028.n2J0SsTa042656@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2009-03-19, Sam Leffler wrote: > Log: > 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: http://www.saunalahti.fi/~jh3/patches/ffs-fs_fsbtodb.diff -- Jaakko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090323154536.GA2853>