git: 0ce6e534d372 - main - lsvfs(1): Add EXAMPLES section
Fernando ApesteguÃa
fernape at FreeBSD.org
Tue Dec 29 18:38:33 UTC 2020
The branch main has been updated by fernape (ports committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=0ce6e534d372df81743b1eb00e89d02b3597beb0
commit 0ce6e534d372df81743b1eb00e89d02b3597beb0
Author: Fernando Apesteguía <fernape at FreeBSD.org>
AuthorDate: 2020-12-29 20:35:24 +0000
Commit: Fernando Apesteguía <fernape at FreeBSD.org>
CommitDate: 2020-12-29 20:35:24 +0000
lsvfs(1): Add EXAMPLES section
Add one simple exapmle and contrast some of the information using mount(8)
PR:
Submitted by:
Reported by:
Reviewed by: gbe@, yuripv@
Approved by: manpages (bcr@)
Obtained from:
MFC after:
MFH:
Relnotes:
Security:
Sponsored by:
Differential Revision: https://reviews.freebsd.org/D27544
---
usr.bin/lsvfs/lsvfs.1 | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/usr.bin/lsvfs/lsvfs.1 b/usr.bin/lsvfs/lsvfs.1
index 5bdb64eed1ca..c86be83ba3f9 100644
--- a/usr.bin/lsvfs/lsvfs.1
+++ b/usr.bin/lsvfs/lsvfs.1
@@ -2,7 +2,7 @@
.\" Garrett A. Wollman, September 1994
.\" This file is in the public domain.
.\"
-.Dd June 9, 2013
+.Dd December 28, 2020
.Dt LSVFS 1
.Os
.Sh NAME
@@ -44,6 +44,22 @@ mounted file systems of this type
.It Flags
flag bits.
.El
+.Sh EXAMPLES
+Show information about the
+.Ql ufs
+and
+.Xr devfs 5
+filesystems and check the number of mounts for the former:
+.Bd -literal -offset indent
+$ lsvfs ufs devfs
+Filesystem Num Refs Flags
+-------------------------------- ---------- ----- ---------------
+ufs 0x00000035 2
+devfs 0x00000071 1 synthetic, jail
+
+$ mount -t ufs | wc -l
+ 2
+.Ed
.Sh SEE ALSO
.Xr mount 2 ,
.Xr getvfsbyname 3 ,
More information about the dev-commits-src-all
mailing list