diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-11-13 07:38:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-11-13 07:38:38 +0000 |
commit | bd485d9912c966e37bbb6b83af8d1552f24ec27c (patch) | |
tree | 909c1e5154a596d6f46875117889c4c5f1463b2c /sbin/dumpfs/dumpfs.c | |
parent | 3123007d55484ff123150dde6a515d293d0306f0 (diff) |
Say "soft updates" when FS_DOSOFTDEP is set in superblock, could look nicer.
Diffstat (limited to 'sbin/dumpfs/dumpfs.c')
-rw-r--r-- | sbin/dumpfs/dumpfs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/dumpfs/dumpfs.c b/sbin/dumpfs/dumpfs.c index 99cdf52e78b..0c68f868973 100644 --- a/sbin/dumpfs/dumpfs.c +++ b/sbin/dumpfs/dumpfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dumpfs.c,v 1.7 1997/06/30 02:59:28 deraadt Exp $ */ +/* $OpenBSD: dumpfs.c,v 1.8 1997/11/13 07:38:37 millert Exp $ */ /* $NetBSD: dumpfs.c,v 1.12 1997/04/26 05:41:33 lukem Exp $ */ /* @@ -44,7 +44,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.7 1997/06/30 02:59:28 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: dumpfs.c,v 1.8 1997/11/13 07:38:37 millert Exp $"; #endif #endif /* not lint */ @@ -124,8 +124,7 @@ dumpfs(name) goto err; if (afs.fs_magic != FS_MAGIC) { - warnx("%s: superblock has bad magic number, skipping.", - name); + warnx("%s: superblock has bad magic number, skipping.", name); (void) close(fd); return (1); } @@ -149,8 +148,9 @@ dumpfs(name) i++; } } - printf("cylgrp\t%s\tinodes\t%s\tfslevel %d\n", - i < 1 ? "static" : "dynamic", i < 2 ? "4.2/4.3BSD" : "4.4BSD", i); + printf("cylgrp\t%s\tinodes\t%s\tfslevel %d%s\n", + i < 1 ? "static" : "dynamic", i < 2 ? "4.2/4.3BSD" : "4.4BSD", i, + (afs.fs_flags & FS_DOSOFTDEP) ? "\tsoft updates" : ""); printf("nbfree\t%d\tndir\t%d\tnifree\t%d\tnffree\t%d\n", afs.fs_cstotal.cs_nbfree, afs.fs_cstotal.cs_ndir, afs.fs_cstotal.cs_nifree, afs.fs_cstotal.cs_nffree); |