diff options
| author | Mike Pritchard <mpp@FreeBSD.org> | 1999-07-18 02:33:05 +0000 |
|---|---|---|
| committer | Mike Pritchard <mpp@FreeBSD.org> | 1999-07-18 02:33:05 +0000 |
| commit | 56d253f621c0b1766b61f5f1393ee0de1c8b4c9b (patch) | |
| tree | 728b500bd172592f36abb040465b287c003fa3b0 /sbin/dumpfs | |
| parent | 3083856d5c9ae44c66c6f8d67df867a6418fdd52 (diff) | |
Notes
Diffstat (limited to 'sbin/dumpfs')
| -rw-r--r-- | sbin/dumpfs/dumpfs.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c index c8d6f579c505..aa617d5518f7 100644 --- a/sbin/dumpfs/dumpfs.c +++ b/sbin/dumpfs/dumpfs.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)dumpfs.c 8.5 (Berkeley) 4/29/95"; #endif static const char rcsid[] = - "$Id: dumpfs.c,v 1.10 1998/06/15 07:00:01 charnier Exp $"; + "$Id: dumpfs.c,v 1.11 1999/06/27 10:05:14 phk Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -172,6 +172,17 @@ dumpfs(name) afs.fs_csaddr, afs.fs_cssize, afs.fs_csshift, afs.fs_csmask); printf("cgrotor\t%d\tfmod\t%d\tronly\t%d\tclean\t%d\n", afs.fs_cgrotor, afs.fs_fmod, afs.fs_ronly, afs.fs_clean); + printf("flags\t"); + if (afs.fs_flags == 0) + printf("none"); + if (afs.fs_flags & FS_UNCLEAN) + printf("unclean "); + if (afs.fs_flags & FS_DOSOFTDEP) + printf("soft-updates "); + if ((afs.fs_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP)) != 0) + printf("unknown flags (%#x)", + afs.fs_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP)); + putchar('\n'); if (afs.fs_cpc != 0) printf("blocks available in each of %d rotational positions", afs.fs_nrpos); |
