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]
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 set properties on ZFS datasets
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 Ns | Ns 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 …
63 .Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns …
64 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns …
66 Only some properties can be edited.
69 for more information on what properties can be set and acceptable
71 Numeric values can be specified as exact values, or in a human-readable form
73 .Sy B , K , M , G , T , P , E , Z
74 .Po for bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes,
75 or zettabytes, respectively
77 User properties can be set on snapshots.
78 For more information, see the
85 .Op Fl r Ns | Ns Fl d Ar depth
87 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns … Oc
88 .Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns … Oc
89 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns … Oc
90 .Cm all Ns | Ns Ar property Ns Oo , Ns Ar property Oc Ns …
91 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns …
93 Displays properties for the given datasets.
94 If no datasets are specified, then the command displays properties for all
95 datasets on the system.
96 For each property, the following columns are displayed:
97 .Bl -tag -compact -offset 4n -width "property"
106 .Sy local , default , inherited , temporary , received , No or Sy - Pq none .
109 All columns are displayed by default, though this can be controlled by using the
112 This command takes a comma-separated list of properties as described in the
113 .Sx Native Properties
121 can be used to display all properties that apply to the given dataset's type
122 .Pq Sy filesystem , volume , snapshot , No or Sy bookmark .
123 .Bl -tag -width "-s source"
125 Display output in a form more easily parsed by scripts.
126 Any headers are omitted, and fields are explicitly separated by a single tab
127 instead of an arbitrary amount of space.
129 Recursively display any children of the dataset, limiting the recursion to
133 will display only the dataset and its direct children.
135 A comma-separated list of columns to display, defaults to
136 .Sy name , Ns Sy property , Ns Sy value , Ns Sy source .
138 Display numbers in parsable
142 Recursively display properties for any children.
144 A comma-separated list of sources to display.
145 Those properties coming from a source other than those in this list are ignored.
146 Each source must be one of the following:
147 .Sy local , default , inherited , temporary , received , No or Sy none .
148 The default value is all sources.
150 A comma-separated list of types to display, where
153 .Sy filesystem , snapshot , volume , bookmark , No or Sy all .
159 .Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns …
161 Clears the specified property, causing it to be inherited from an ancestor,
162 restored to default if no ancestor has the property set, or with the
164 option reverted to the received value if one exists.
167 for a listing of default values, and details on which properties can be
171 Recursively inherit the given property for all children.
173 Revert the property to the received value if one exists; otherwise operate as
176 option was not specified.