summaryrefslogtreecommitdiffstats
path: root/usr.bin/lsvfs/lsvfs.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-29 13:53:22 +0000
committerbde <bde@FreeBSD.org>1998-08-29 13:53:22 +0000
commit15463134cd552a956f2c6027dde497237bac81e9 (patch)
tree2192e571a79180f37ec67c4fdf3f70bdc316d3b2 /usr.bin/lsvfs/lsvfs.c
parentd3f8ad18751f180c706a043a1eae19bb9a74c1d0 (diff)
downloadFreeBSD-src-15463134cd552a956f2c6027dde497237bac81e9.zip
FreeBSD-src-15463134cd552a956f2c6027dde497237bac81e9.tar.gz
Fixed anachronisms (nuked vfs type number; don't give a 1/6-baked list
of vfs flags in the man page).
Diffstat (limited to 'usr.bin/lsvfs/lsvfs.c')
-rw-r--r--usr.bin/lsvfs/lsvfs.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/lsvfs/lsvfs.c b/usr.bin/lsvfs/lsvfs.c
index 1b2ad9a..00bef3f 100644
--- a/usr.bin/lsvfs/lsvfs.c
+++ b/usr.bin/lsvfs/lsvfs.c
@@ -3,7 +3,7 @@
* Garrett A. Wollman, September 1994
* This file is in the public domain.
*
- * $Id: lsvfs.c,v 1.9 1997/07/23 06:48:01 charnier Exp $
+ * $Id: lsvfs.c,v 1.10 1998/01/17 16:24:27 bde Exp $
*/
#define _NEW_VFSCONF
@@ -15,9 +15,9 @@
#include <stdio.h>
#include <string.h>
-#define FMT "%-32.32s %5d %5d %s\n"
-#define HDRFMT "%-32.32s %5.5s %5.5s %s\n"
-#define DASHES "-------------------------------- ----- ----- ---------------\n"
+#define FMT "%-32.32s %5d %s\n"
+#define HDRFMT "%-32.32s %5.5s %s\n"
+#define DASHES "-------------------------------- ----- ---------------\n"
static const char *fmt_flags(int);
@@ -31,14 +31,13 @@ main(int argc, char **argv)
setvfsent(1);
- printf(HDRFMT, "Filesystem", "Index", "Refs", "Flags");
+ printf(HDRFMT, "Filesystem", "Refs", "Flags");
fputs(DASHES, stdout);
if(argc) {
for(; argc; argc--, argv++) {
if (getvfsbyname(*argv, &vfc) != 0) {
- printf(FMT, vfc.vfc_name, vfc.vfc_typenum, vfc.vfc_refcount,
- fmt_flags(vfc.vfc_flags));
+ printf(FMT, vfc.vfc_name, vfc.vfc_refcount, fmt_flags(vfc.vfc_flags));
} else {
warnx("VFS %s unknown or not loaded", *argv);
rv++;
@@ -46,7 +45,7 @@ main(int argc, char **argv)
}
} else {
while (ovfcp = getvfsent()) {
- printf(FMT, ovfcp->vfc_name, ovfcp->vfc_index, ovfcp->vfc_refcount,
+ printf(FMT, ovfcp->vfc_name, ovfcp->vfc_refcount,
fmt_flags(ovfcp->vfc_flags));
}
}
OpenPOWER on IntegriCloud