PERFORCE change 93366 for review

Todd Miller millert at FreeBSD.org
Wed Mar 15 20:05:59 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=93366

Change 93366 by millert at millert_p3 on 2006/03/15 20:01:38

	Get rid of non-std -e option; we want to check extattrs
	for ufs2 by default.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/fsck.h#9 edit
.. //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/main.c#10 edit
.. //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/pass1.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/fsck.h#9 (text+ko) ====

@@ -280,7 +280,6 @@
 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#10 (text+ko) ====

@@ -79,7 +79,7 @@
 
 	sync();
 	skipclean = 1;
-	while ((ch = getopt(argc, argv, "b:Bc:defFm:npy")) != -1) {
+	while ((ch = getopt(argc, argv, "b:Bc:dfFm:npy")) != -1) {
 		switch (ch) {
 		case 'b':
 			skipclean = 0;
@@ -103,10 +103,6 @@
 			debug++;
 			break;
 
-		case 'e':
-			extattr++;
-			break;
-
 		case 'f':
 			skipclean = 0;
 			break;

==== //depot/projects/trustedbsd/sebsd/sbin/fsck_ffs/pass1.c#8 (text+ko) ====

@@ -340,7 +340,7 @@
 				break;
 		}
 	}
-	if (extattr && sblock.fs_magic == FS_UFS2_MAGIC)
+	if (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) {


More information about the trustedbsd-cvs mailing list