summaryrefslogtreecommitdiffstats
path: root/usr.bin/lsvfs
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
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')
-rw-r--r--usr.bin/lsvfs/lsvfs.116
-rw-r--r--usr.bin/lsvfs/lsvfs.c15
2 files changed, 13 insertions, 18 deletions
diff --git a/usr.bin/lsvfs/lsvfs.1 b/usr.bin/lsvfs/lsvfs.1
index 82a4798..3bd5083 100644
--- a/usr.bin/lsvfs/lsvfs.1
+++ b/usr.bin/lsvfs/lsvfs.1
@@ -1,4 +1,4 @@
-.\" $Id$
+.\" $Id: lsvfs.1,v 1.5 1997/02/22 19:55:59 peter Exp $
.\" Garrett A. Wollman, September 1994
.\" This file is in the public domain.
.\"
@@ -27,22 +27,18 @@ The information is as follows:
.Bl -tag -compact -width Filesystem
.It Filesystem
the name of the filesystem, as would be used in the
-.Fl t
-option to
-.Xr mount 8
-.It Index
-the kernel filesystem switch slot number for this filesystem, as would be
-used in the
.Ar type
parameter to
.Xr mount 2
+and the
+.Fl t
+option to
+.Xr mount 8
.It Refs
the number of references to this VFS; i.e., the number of currently
mounted filesystems of this type
.It Flags
-flag bits (only
-.Dq static
-is currently defined).
+flag bits.
.El
.Sh SEE ALSO
.Xr mount 2 ,
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