1eda14cbcSMatt Macy.\" 2eda14cbcSMatt Macy.\" CDDL HEADER START 3eda14cbcSMatt Macy.\" 4eda14cbcSMatt Macy.\" The contents of this file are subject to the terms of the 5eda14cbcSMatt Macy.\" Common Development and Distribution License (the "License"). 6eda14cbcSMatt Macy.\" You may not use this file except in compliance with the License. 7eda14cbcSMatt Macy.\" 8eda14cbcSMatt Macy.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9eda14cbcSMatt Macy.\" or http://www.opensolaris.org/os/licensing. 10eda14cbcSMatt Macy.\" See the License for the specific language governing permissions 11eda14cbcSMatt Macy.\" and limitations under the License. 12eda14cbcSMatt Macy.\" 13eda14cbcSMatt Macy.\" When distributing Covered Code, include this CDDL HEADER in each 14eda14cbcSMatt Macy.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15eda14cbcSMatt Macy.\" If applicable, add the following below this CDDL HEADER, with the 16eda14cbcSMatt Macy.\" fields enclosed by brackets "[]" replaced with your own identifying 17eda14cbcSMatt Macy.\" information: Portions Copyright [yyyy] [name of copyright owner] 18eda14cbcSMatt Macy.\" 19eda14cbcSMatt Macy.\" CDDL HEADER END 20eda14cbcSMatt Macy.\" 21eda14cbcSMatt Macy.\" 22eda14cbcSMatt Macy.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. 23eda14cbcSMatt Macy.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 24eda14cbcSMatt Macy.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 25eda14cbcSMatt Macy.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 26eda14cbcSMatt Macy.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 27eda14cbcSMatt Macy.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 28eda14cbcSMatt Macy.\" Copyright (c) 2014 Integros [integros.com] 29eda14cbcSMatt Macy.\" Copyright 2019 Richard Laager. All rights reserved. 30eda14cbcSMatt Macy.\" Copyright 2018 Nexenta Systems, Inc. 31eda14cbcSMatt Macy.\" Copyright 2019 Joyent, Inc. 32eda14cbcSMatt Macy.\" 33eda14cbcSMatt Macy.Dd June 30, 2019 34eda14cbcSMatt Macy.Dt ZFS-SET 8 35eda14cbcSMatt Macy.Os 36eda14cbcSMatt Macy.Sh NAME 37*7877fdebSMatt Macy.Nm zfs-set 38eda14cbcSMatt Macy.Nd Sets the property or list of properties to the given value(s) for each dataset. 39eda14cbcSMatt Macy.Sh SYNOPSIS 40*7877fdebSMatt Macy.Nm zfs 41eda14cbcSMatt Macy.Cm set 42eda14cbcSMatt Macy.Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns ... 43eda14cbcSMatt Macy.Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ... 44*7877fdebSMatt Macy.Nm zfs 45eda14cbcSMatt Macy.Cm get 46eda14cbcSMatt Macy.Op Fl r Ns | Ns Fl d Ar depth 47eda14cbcSMatt Macy.Op Fl Hp 48eda14cbcSMatt Macy.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc 49eda14cbcSMatt Macy.Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns ... Oc 50eda14cbcSMatt Macy.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc 51eda14cbcSMatt Macy.Cm all | Ar property Ns Oo , Ns Ar property Oc Ns ... 52eda14cbcSMatt Macy.Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns ... 53*7877fdebSMatt Macy.Nm zfs 54eda14cbcSMatt Macy.Cm inherit 55eda14cbcSMatt Macy.Op Fl rS 56eda14cbcSMatt Macy.Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ... 57eda14cbcSMatt Macy.Sh DESCRIPTION 58eda14cbcSMatt Macy.Bl -tag -width "" 59eda14cbcSMatt Macy.It Xo 60*7877fdebSMatt Macy.Nm zfs 61eda14cbcSMatt Macy.Cm set 62eda14cbcSMatt Macy.Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns ... 63eda14cbcSMatt Macy.Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ... 64eda14cbcSMatt Macy.Xc 65eda14cbcSMatt MacyOnly some properties can be edited. 66eda14cbcSMatt MacySee 67eda14cbcSMatt Macy.Xr zfsprops 8 68eda14cbcSMatt Macyfor more information on what properties can be set and acceptable 69eda14cbcSMatt Macyvalues. 70eda14cbcSMatt MacyNumeric values can be specified as exact values, or in a human-readable form 71eda14cbcSMatt Macywith a suffix of 72eda14cbcSMatt Macy.Sy B , K , M , G , T , P , E , Z 73eda14cbcSMatt Macy.Po for bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes, 74eda14cbcSMatt Macyor zettabytes, respectively 75eda14cbcSMatt Macy.Pc . 76eda14cbcSMatt MacyUser properties can be set on snapshots. 77eda14cbcSMatt MacyFor more information, see the 78eda14cbcSMatt Macy.Em User Properties 79eda14cbcSMatt Macysection of 80eda14cbcSMatt Macy.Xr zfsprops 8 . 81eda14cbcSMatt Macy.It Xo 82*7877fdebSMatt Macy.Nm zfs 83eda14cbcSMatt Macy.Cm get 84eda14cbcSMatt Macy.Op Fl r Ns | Ns Fl d Ar depth 85eda14cbcSMatt Macy.Op Fl Hp 86eda14cbcSMatt Macy.Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc 87eda14cbcSMatt Macy.Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns ... Oc 88eda14cbcSMatt Macy.Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc 89eda14cbcSMatt Macy.Cm all | Ar property Ns Oo , Ns Ar property Oc Ns ... 90eda14cbcSMatt Macy.Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns ... 91eda14cbcSMatt Macy.Xc 92eda14cbcSMatt MacyDisplays properties for the given datasets. 93eda14cbcSMatt MacyIf no datasets are specified, then the command displays properties for all 94eda14cbcSMatt Macydatasets on the system. 95eda14cbcSMatt MacyFor each property, the following columns are displayed: 96eda14cbcSMatt Macy.Bd -literal 97eda14cbcSMatt Macy name Dataset name 98eda14cbcSMatt Macy property Property name 99eda14cbcSMatt Macy value Property value 100eda14cbcSMatt Macy source Property source \fBlocal\fP, \fBdefault\fP, \fBinherited\fP, 101eda14cbcSMatt Macy \fBtemporary\fP, \fBreceived\fP or none (\fB-\fP). 102eda14cbcSMatt Macy.Ed 103eda14cbcSMatt Macy.Pp 104eda14cbcSMatt MacyAll columns are displayed by default, though this can be controlled by using the 105eda14cbcSMatt Macy.Fl o 106eda14cbcSMatt Macyoption. 107eda14cbcSMatt MacyThis command takes a comma-separated list of properties as described in the 108eda14cbcSMatt Macy.Em Native Properties 109eda14cbcSMatt Macyand 110eda14cbcSMatt Macy.Em User Properties 111eda14cbcSMatt Macysections of 112eda14cbcSMatt Macy.Xr zfsprops 8 . 113eda14cbcSMatt Macy.Pp 114eda14cbcSMatt MacyThe value 115eda14cbcSMatt Macy.Sy all 116eda14cbcSMatt Macycan be used to display all properties that apply to the given dataset's type 117eda14cbcSMatt Macy.Pq filesystem, volume, snapshot, or bookmark . 118eda14cbcSMatt Macy.Bl -tag -width "-H" 119eda14cbcSMatt Macy.It Fl H 120eda14cbcSMatt MacyDisplay output in a form more easily parsed by scripts. 121eda14cbcSMatt MacyAny headers are omitted, and fields are explicitly separated by a single tab 122eda14cbcSMatt Macyinstead of an arbitrary amount of space. 123eda14cbcSMatt Macy.It Fl d Ar depth 124eda14cbcSMatt MacyRecursively display any children of the dataset, limiting the recursion to 125eda14cbcSMatt Macy.Ar depth . 126eda14cbcSMatt MacyA depth of 127eda14cbcSMatt Macy.Sy 1 128eda14cbcSMatt Macywill display only the dataset and its direct children. 129eda14cbcSMatt Macy.It Fl o Ar field 130eda14cbcSMatt MacyA comma-separated list of columns to display. 131eda14cbcSMatt Macy.Sy name Ns \&, Ns Sy property Ns \&, Ns Sy value Ns \&, Ns Sy source 132eda14cbcSMatt Macyis the default value. 133eda14cbcSMatt Macy.It Fl p 134eda14cbcSMatt MacyDisplay numbers in parsable 135eda14cbcSMatt Macy.Pq exact 136eda14cbcSMatt Macyvalues. 137eda14cbcSMatt Macy.It Fl r 138eda14cbcSMatt MacyRecursively display properties for any children. 139eda14cbcSMatt Macy.It Fl s Ar source 140eda14cbcSMatt MacyA comma-separated list of sources to display. 141eda14cbcSMatt MacyThose properties coming from a source other than those in this list are ignored. 142eda14cbcSMatt MacyEach source must be one of the following: 143eda14cbcSMatt Macy.Sy local , 144eda14cbcSMatt Macy.Sy default , 145eda14cbcSMatt Macy.Sy inherited , 146eda14cbcSMatt Macy.Sy temporary , 147eda14cbcSMatt Macy.Sy received , 148eda14cbcSMatt Macyand 149eda14cbcSMatt Macy.Sy none . 150eda14cbcSMatt MacyThe default value is all sources. 151eda14cbcSMatt Macy.It Fl t Ar type 152eda14cbcSMatt MacyA comma-separated list of types to display, where 153eda14cbcSMatt Macy.Ar type 154eda14cbcSMatt Macyis one of 155eda14cbcSMatt Macy.Sy filesystem , 156eda14cbcSMatt Macy.Sy snapshot , 157eda14cbcSMatt Macy.Sy volume , 158eda14cbcSMatt Macy.Sy bookmark , 159eda14cbcSMatt Macyor 160eda14cbcSMatt Macy.Sy all . 161eda14cbcSMatt Macy.El 162eda14cbcSMatt Macy.It Xo 163*7877fdebSMatt Macy.Nm zfs 164eda14cbcSMatt Macy.Cm inherit 165eda14cbcSMatt Macy.Op Fl rS 166eda14cbcSMatt Macy.Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ... 167eda14cbcSMatt Macy.Xc 168eda14cbcSMatt MacyClears the specified property, causing it to be inherited from an ancestor, 169eda14cbcSMatt Macyrestored to default if no ancestor has the property set, or with the 170eda14cbcSMatt Macy.Fl S 171eda14cbcSMatt Macyoption reverted to the received value if one exists. 172eda14cbcSMatt MacySee 173eda14cbcSMatt Macy.Xr zfsprops 8 174eda14cbcSMatt Macyfor a listing of default values, and details on which properties can be 175eda14cbcSMatt Macyinherited. 176eda14cbcSMatt Macy.Bl -tag -width "-r" 177eda14cbcSMatt Macy.It Fl r 178eda14cbcSMatt MacyRecursively inherit the given property for all children. 179eda14cbcSMatt Macy.It Fl S 180eda14cbcSMatt MacyRevert the property to the received value if one exists; otherwise operate as 181eda14cbcSMatt Macyif the 182eda14cbcSMatt Macy.Fl S 183eda14cbcSMatt Macyoption was not specified. 184eda14cbcSMatt Macy.El 185eda14cbcSMatt Macy.El 186eda14cbcSMatt Macy.Sh SEE ALSO 187eda14cbcSMatt Macy.Xr zfs-list 8 , 188eda14cbcSMatt Macy.Xr zfsprops 8 189