From owner-cvs-all Tue Nov 26 18:22:37 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 663C237B401; Tue, 26 Nov 2002 18:22:35 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE6EB43E9C; Tue, 26 Nov 2002 18:22:34 -0800 (PST) (envelope-from mckusick@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAR2IwmV030872; Tue, 26 Nov 2002 18:18:58 -0800 (PST) (envelope-from mckusick@repoman.freebsd.org) Received: (from mckusick@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAR2IwKJ030871; Tue, 26 Nov 2002 18:18:58 -0800 (PST) Message-Id: <200211270218.gAR2IwKJ030871@repoman.freebsd.org> From: Kirk McKusick Date: Tue, 26 Nov 2002 18:18:58 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libufs sblock.c src/sbin/badsect badsect.c src/sbin/clri clri.c src/sbin/dump main.c src/sbin/dumpfs dumpfs.c src/sbin/fsck_ffs fsutil.c setup.c src/sbin/fsirand fsirand.c src/sbin/growfs growfs.c src/sbin/newfs mkfs.c src/sbin/quotacheck ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mckusick 2002/11/26 18:18:58 PST Modified files: 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 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/boot/libstand ufs.c sys/ufs/ffs ffs_snapshot.c ffs_vfsops.c fs.h Log: 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 Sponsored by: DARPA & NAI Labs. Revision Changes Path 1.5 +1 -1 src/lib/libufs/sblock.c 1.16 +1 -1 src/sbin/badsect/badsect.c 1.12 +1 -1 src/sbin/clri/clri.c 1.42 +1 -2 src/sbin/dump/main.c 1.27 +1 -1 src/sbin/dumpfs/dumpfs.c 1.19 +2 -2 src/sbin/fsck_ffs/fsutil.c 1.41 +1 -2 src/sbin/fsck_ffs/setup.c 1.12 +1 -2 src/sbin/fsirand/fsirand.c 1.12 +1 -2 src/sbin/growfs/growfs.c 1.65 +6 -6 src/sbin/newfs/mkfs.c 1.20 +1 -2 src/sbin/quotacheck/quotacheck.c 1.33 +1 -1 src/sbin/tunefs/tunefs.c 1.8 +1 -1 src/sys/boot/common/ufsread.c 1.13 +1 -1 src/sys/boot/libstand/ufs.c 1.50 +4 -4 src/sys/ufs/ffs/ffs_snapshot.c 1.197 +15 -8 src/sys/ufs/ffs/ffs_vfsops.c 1.35 +5 -3 src/sys/ufs/ffs/fs.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message