git: 04997e19e27b - main - Additional output from dumpfs(8).
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 30 Apr 2023 00:01:39 UTC
The branch main has been updated by mckusick:
URL: https://cgit.FreeBSD.org/src/commit/?id=04997e19e27b240f9fd253f3eb1053708ca99c51
commit 04997e19e27b240f9fd253f3eb1053708ca99c51
Author: Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2023-04-29 18:41:23 +0000
Commit: Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2023-04-30 00:01:18 +0000
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
---
sbin/dumpfs/dumpfs.c | 2 ++
1 file changed, 2 insertions(+)
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",