Module Name: src Committed By: dholland Date: Tue Sep 1 06:12:04 UTC 2015
Modified Files: src/libexec/lfs_cleanerd: lfs_cleanerd.c src/sbin/dump_lfs: lfs_inode.c src/sbin/fsck_lfs: lfs.c pass1.c pass6.c setup.c src/sbin/newfs_lfs: make_lfs.c src/sys/lib/libsa: ufs.c src/sys/ufs/lfs: lfs.h lfs_accessors.h lfs_debug.c src/usr.sbin/dumplfs: dumplfs.c Log Message: The ifile's inode number is constant. (it is always 1) Therefore, storing the value in the superblock and reading it out again is silly and offers the opportunity for it to become corrupted. So, don't do that (most of the code already didn't) and use the existing constant instead. Initialize new 32-bit superblocks with the value for the sake of old userland programs, but don't keep the value in the 64-bit superblock at all. (approved by Margo Seltzer) To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/libexec/lfs_cleanerd/lfs_cleanerd.c cvs rdiff -u -r1.25 -r1.26 src/sbin/dump_lfs/lfs_inode.c cvs rdiff -u -r1.59 -r1.60 src/sbin/fsck_lfs/lfs.c cvs rdiff -u -r1.42 -r1.43 src/sbin/fsck_lfs/pass1.c cvs rdiff -u -r1.44 -r1.45 src/sbin/fsck_lfs/pass6.c cvs rdiff -u -r1.56 -r1.57 src/sbin/fsck_lfs/setup.c cvs rdiff -u -r1.45 -r1.46 src/sbin/newfs_lfs/make_lfs.c cvs rdiff -u -r1.72 -r1.73 src/sys/lib/libsa/ufs.c cvs rdiff -u -r1.182 -r1.183 src/sys/ufs/lfs/lfs.h cvs rdiff -u -r1.18 -r1.19 src/sys/ufs/lfs/lfs_accessors.h cvs rdiff -u -r1.53 -r1.54 src/sys/ufs/lfs/lfs_debug.c cvs rdiff -u -r1.56 -r1.57 src/usr.sbin/dumplfs/dumplfs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.