aboutsummaryrefslogtreecommitdiff
path: root/sbin/dumpfs/dumpfs.c
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2023-04-29 18:41:23 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2023-04-30 00:01:18 +0000
commit04997e19e27b240f9fd253f3eb1053708ca99c51 (patch)
treebcd459d9406c3391a547c6c1dec14f70af6ca6d3 /sbin/dumpfs/dumpfs.c
parent61b95bcb42993b24633b280791438266d78f2747 (diff)
downloadsrc-04997e19e27b240f9fd253f3eb1053708ca99c51.tar.gz
src-04997e19e27b240f9fd253f3eb1053708ca99c51.zip
Additional output from dumpfs(8).
Provide an additional line of output for the superblock giving the computed size of the cylinder group (CGSIZE macro) along with the details needed to calculate it. MFC after: 1 week
Diffstat (limited to 'sbin/dumpfs/dumpfs.c')
-rw-r--r--sbin/dumpfs/dumpfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c
index 4983645156ff..01b475a03fea 100644
--- a/sbin/dumpfs/dumpfs.c
+++ b/sbin/dumpfs/dumpfs.c
@@ -245,6 +245,8 @@ dumpfs(const char *name, int dosb)
default:
goto err;
}
+ printf("old_cpg\t%d\tsize_cg\t%jd\tCGSIZE\t%jd\n",
+ afs.fs_old_cpg, sizeof(struct cg), CGSIZE(&afs));
printf("sblkno\t%d\tcblkno\t%d\tiblkno\t%d\tdblkno\t%d\n",
afs.fs_sblkno, afs.fs_cblkno, afs.fs_iblkno, afs.fs_dblkno);
printf("cgrotor\t%d\tfmod\t%d\tronly\t%d\tclean\t%d\n",