diff options
author | наб <[email protected]> | 2022-03-16 18:27:44 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-03-28 10:13:14 -0700 |
commit | b7b3f199351ab6f0fe26461be8f5d756c404249c (patch) | |
tree | 07a8c146380fc493f69916c4bf38cc4ecec84d43 /man/man8 | |
parent | 1e164f89e582b4697e4c83bf29fa75e187e423e5 (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')
-rw-r--r-- | man/man8/zfs-diff.8 | 21 | ||||
-rw-r--r-- | man/man8/zfs.8 | 1 |
2 files changed, 21 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 diff --git a/man/man8/zfs.8 b/man/man8/zfs.8 index 04bbbec1f..635f21f59 100644 --- a/man/man8/zfs.8 +++ b/man/man8/zfs.8 @@ -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 |