PERFORCE change 24381 for review

Brian Feldman green at freebsd.org
Wed Jan 29 17:36:47 GMT 2003


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

Change 24381 by green at 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 at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list