4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or https://opensource.org/licenses/CDDL-1.0.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
21 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
22 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
23 .\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
24 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
26 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
27 .\" Copyright (c) 2014 Integros [integros.com]
28 .\" Copyright 2019 Richard Laager. All rights reserved.
29 .\" Copyright 2018 Nexenta Systems, Inc.
30 .\" Copyright 2019 Joyent, Inc.
38 .Nd show difference between ZFS snapshots
43 .Ar snapshot Ar snapshot Ns | Ns Ar filesystem
46 Display the difference between a snapshot of a given filesystem and another
47 snapshot of that filesystem from a later time or the current contents of the
49 The first column is a character indicating the type of change, the other columns
50 indicate pathname, new pathname
51 .Pq in case of rename ,
52 change in link count, and optionally file type and/or change time.
53 The types of change are:
54 .Bl -tag -compact -offset Ds -width "M"
56 The path has been removed
58 The path has been created
60 The path has been modified
62 The path has been renamed
66 Display an indication of the type of file, in a manner similar to the
70 .Bl -tag -compact -offset 2n -width "B"
91 Give more parsable tab-separated output, without header lines and without
94 Display the path's inode change time as the first column of output.
97 .Sy \e0 Ns Ar ooo Ns -escape
102 .\" These are, respectively, examples 22 from zfs.8
103 .\" Make sure to update them bidirectionally
104 .Ss Example 1 : No Showing the differences between a snapshot and a ZFS Dataset
105 The following example shows how to see what has changed between a prior
106 snapshot of a ZFS dataset and its current state.
109 option is used to indicate type information for the files affected.
110 .Bd -literal -compact -offset Ds
111 .No # Nm zfs Cm diff Fl F Ar tank/test@before tank/test
113 M F /tank/test/linked (+1)
114 R F /tank/test/oldname -> /tank/test/newname
115 - F /tank/test/deleted
116 + F /tank/test/created
117 M F /tank/test/modified