man: zfs-diff.8: import examples from zfs.8

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13228
This commit is contained in:
наб 2022-03-16 18:27:44 +01:00 committed by Brian Behlendorf
parent 1e164f89e5
commit b7b3f19935
2 changed files with 21 additions and 1 deletions

View 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

View 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