]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - man/man8/zfs-diff.8
Vendor import of openzfs master @ 184df27eef0abdc7ab2105b21257f753834b936b
[FreeBSD/FreeBSD.git] / man / man8 / zfs-diff.8
1 .\"
2 .\" CDDL HEADER START
3 .\"
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.
7 .\"
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
12 .\"
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]
18 .\"
19 .\" CDDL HEADER END
20 .\"
21 .\"
22 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
23 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
24 .\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
25 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
26 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
27 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
28 .\" Copyright (c) 2014 Integros [integros.com]
29 .\" Copyright 2019 Richard Laager. All rights reserved.
30 .\" Copyright 2018 Nexenta Systems, Inc.
31 .\" Copyright 2019 Joyent, Inc.
32 .\"
33 .Dd June 30, 2019
34 .Dt ZFS-DIFF 8
35 .Os
36 .Sh NAME
37 .Nm zfs Ns Pf - Cm diff
38 .Nd Display the difference between two snapshots of a given filesystem.
39 .Sh SYNOPSIS
40 .Nm
41 .Cm diff
42 .Op Fl FHt
43 .Ar snapshot Ar snapshot Ns | Ns Ar filesystem
44 .Sh DESCRIPTION
45 .Bl -tag -width ""
46 .It Xo
47 .Nm
48 .Cm diff
49 .Op Fl FHt
50 .Ar snapshot Ar snapshot Ns | Ns Ar filesystem
51 .Xc
52 Display the difference between a snapshot of a given filesystem and another
53 snapshot of that filesystem from a later time or the current contents of the
54 filesystem.
55 The first column is a character indicating the type of change, the other columns
56 indicate pathname, new pathname
57 .Pq in case of rename ,
58 change in link count, and optionally file type and/or change time.
59 The types of change are:
60 .Bd -literal
61 -       The path has been removed
62 +       The path has been created
63 M       The path has been modified
64 R       The path has been renamed
65 .Ed
66 .Bl -tag -width "-F"
67 .It Fl F
68 Display an indication of the type of file, in a manner similar to the
69 .Fl
70 option of
71 .Xr ls 1 .
72 .Bd -literal
73 B       Block device
74 C       Character device
75 /       Directory
76 >       Door
77 |       Named pipe
78 @       Symbolic link
79 P       Event port
80 =       Socket
81 F       Regular file
82 .Ed
83 .It Fl H
84 Give more parsable tab-separated output, without header lines and without
85 arrows.
86 .It Fl t
87 Display the path's inode change time as the first column of output.
88 .El
89 .El
90 .Sh SEE ALSO
91 .Xr zfs-snapshot 8