]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create a new 32-bit fs_flags word in the superblock. Add code to move
authorKirk McKusick <mckusick@FreeBSD.org>
Wed, 27 Nov 2002 02:18:58 +0000 (02:18 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Wed, 27 Nov 2002 02:18:58 +0000 (02:18 +0000)
commitada981b228eba1fdb31f9817c015e69a757e1cb3
treed1928be6bf74e88babe007808d7eaa98444918f3
parentbd32b70236011007576b1ce556b04eb22c759794
Create a new 32-bit fs_flags word in the superblock. Add code to move
the old 8-bit fs_old_flags to the new location the first time that the
filesystem is mounted by a new kernel. One of the unused flags in
fs_old_flags is used to indicate that the flags have been moved.
Leave the fs_old_flags word intact so that it will work properly if
used on an old kernel.

Change the fs_sblockloc superblock location field to be in units
of bytes instead of in units of filesystem fragments. The old units
did not work properly when the fragment size exceeeded the superblock
size (8192). Update old fs_sblockloc values at the same time that
the flags are moved.

Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk>
Sponsored by:   DARPA & NAI Labs.
16 files changed:
lib/libufs/sblock.c
sbin/badsect/badsect.c
sbin/clri/clri.c
sbin/dump/main.c
sbin/dumpfs/dumpfs.c
sbin/fsck_ffs/fsutil.c
sbin/fsck_ffs/setup.c
sbin/fsirand/fsirand.c
sbin/growfs/growfs.c
sbin/newfs/mkfs.c
sbin/quotacheck/quotacheck.c
sbin/tunefs/tunefs.c
sys/boot/common/ufsread.c
sys/ufs/ffs/ffs_snapshot.c
sys/ufs/ffs/ffs_vfsops.c
sys/ufs/ffs/fs.h