Date: Wed, 29 Jan 2003 09:36:47 -0800 (PST) From: Brian Feldman <green@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 24381 for review Message-ID: <200301291736.h0THaleS084410@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24381 Change 24381 by green@green_laptop_2 on 2003/01/29 09:36:16 Make extattr checking optional in fsck, too: fsck -e run from the foreground. Affected files ... .. //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/fsck.h#2 edit .. //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/main.c#2 edit .. //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/pass1.c#2 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/fsck.h#2 (text+ko) ==== @@ -245,6 +245,7 @@ char resolved; /* cleared if unresolved changes => not clean */ char havesb; /* superblock has been read */ char skipclean; /* skip clean file systems if preening */ +char extattr; /* take a lot longer, and check ea's */ int fsmodified; /* 1 => write done to file system */ int fsreadfd; /* file descriptor for reading file system */ int fswritefd; /* file descriptor for writing file system */ ==== //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/main.c#2 (text+ko) ==== @@ -82,7 +82,7 @@ sync(); skipclean = 1; - while ((ch = getopt(argc, argv, "b:Bc:dfFm:npy")) != -1) { + while ((ch = getopt(argc, argv, "b:Bc:defFm:npy")) != -1) { switch (ch) { case 'b': skipclean = 0; @@ -106,6 +106,10 @@ debug++; break; + case 'e': + extattr++; + break; + case 'f': skipclean = 0; break; ==== //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/pass1.c#2 (text+ko) ==== @@ -350,7 +350,7 @@ break; } } - if (sblock.fs_magic == FS_UFS2_MAGIC) + if (extattr && sblock.fs_magic == FS_UFS2_MAGIC) eascan(idesc, &dp->dp2); idesc->id_entryno *= btodb(sblock.fs_fsize); if (DIP(dp, di_blocks) != idesc->id_entryno) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301291736.h0THaleS084410>