]> git.proxmox.com Git - mirror_zfs.git/commitdiff
man: zfs-diff.8: import examples from zfs.8
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Wed, 16 Mar 2022 17:27:44 +0000 (18:27 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Mar 2022 17:13:14 +0000 (10:13 -0700)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228

man/man8/zfs-diff.8
man/man8/zfs.8

index a347f325203ef9dafa113f27dfaf03a74533875d..f82735b38e4eb12a6fba9502cd45b662c8b45048 100644 (file)
@@ -29,7 +29,7 @@
 .\" Copyright 2018 Nexenta Systems, Inc.
 .\" Copyright 2019 Joyent, Inc.
 .\"
-.Dd May 29, 2021
+.Dd March 16, 2022
 .Dt ZFS-DIFF 8
 .Os
 .
@@ -98,5 +98,24 @@ Do not
 non-ASCII paths.
 .El
 .
+.Sh EXAMPLES
+.\" These are, respectively, examples 22 from zfs.8
+.\" Make sure to update them bidirectionally
+.Ss Example 1 : No Showing the differences between a snapshot and a ZFS Dataset
+The following example shows how to see what has changed between a prior
+snapshot of a ZFS dataset and its current state.
+The
+.Fl F
+option is used to indicate type information for the files affected.
+.Bd -literal -compact -offset Ds
+.No # Nm zfs Cm diff Fl F Ar tank/test@before tank/test
+M       /       /tank/test/
+M       F       /tank/test/linked      (+1)
+R       F       /tank/test/oldname -> /tank/test/newname
+-       F       /tank/test/deleted
++       F       /tank/test/created
+M       F       /tank/test/modified
+.Ed
+.
 .Sh SEE ALSO
 .Xr zfs-snapshot 8
index 04bbbec1f5af819747fb233cb71bce2ea6a6a3b7..635f21f59ad911cd93acdb3980b5b19dbbc6da0c 100644 (file)
@@ -301,6 +301,7 @@ if invalid command line options were specified.
 .Sh EXAMPLES
 .\" Examples 17, 18, 19, 20, 21 are shared with zfs-allow.8.
 .\" Examples 1, 4, 6, 14, 16 are shared with zfs-set.8.
+.\" Examples 22 are shared with zfs-diff.8.
 .\" Examples 23 are shared with zfs-bookmark.8.
 .\" Make sure to update them bidirectionally
 .Ss Example 1 : No Creating a ZFS File System Hierarchy