Fixed anachronisms (nuked vfs type number; don't give a 1/6-baked list
of vfs flags in the man page).
This commit is contained in:
parent
f5ce675296
commit
0fccc7dafd
@ -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 ,
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user