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