Subject: Re: fstab and fs_passno
To: None <netbsd-users@netbsd.org>
From: Aaron J. Grier <agrier@poofygoof.com>
List: netbsd-users
Date: 01/27/2006 17:33:56
On Sat, Jan 28, 2006 at 12:05:26AM +0100, Geert Hendrickx wrote:
> On Fri, Jan 27, 2006 at 11:45:06AM -0500, Sridhar Ayengar wrote:
> > Is it legal to define fs_passno>2 for unimportant filesystems in
> > /etc/fstab, or are 0, 1 and 2 the only legal values?
> 
> I have another (related) question: is it possible to disable
> parallellism for fsck at boot-time?  fsck will scan filesystems in
> parallel when they're on different devices (to speed things up), but
> also when a filesystem is e.g. on a cgd (on the same physical disk).
> This is of course not optimal; can I disable it?  (I know -current has
> -P, but 3.0 hasn't.)  

from fstab(5) on my 2.0.2_STABLE machine:  (emphasis added)

	The sixth field, (fs_passno), is used by the fsck(8)
	program to determine the order in which filesystem
	checks are done at reboot time.  The root filesystem
	should be specified with a fs_passno of 1, and other
	filesystems should have a fs_passno of 2.

	Filesystems within a drive will be checked sequentially,

	but filesystems on different drives will be checked at
	the same time to use parallelism available in the
	hardware.  If the sixth field is not present or zero, a
	value of zero is returned and fsck(8) will assume that
	the filesystem does not need to be checked.

is the man page incorrect?

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofygoof.com
              "silly brewer, saaz are for pils!"  --  virt