Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 2020 18:38:33 GMT
From:      Fernando Apesteguía <fernape@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0ce6e534d372 - main - lsvfs(1): Add EXAMPLES section
Message-ID:  <202012291838.0BTIcXer067633@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org>
AuthorDate: 2020-12-29 20:35:24 +0000
Commit:     Fernando Apesteguía <fernape@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 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012291838.0BTIcXer067633>