From owner-svn-src-stable@FreeBSD.ORG Mon Mar 23 16:01:54 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25BBD106564A; Mon, 23 Mar 2009 16:01:54 +0000 (UTC) (envelope-from jh@saunalahti.fi) Received: from gw01.mail.saunalahti.fi (gw01.mail.saunalahti.fi [195.197.172.115]) by mx1.freebsd.org (Postfix) with ESMTP id D4E1F8FC18; Mon, 23 Mar 2009 16:01:53 +0000 (UTC) (envelope-from jh@saunalahti.fi) Received: from a91-153-125-115.elisa-laajakaista.fi (a91-153-125-115.elisa-laajakaista.fi [91.153.125.115]) by gw01.mail.saunalahti.fi (Postfix) with SMTP id EBF97151861; Mon, 23 Mar 2009 17:45:36 +0200 (EET) Date: Mon, 23 Mar 2009 17:45:36 +0200 From: Jaakko Heinonen To: Sam Leffler Message-ID: <20090323154536.GA2853@a91-153-125-115.elisa-laajakaista.fi> References: <200903190028.n2J0SsTa042656@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903190028.n2J0SsTa042656@svn.freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) 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 X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2009 16:01:54 -0000 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