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 http://www.opensolaris.org/os/licensing.
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]
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.
37 .Nm zfs Ns Pf - Cm set
38 .Nd Sets the property or list of properties to the given value(s) for each dataset.
42 .Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns ...
43 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
46 .Op Fl r Ns | Ns Fl d Ar depth
48 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
49 .Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns ... Oc
50 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
51 .Cm all | Ar property Ns Oo , Ns Ar property Oc Ns ...
52 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns ...
56 .Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
62 .Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns ...
63 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
65 Only some properties can be edited.
68 for more information on what properties can be set and acceptable
70 Numeric values can be specified as exact values, or in a human-readable form
72 .Sy B , K , M , G , T , P , E , Z
73 .Po for bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes,
74 or zettabytes, respectively
76 User properties can be set on snapshots.
77 For more information, see the
84 .Op Fl r Ns | Ns Fl d Ar depth
86 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
87 .Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns ... Oc
88 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
89 .Cm all | Ar property Ns Oo , Ns Ar property Oc Ns ...
90 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns ...
92 Displays properties for the given datasets.
93 If no datasets are specified, then the command displays properties for all
94 datasets on the system.
95 For each property, the following columns are displayed:
98 property Property name
100 source Property source \fBlocal\fP, \fBdefault\fP, \fBinherited\fP,
101 \fBtemporary\fP, \fBreceived\fP or none (\fB-\fP).
104 All columns are displayed by default, though this can be controlled by using the
107 This command takes a comma-separated list of properties as described in the
108 .Em Native Properties
116 can be used to display all properties that apply to the given dataset's type
117 .Pq filesystem, volume, snapshot, or bookmark .
120 Display output in a form more easily parsed by scripts.
121 Any headers are omitted, and fields are explicitly separated by a single tab
122 instead of an arbitrary amount of space.
124 Recursively display any children of the dataset, limiting the recursion to
128 will display only the dataset and its direct children.
130 A comma-separated list of columns to display.
131 .Sy name Ns \&, Ns Sy property Ns \&, Ns Sy value Ns \&, Ns Sy source
132 is the default value.
134 Display numbers in parsable
138 Recursively display properties for any children.
140 A comma-separated list of sources to display.
141 Those properties coming from a source other than those in this list are ignored.
142 Each source must be one of the following:
150 The default value is all sources.
152 A comma-separated list of types to display, where
166 .Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
168 Clears the specified property, causing it to be inherited from an ancestor,
169 restored to default if no ancestor has the property set, or with the
171 option reverted to the received value if one exists.
174 for a listing of default values, and details on which properties can be
178 Recursively inherit the given property for all children.
180 Revert the property to the received value if one exists; otherwise operate as
183 option was not specified.