xref: /freebsd/usr.bin/lsvfs/lsvfs.1 (revision 10ff414c)
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
15The
16.Nm
17command lists information about the currently loaded virtual file system
18modules.
19When
20.Ar vfsname
21arguments are given,
22.Nm
23lists information about the specified VFS modules.
24Otherwise,
25.Nm
26lists all currently loaded modules.
27The information is as follows:
28.Pp
29.Bl -tag -compact -width Filesystem
30.It Filesystem
31the name of the file system, as would be used in the
32.Ar type
33parameter to
34.Xr mount 2
35and the
36.Fl t
37option to
38.Xr mount 8
39.It Num
40the filesystem type number.
41.It Refs
42the number of references to this VFS; i.e., the number of currently
43mounted file systems of this type
44.It Flags
45flag bits.
46.El
47.Sh EXAMPLES
48Show information about the
49.Ql ufs
50and
51.Xr devfs 5
52filesystems and check the number of mounts for the former:
53.Bd -literal -offset indent
54$ lsvfs ufs devfs
55Filesystem                              Num  Refs  Flags
56-------------------------------- ---------- -----  ---------------
57ufs                              0x00000035     2
58devfs                            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
68A
69.Nm
70command appeared in
71.Fx 2.0 .
72