freebsd-skq/sbin/fsck
Poul-Henning Kamp 0af7bca250 This change sanitizes the way fsck deals with pass numbers.
Consider this /etc/fstab:

# Device         Mountpoint      FStype  Options    Dump    Pass#
/dev/ad1s1b      none            swap    sw         0       0
/dev/ad0s1b      none            swap    sw         0       0
/dev/ad0s1a      /               ufs     rw         1       1
/dev/ad0s1e      /home           ufs     rw         2       2
/dev/ad1s1e      /tmp            ufs     rw         2       2
/dev/ad1s1f      /usr            ufs     rw         2       2
/dev/ccd0c       /syv            ufs     rw         2       11
proc             /proc           procfs  rw         0       0

ccd0c is striped over /dev/ad0f and /dev/ad1g

Without this pass, fsck in preen mode will check ad0s1a first,
and then issue three processes in parallel:

One process doing ad0s1e
One process doing ad1s1e and ad1s1f
One process doing ccd0c

There is no way to tell it that ccd0c overlaps ad0 and ad1.

With the patch, it will do it this way:

pass 2:
One process doing ad0s1e
One process doing ad1s1e and ad1s1f

and when they are complete:

pass 11:
One process doing ccd0c

This is much faster and more sane.

Valid pass numbers are anything from 1 to INTMAX-1.

I retired the '-l' option which tried to allow people to do
something like this, but which didn't work and which complicated
the code an awful lot.
2001-03-30 08:01:34 +00:00
..
fsck.8 This change sanitizes the way fsck deals with pass numbers. 2001-03-30 08:01:34 +00:00
fsck.c This change sanitizes the way fsck deals with pass numbers. 2001-03-30 08:01:34 +00:00
fsutil.c
fsutil.h This change sanitizes the way fsck deals with pass numbers. 2001-03-30 08:01:34 +00:00
Makefile - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:33:27 +00:00
pathnames.h
preen.c This change sanitizes the way fsck deals with pass numbers. 2001-03-30 08:01:34 +00:00