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
This commit is contained in:
Kirk McKusick 2023-04-29 11:41:23 -07:00
parent 61b95bcb42
commit 04997e19e2

View File

@ -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",