From b7b3f199351ab6f0fe26461be8f5d756c404249c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 16 Mar 2022 18:27:44 +0100 Subject: [PATCH] man: zfs-diff.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-diff.8 | 21 ++++++++++++++++++++- man/man8/zfs.8 | 1 + 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/man/man8/zfs-diff.8 b/man/man8/zfs-diff.8 index a347f32520..f82735b38e 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 04bbbec1f5..635f21f59a 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