NetBSD/sbin/fsck_ffs
fvdl bb8bd280d4 Only check relevant fields when comparing the superblock to an alternate
superblock. Avoids false positives should fsck_ffs be run on a filesystem
that was created after the UFS2 code has been merged.

This commit is mostly a forward compatibility patch that can be pulled
up in to the 1.6 branch.

From Kirk Mckusick in FreeBSD (setup.c rev. 1.30). Original commit message:
========
When checking the alternate superblock, we used to copy any fields
that might have changed, then did a byte-by-byte comparison with
the alternate. If any unused fields got used, they had to be added
to the exception list. Such changes caused too many false alarms.
So, I have changed the comparison algorithm to compare a selected
set of fields that are not expected to change. This new algorithm
causes far fewer false hits and still does a good job of detecting
problems when they have really occurred. In particular, this change
should ease the transition to kernels supporting UFS2 which make
some significant changes to the superblock.

Sponsored by:	DARPA, NAI Labs
========
2003-02-21 15:15:49 +00:00
..
SMM.doc
Makefile Add support for the Apple UFS variation on ffs 2002-09-28 20:11:05 +00:00
dir.c Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
extern.h Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
fsck.h Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
fsck_ffs.8 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
inode.c Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
main.c make this build on alpha after daddr_t->64bit 2003-01-28 05:17:12 +00:00
pass1.c Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
pass1b.c Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
pass2.c Add support for the Apple UFS variation on ffs 2002-09-28 20:11:05 +00:00
pass3.c If SIGINFO is received, display summary information to stderr. 2002-05-06 03:17:43 +00:00
pass4.c Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00
pass5.c 'NetBSD.org' and some mdoc fixes. 2003-02-14 16:21:47 +00:00
setup.c Only check relevant fields when comparing the superblock to an alternate 2003-02-21 15:15:49 +00:00
utilities.c Bump daddr_t to 64 bits. Replace it with int32_t in all places where 2003-01-24 21:55:02 +00:00