aboutsummaryrefslogtreecommitdiffstats
path: root/man/man8/zfs-diff.8
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-16 18:27:44 +0100
committerBrian Behlendorf <[email protected]>2022-03-28 10:13:14 -0700
commitb7b3f199351ab6f0fe26461be8f5d756c404249c (patch)
tree07a8c146380fc493f69916c4bf38cc4ecec84d43 /man/man8/zfs-diff.8
parent1e164f89e582b4697e4c83bf29fa75e187e423e5 (diff)
man: zfs-diff.8: import examples from zfs.8
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13228
Diffstat (limited to 'man/man8/zfs-diff.8')
-rw-r--r--man/man8/zfs-diff.821
1 files changed, 20 insertions, 1 deletions
diff --git a/man/man8/zfs-diff.8 b/man/man8/zfs-diff.8
index a347f3252..f82735b38 100644
--- a/man/man8/zfs-diff.8
+++ b/man/man8/zfs-diff.8
@@ -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