Module Name:    src
Committed By:   hannken
Date:           Mon Nov  6 12:18:59 UTC 2023

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

Log Message:
Print the inode numbers of persistent snapshots.

PR kern/57675 "persistent file system snapshots aren't obvious"


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 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.68 src/usr.sbin/dumpfs/dumpfs.c:1.69
--- src/usr.sbin/dumpfs/dumpfs.c:1.68	Sat Jan  7 19:41:30 2023
+++ src/usr.sbin/dumpfs/dumpfs.c	Mon Nov  6 12:18:59 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: dumpfs.c,v 1.68 2023/01/07 19:41:30 chs Exp $	*/
+/*	$NetBSD: dumpfs.c,v 1.69 2023/11/06 12:18:59 hannken 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.68 2023/01/07 19:41:30 chs Exp $");
+__RCSID("$NetBSD: dumpfs.c,v 1.69 2023/11/06 12:18:59 hannken Exp $");
 #endif
 #endif /* not lint */
 
@@ -410,6 +410,11 @@ print_superblock(struct fs *fs, uint16_t
 	    fs->fs_journallocs[0], fs->fs_journallocs[1]);
 	printf("\tloc2 %" PRIu64 "\tloc3 %" PRIu64 "\n",
 	    fs->fs_journallocs[2], fs->fs_journallocs[3]);
+	printf("snapshot inodes");
+	for (int s = 0; s < FSMAXSNAP; s++) {
+		printf(" %u", fs->fs_snapinum[s]);
+	}
+	printf("\n");
 	printf("usrquota %" PRIu64 "\tgrpquota %" PRIu64 "\n",
 		fs->fs_quotafile[USRQUOTA], fs->fs_quotafile[GRPQUOTA]);
 	printf("flags\t");

Reply via email to