]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/lsvfs/lsvfs.1
lsvfs(1): Add EXAMPLES section
[FreeBSD/FreeBSD.git] / usr.bin / lsvfs / lsvfs.1
1 .\" $FreeBSD$
2 .\" Garrett A. Wollman, September 1994
3 .\" This file is in the public domain.
4 .\"
5 .Dd December 28, 2020
6 .Dt LSVFS 1
7 .Os
8 .Sh NAME
9 .Nm lsvfs
10 .Nd list installed virtual file systems
11 .Sh SYNOPSIS
12 .Nm
13 .Op Ar vfsname Ar ...
14 .Sh DESCRIPTION
15 The
16 .Nm
17 command lists information about the currently loaded virtual file system
18 modules.
19 When
20 .Ar vfsname
21 arguments are given,
22 .Nm
23 lists information about the specified VFS modules.
24 Otherwise,
25 .Nm
26 lists all currently loaded modules.
27 The information is as follows:
28 .Pp
29 .Bl -tag -compact -width Filesystem
30 .It Filesystem
31 the name of the file system, as would be used in the
32 .Ar type
33 parameter to
34 .Xr mount 2
35 and the
36 .Fl t
37 option to
38 .Xr mount 8
39 .It Num
40 the filesystem type number.
41 .It Refs
42 the number of references to this VFS; i.e., the number of currently
43 mounted file systems of this type
44 .It Flags
45 flag bits.
46 .El
47 .Sh EXAMPLES
48 Show information about the
49 .Ql ufs
50 and
51 .Xr devfs 5
52 filesystems and check the number of mounts for the former:
53 .Bd -literal -offset indent
54 $ lsvfs ufs devfs
55 Filesystem                              Num  Refs  Flags
56 -------------------------------- ---------- -----  ---------------
57 ufs                              0x00000035     2
58 devfs                            0x00000071     1  synthetic, jail
59
60 $ mount -t ufs | wc -l
61        2
62 .Ed
63 .Sh SEE ALSO
64 .Xr mount 2 ,
65 .Xr getvfsbyname 3 ,
66 .Xr mount 8
67 .Sh HISTORY
68 A
69 .Nm
70 command appeared in
71 .Fx 2.0 .