From owner-dev-commits-src-main@freebsd.org Tue Dec 29 18:38:33 2020 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9C00F4C818D; Tue, 29 Dec 2020 18:38:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D538T4110z3D4f; Tue, 29 Dec 2020 18:38:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7C6BA108D6; Tue, 29 Dec 2020 18:38:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 0BTIcXFm067634; Tue, 29 Dec 2020 18:38:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 0BTIcXer067633; Tue, 29 Dec 2020 18:38:33 GMT (envelope-from git) Date: Tue, 29 Dec 2020 18:38:33 GMT Message-Id: <202012291838.0BTIcXer067633@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Fernando Apesteguía Subject: git: 0ce6e534d372 - main - lsvfs(1): Add EXAMPLES section MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0ce6e534d372df81743b1eb00e89d02b3597beb0 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Commit messages for the main branch of the src repository." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2020 18:38:33 -0000 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 AuthorDate: 2020-12-29 20:35:24 +0000 Commit: Fernando Apesteguía 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 ,