From 52f3aebdb2b4b457812fbac572df67461d7162bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 16 Mar 2022 18:33:41 +0100 Subject: [PATCH] man: zfs-list.8: import examples from zfs.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13228 --- man/man8/zfs-list.8 | 23 ++++++++++++++++++++++- man/man8/zfs.8 | 1 + 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/man/man8/zfs-list.8 b/man/man8/zfs-list.8 index 2de168bd86..2b4c13d0e3 100644 --- a/man/man8/zfs-list.8 +++ b/man/man8/zfs-list.8 @@ -29,7 +29,7 @@ .\" Copyright 2018 Nexenta Systems, Inc. .\" Copyright 2019 Joyent, Inc. .\" -.Dd May 27, 2021 +.Dd March 16, 2022 .Dt ZFS-LIST 8 .Os . @@ -157,6 +157,27 @@ For example, specifying displays only snapshots. .El . +.Sh EXAMPLES +.\" These are, respectively, examples 5 from zfs.8 +.\" Make sure to update them bidirectionally +.Ss Example 1 : No Listing ZFS Datasets +The following command lists all active file systems and volumes in the system. +Snapshots are displayed if +.Sy listsnaps Ns = Ns Sy on . +The default is +.Sy off . +See +.Xr zpoolprops 7 +for more information on pool properties. +.Bd -literal -compact -offset Ds +.No # Nm zfs Cm list +NAME USED AVAIL REFER MOUNTPOINT +pool 450K 457G 18K /pool +pool/home 315K 457G 21K /export/home +pool/home/anne 18K 457G 18K /export/home/anne +pool/home/bob 276K 457G 276K /export/home/bob +.Ed +. .Sh SEE ALSO .Xr zfsprops 7 , .Xr zfs-get 8 diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index ae31d39481..8d97eb6f27 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -300,6 +300,7 @@ if invalid command line options were specified. . .Sh EXAMPLES .\" Examples 1, 4, 6, 14, 16 are shared with zfs-set.8. +.\" Examples 5 are shared with zfs-list.8. .\" Examples 12, 13 are shared with zfs-send.8. .\" Examples 12, 13 are also shared with zfs-receive.8. .\" Examples 17, 18, 19, 20, 21 are shared with zfs-allow.8.