Module Name:    src
Committed By:   dholland
Date:           Tue Sep  3 02:25:36 UTC 2013

Modified Files:
        src/usr.sbin/dumpfs: dumpfs.c

Log Message:
Teach this to print FS_SUJ (and FS_GJOURNAL, whatever that is, as it
was missing for some reason) and cope with FS_INDEXDIRS not currently
being defined.

Since FS_SUJ actually appears in the wild, it's fairly important to
recognize it.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/usr.sbin/dumpfs/dumpfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/dumpfs/dumpfs.c
diff -u src/usr.sbin/dumpfs/dumpfs.c:1.61 src/usr.sbin/dumpfs/dumpfs.c:1.62
--- src/usr.sbin/dumpfs/dumpfs.c:1.61	Sun Jun 23 02:06:05 2013
+++ src/usr.sbin/dumpfs/dumpfs.c	Tue Sep  3 02:25:36 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: dumpfs.c,v 1.61 2013/06/23 02:06:05 dholland Exp $	*/
+/*	$NetBSD: dumpfs.c,v 1.62 2013/09/03 02:25:36 dholland Exp $	*/
 
 /*
  * Copyright (c) 1983, 1992, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 19
 #if 0
 static char sccsid[] = "@(#)dumpfs.c	8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: dumpfs.c,v 1.61 2013/06/23 02:06:05 dholland Exp $");
+__RCSID("$NetBSD: dumpfs.c,v 1.62 2013/09/03 02:25:36 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -414,12 +414,14 @@ print_superblock(struct fs *fs, uint16_t
 		printf("soft-updates ");
 	if (fs->fs_flags & FS_NEEDSFSCK)
 		printf("needs fsck run ");
-	if (fs->fs_flags & FS_INDEXDIRS)
-		printf("indexed directories ");
+	if (fs->fs_flags & FS_SUJ)
+		printf("journaled soft-updates ");
 	if (fs->fs_flags & FS_ACLS)
 		printf("acls ");
 	if (fs->fs_flags & FS_MULTILABEL)
 		printf("multilabel ");
+	if (fs->fs_flags & FS_GJOURNAL)
+		printf("gjournal ");
 	if (fs->fs_flags & FS_FLAGS_UPDATED)
 		printf("fs_flags expanded ");
 	if (fs->fs_flags & FS_DOWAPBL)
@@ -427,8 +429,13 @@ print_superblock(struct fs *fs, uint16_t
 	if (fs->fs_flags & FS_DOQUOTA2)
 		printf("quotas ");
 	fsflags = fs->fs_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP | FS_NEEDSFSCK |
-			FS_INDEXDIRS | FS_ACLS | FS_MULTILABEL |
+			FS_SUJ | FS_ACLS | FS_MULTILABEL | FS_GJOURNAL |
 			FS_FLAGS_UPDATED | FS_DOWAPBL | FS_DOQUOTA2);
+#ifdef FS_INDEXDIRS
+	if (fs->fs_flags & FS_INDEXDIRS)
+		printf("indexed directories ");
+	fsflags &= ~FS_INDEXDIRS
+#endif
 	if (fsflags != 0)
 		printf("unknown flags (%#x)", fsflags);
 	printf("\nfsmnt\t%s\n", fs->fs_fsmnt);

Reply via email to