diff options
author | mpp <mpp@FreeBSD.org> | 1999-07-18 02:33:05 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1999-07-18 02:33:05 +0000 |
commit | d4c84285c62720c0fbc00f980370d179508b9fb9 (patch) | |
tree | ca489cee218bc10d7f59dbba1b6b8b3c47e68ff5 | |
parent | 32985454bd50e318619dde3a097df5a22cebd6b8 (diff) | |
download | FreeBSD-src-d4c84285c62720c0fbc00f980370d179508b9fb9.zip FreeBSD-src-d4c84285c62720c0fbc00f980370d179508b9fb9.tar.gz |
Print out the fields that are set in fs_flags.
-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 c8d6f57..aa617d5 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); |