diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-04-19 10:53:37 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-04-19 10:53:37 +0000 |
commit | 2935113c3a16a18e99af9dea13ec00dc2c95af18 (patch) | |
tree | f56ec7edf07e0b09207a9885d35eda98db10091a /sbin/dumpfs | |
parent | 4e357ca06e96049138ab7c2fb779f081f8b1f152 (diff) |
teach dumpfs about the 'updated' flag; ok pedro@
Diffstat (limited to 'sbin/dumpfs')
-rw-r--r-- | sbin/dumpfs/dumpfs.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c index 0a6738613a0..ac1951a5072 100644 --- a/sbin/dumpfs/dumpfs.c +++ b/sbin/dumpfs/dumpfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dumpfs.c,v 1.20 2007/03/19 13:27:47 pedro Exp $ */ +/* $OpenBSD: dumpfs.c,v 1.21 2007/04/19 10:53:36 otto Exp $ */ /* $NetBSD: dumpfs.c,v 1.12 1997/04/26 05:41:33 lukem Exp $ */ /* @@ -40,7 +40,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dumpfs.c 8.2 (Berkeley) 2/2/94"; #else -static char rcsid[] = "$OpenBSD: dumpfs.c,v 1.20 2007/03/19 13:27:47 pedro Exp $"; +static char rcsid[] = "$OpenBSD: dumpfs.c,v 1.21 2007/04/19 10:53:36 otto Exp $"; #endif #endif /* not lint */ @@ -190,9 +190,12 @@ dumpfs(char *name) printf("unclean "); if (afs.fs_ffs1_flags & FS_DOSOFTDEP) printf("soft-updates "); - if ((afs.fs_ffs1_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP)) != 0) - printf("unknown flags (%#x)", - afs.fs_ffs1_flags & ~(FS_UNCLEAN | FS_DOSOFTDEP)); + if (afs.fs_ffs1_flags & FS_FLAGS_UPDATED) + printf("updated "); + if (afs.fs_ffs1_flags & + ~(FS_UNCLEAN | FS_DOSOFTDEP | FS_FLAGS_UPDATED) != 0) + printf("unknown flags (%#x)", afs.fs_ffs1_flags & + ~(FS_UNCLEAN | FS_DOSOFTDEP | FS_FLAGS_UPDATED)); printf("\n"); if (afs.fs_cpc != 0) printf("blocks available in each of %d rotational positions", |