13ff01b23SMartin Matuska.\" 23ff01b23SMartin Matuska.\" CDDL HEADER START 33ff01b23SMartin Matuska.\" 43ff01b23SMartin Matuska.\" The contents of this file are subject to the terms of the 53ff01b23SMartin Matuska.\" Common Development and Distribution License (the "License"). 63ff01b23SMartin Matuska.\" You may not use this file except in compliance with the License. 73ff01b23SMartin Matuska.\" 83ff01b23SMartin Matuska.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93ff01b23SMartin Matuska.\" or http://www.opensolaris.org/os/licensing. 103ff01b23SMartin Matuska.\" See the License for the specific language governing permissions 113ff01b23SMartin Matuska.\" and limitations under the License. 123ff01b23SMartin Matuska.\" 133ff01b23SMartin Matuska.\" When distributing Covered Code, include this CDDL HEADER in each 143ff01b23SMartin Matuska.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153ff01b23SMartin Matuska.\" If applicable, add the following below this CDDL HEADER, with the 163ff01b23SMartin Matuska.\" fields enclosed by brackets "[]" replaced with your own identifying 173ff01b23SMartin Matuska.\" information: Portions Copyright [yyyy] [name of copyright owner] 183ff01b23SMartin Matuska.\" 193ff01b23SMartin Matuska.\" CDDL HEADER END 203ff01b23SMartin Matuska.\" 213ff01b23SMartin Matuska.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved. 223ff01b23SMartin Matuska.\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org> 233ff01b23SMartin Matuska.\" Copyright (c) 2011, 2019 by Delphix. All rights reserved. 243ff01b23SMartin Matuska.\" Copyright (c) 2011, Pawel Jakub Dawidek <pjd@FreeBSD.org> 253ff01b23SMartin Matuska.\" Copyright (c) 2012, Glen Barber <gjb@FreeBSD.org> 263ff01b23SMartin Matuska.\" Copyright (c) 2012, Bryan Drewery <bdrewery@FreeBSD.org> 273ff01b23SMartin Matuska.\" Copyright (c) 2013, Steven Hartland <smh@FreeBSD.org> 283ff01b23SMartin Matuska.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved. 293ff01b23SMartin Matuska.\" Copyright (c) 2014, Joyent, Inc. All rights reserved. 303ff01b23SMartin Matuska.\" Copyright (c) 2014 by Adam Stevko. All rights reserved. 313ff01b23SMartin Matuska.\" Copyright (c) 2014 Integros [integros.com] 323ff01b23SMartin Matuska.\" Copyright (c) 2016 Nexenta Systems, Inc. All Rights Reserved. 333ff01b23SMartin Matuska.\" Copyright (c) 2014, Xin LI <delphij@FreeBSD.org> 343ff01b23SMartin Matuska.\" Copyright (c) 2014-2015, The FreeBSD Foundation, All Rights Reserved. 353ff01b23SMartin Matuska.\" Copyright 2019 Richard Laager. All rights reserved. 363ff01b23SMartin Matuska.\" Copyright 2018 Nexenta Systems, Inc. 373ff01b23SMartin Matuska.\" Copyright 2019 Joyent, Inc. 383ff01b23SMartin Matuska.\" Copyright (c) 2019, Kjeld Schouten-Lebbing 393ff01b23SMartin Matuska.\" 403ff01b23SMartin Matuska.Dd May 24, 2021 413ff01b23SMartin Matuska.Dt ZFSPROPS 7 423ff01b23SMartin Matuska.Os 433ff01b23SMartin Matuska. 443ff01b23SMartin Matuska.Sh NAME 453ff01b23SMartin Matuska.Nm zfsprops 463ff01b23SMartin Matuska.Nd native and user-defined properties of ZFS datasets 473ff01b23SMartin Matuska. 483ff01b23SMartin Matuska.Sh DESCRIPTION 493ff01b23SMartin MatuskaProperties are divided into two types, native properties and user-defined 503ff01b23SMartin Matuska.Po or 513ff01b23SMartin Matuska.Qq user 523ff01b23SMartin Matuska.Pc 533ff01b23SMartin Matuskaproperties. 543ff01b23SMartin MatuskaNative properties either export internal statistics or control ZFS behavior. 553ff01b23SMartin MatuskaIn addition, native properties are either editable or read-only. 563ff01b23SMartin MatuskaUser properties have no effect on ZFS behavior, but you can use them to annotate 573ff01b23SMartin Matuskadatasets in a way that is meaningful in your environment. 583ff01b23SMartin MatuskaFor more information about user properties, see the 593ff01b23SMartin Matuska.Sx User Properties 603ff01b23SMartin Matuskasection, below. 613ff01b23SMartin Matuska. 623ff01b23SMartin Matuska.Ss Native Properties 633ff01b23SMartin MatuskaEvery dataset has a set of properties that export statistics about the dataset 643ff01b23SMartin Matuskaas well as control various behaviors. 653ff01b23SMartin MatuskaProperties are inherited from the parent unless overridden by the child. 663ff01b23SMartin MatuskaSome properties apply only to certain types of datasets 673ff01b23SMartin Matuska.Pq file systems, volumes, or snapshots . 683ff01b23SMartin Matuska.Pp 693ff01b23SMartin MatuskaThe values of numeric properties can be specified using human-readable suffixes 703ff01b23SMartin Matuska.Po for example, 713ff01b23SMartin Matuska.Sy k , 723ff01b23SMartin Matuska.Sy KB , 733ff01b23SMartin Matuska.Sy M , 743ff01b23SMartin Matuska.Sy Gb , 753ff01b23SMartin Matuskaand so forth, up to 763ff01b23SMartin Matuska.Sy Z 773ff01b23SMartin Matuskafor zettabyte 783ff01b23SMartin Matuska.Pc . 793ff01b23SMartin MatuskaThe following are all valid 803ff01b23SMartin Matuska.Pq and equal 813ff01b23SMartin Matuskaspecifications: 823ff01b23SMartin Matuska.Li 1536M, 1.5g, 1.50GB . 833ff01b23SMartin Matuska.Pp 843ff01b23SMartin MatuskaThe values of non-numeric properties are case sensitive and must be lowercase, 853ff01b23SMartin Matuskaexcept for 863ff01b23SMartin Matuska.Sy mountpoint , 873ff01b23SMartin Matuska.Sy sharenfs , 883ff01b23SMartin Matuskaand 893ff01b23SMartin Matuska.Sy sharesmb . 903ff01b23SMartin Matuska.Pp 913ff01b23SMartin MatuskaThe following native properties consist of read-only statistics about the 923ff01b23SMartin Matuskadataset. 933ff01b23SMartin MatuskaThese properties can be neither set, nor inherited. 943ff01b23SMartin MatuskaNative properties apply to all dataset types unless otherwise noted. 953ff01b23SMartin Matuska.Bl -tag -width "usedbyrefreservation" 963ff01b23SMartin Matuska.It Sy available 973ff01b23SMartin MatuskaThe amount of space available to the dataset and all its children, assuming that 983ff01b23SMartin Matuskathere is no other activity in the pool. 993ff01b23SMartin MatuskaBecause space is shared within a pool, availability can be limited by any number 1003ff01b23SMartin Matuskaof factors, including physical pool size, quotas, reservations, or other 1013ff01b23SMartin Matuskadatasets within the pool. 1023ff01b23SMartin Matuska.Pp 1033ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 1043ff01b23SMartin Matuska.Sy avail . 1053ff01b23SMartin Matuska.It Sy compressratio 1063ff01b23SMartin MatuskaFor non-snapshots, the compression ratio achieved for the 1073ff01b23SMartin Matuska.Sy used 1083ff01b23SMartin Matuskaspace of this dataset, expressed as a multiplier. 1093ff01b23SMartin MatuskaThe 1103ff01b23SMartin Matuska.Sy used 1113ff01b23SMartin Matuskaproperty includes descendant datasets, and, for clones, does not include the 1123ff01b23SMartin Matuskaspace shared with the origin snapshot. 1133ff01b23SMartin MatuskaFor snapshots, the 1143ff01b23SMartin Matuska.Sy compressratio 1153ff01b23SMartin Matuskais the same as the 1163ff01b23SMartin Matuska.Sy refcompressratio 1173ff01b23SMartin Matuskaproperty. 1183ff01b23SMartin MatuskaCompression can be turned on by running: 1193ff01b23SMartin Matuska.Nm zfs Cm set Sy compression Ns = Ns Sy on Ar dataset . 1203ff01b23SMartin MatuskaThe default value is 1213ff01b23SMartin Matuska.Sy off . 1223ff01b23SMartin Matuska.It Sy createtxg 1233ff01b23SMartin MatuskaThe transaction group (txg) in which the dataset was created. 1243ff01b23SMartin MatuskaBookmarks have the same 1253ff01b23SMartin Matuska.Sy createtxg 1263ff01b23SMartin Matuskaas the snapshot they are initially tied to. 1273ff01b23SMartin MatuskaThis property is suitable for ordering a list of snapshots, 1283ff01b23SMartin Matuskae.g. for incremental send and receive. 1293ff01b23SMartin Matuska.It Sy creation 1303ff01b23SMartin MatuskaThe time this dataset was created. 1313ff01b23SMartin Matuska.It Sy clones 1323ff01b23SMartin MatuskaFor snapshots, this property is a comma-separated list of filesystems or volumes 1333ff01b23SMartin Matuskawhich are clones of this snapshot. 1343ff01b23SMartin MatuskaThe clones' 1353ff01b23SMartin Matuska.Sy origin 1363ff01b23SMartin Matuskaproperty is this snapshot. 1373ff01b23SMartin MatuskaIf the 1383ff01b23SMartin Matuska.Sy clones 1393ff01b23SMartin Matuskaproperty is not empty, then this snapshot can not be destroyed 1403ff01b23SMartin Matuska.Po even with the 1413ff01b23SMartin Matuska.Fl r 1423ff01b23SMartin Matuskaor 1433ff01b23SMartin Matuska.Fl f 1443ff01b23SMartin Matuskaoptions 1453ff01b23SMartin Matuska.Pc . 1463ff01b23SMartin MatuskaThe roles of origin and clone can be swapped by promoting the clone with the 1473ff01b23SMartin Matuska.Nm zfs Cm promote 1483ff01b23SMartin Matuskacommand. 1493ff01b23SMartin Matuska.It Sy defer_destroy 1503ff01b23SMartin MatuskaThis property is 1513ff01b23SMartin Matuska.Sy on 1523ff01b23SMartin Matuskaif the snapshot has been marked for deferred destroy by using the 1533ff01b23SMartin Matuska.Nm zfs Cm destroy Fl d 1543ff01b23SMartin Matuskacommand. 1553ff01b23SMartin MatuskaOtherwise, the property is 1563ff01b23SMartin Matuska.Sy off . 1573ff01b23SMartin Matuska.It Sy encryptionroot 1583ff01b23SMartin MatuskaFor encrypted datasets, indicates where the dataset is currently inheriting its 1593ff01b23SMartin Matuskaencryption key from. 1603ff01b23SMartin MatuskaLoading or unloading a key for the 1613ff01b23SMartin Matuska.Sy encryptionroot 1623ff01b23SMartin Matuskawill implicitly load / unload the key for any inheriting datasets (see 1633ff01b23SMartin Matuska.Nm zfs Cm load-key 1643ff01b23SMartin Matuskaand 1653ff01b23SMartin Matuska.Nm zfs Cm unload-key 1663ff01b23SMartin Matuskafor details). 1673ff01b23SMartin MatuskaClones will always share an 1683ff01b23SMartin Matuskaencryption key with their origin. 1693ff01b23SMartin MatuskaSee the 1703ff01b23SMartin Matuska.Sx Encryption 1713ff01b23SMartin Matuskasection of 1723ff01b23SMartin Matuska.Xr zfs-load-key 8 1733ff01b23SMartin Matuskafor details. 1743ff01b23SMartin Matuska.It Sy filesystem_count 1753ff01b23SMartin MatuskaThe total number of filesystems and volumes that exist under this location in 1763ff01b23SMartin Matuskathe dataset tree. 1773ff01b23SMartin MatuskaThis value is only available when a 1783ff01b23SMartin Matuska.Sy filesystem_limit 1793ff01b23SMartin Matuskahas been set somewhere in the tree under which the dataset resides. 1803ff01b23SMartin Matuska.It Sy keystatus 1813ff01b23SMartin MatuskaIndicates if an encryption key is currently loaded into ZFS. 1823ff01b23SMartin MatuskaThe possible values are 1833ff01b23SMartin Matuska.Sy none , 1843ff01b23SMartin Matuska.Sy available , 1853ff01b23SMartin Matuskaand 1863ff01b23SMartin Matuska.Sy unavailable . 1873ff01b23SMartin MatuskaSee 1883ff01b23SMartin Matuska.Nm zfs Cm load-key 1893ff01b23SMartin Matuskaand 1903ff01b23SMartin Matuska.Nm zfs Cm unload-key . 1913ff01b23SMartin Matuska.It Sy guid 1923ff01b23SMartin MatuskaThe 64 bit GUID of this dataset or bookmark which does not change over its 1933ff01b23SMartin Matuskaentire lifetime. 1943ff01b23SMartin MatuskaWhen a snapshot is sent to another pool, the received snapshot has the same GUID. 1953ff01b23SMartin MatuskaThus, the 1963ff01b23SMartin Matuska.Sy guid 1973ff01b23SMartin Matuskais suitable to identify a snapshot across pools. 1983ff01b23SMartin Matuska.It Sy logicalreferenced 1993ff01b23SMartin MatuskaThe amount of space that is 2003ff01b23SMartin Matuska.Qq logically 2013ff01b23SMartin Matuskaaccessible by this dataset. 2023ff01b23SMartin MatuskaSee the 2033ff01b23SMartin Matuska.Sy referenced 2043ff01b23SMartin Matuskaproperty. 2053ff01b23SMartin MatuskaThe logical space ignores the effect of the 2063ff01b23SMartin Matuska.Sy compression 2073ff01b23SMartin Matuskaand 2083ff01b23SMartin Matuska.Sy copies 2093ff01b23SMartin Matuskaproperties, giving a quantity closer to the amount of data that applications 2103ff01b23SMartin Matuskasee. 2113ff01b23SMartin MatuskaHowever, it does include space consumed by metadata. 2123ff01b23SMartin Matuska.Pp 2133ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 2143ff01b23SMartin Matuska.Sy lrefer . 2153ff01b23SMartin Matuska.It Sy logicalused 2163ff01b23SMartin MatuskaThe amount of space that is 2173ff01b23SMartin Matuska.Qq logically 2183ff01b23SMartin Matuskaconsumed by this dataset and all its descendents. 2193ff01b23SMartin MatuskaSee the 2203ff01b23SMartin Matuska.Sy used 2213ff01b23SMartin Matuskaproperty. 2223ff01b23SMartin MatuskaThe logical space ignores the effect of the 2233ff01b23SMartin Matuska.Sy compression 2243ff01b23SMartin Matuskaand 2253ff01b23SMartin Matuska.Sy copies 2263ff01b23SMartin Matuskaproperties, giving a quantity closer to the amount of data that applications 2273ff01b23SMartin Matuskasee. 2283ff01b23SMartin MatuskaHowever, it does include space consumed by metadata. 2293ff01b23SMartin Matuska.Pp 2303ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 2313ff01b23SMartin Matuska.Sy lused . 2323ff01b23SMartin Matuska.It Sy mounted 2333ff01b23SMartin MatuskaFor file systems, indicates whether the file system is currently mounted. 2343ff01b23SMartin MatuskaThis property can be either 2353ff01b23SMartin Matuska.Sy yes 2363ff01b23SMartin Matuskaor 2373ff01b23SMartin Matuska.Sy no . 2383ff01b23SMartin Matuska.It Sy objsetid 2393ff01b23SMartin MatuskaA unique identifier for this dataset within the pool. 2403ff01b23SMartin MatuskaUnlike the dataset's 2413ff01b23SMartin Matuska.Sy guid , No the Sy objsetid 2423ff01b23SMartin Matuskaof a dataset is not transferred to other pools when the snapshot is copied 2433ff01b23SMartin Matuskawith a send/receive operation. 2443ff01b23SMartin MatuskaThe 2453ff01b23SMartin Matuska.Sy objsetid 2463ff01b23SMartin Matuskacan be reused (for a new dataset) after the dataset is deleted. 2473ff01b23SMartin Matuska.It Sy origin 2483ff01b23SMartin MatuskaFor cloned file systems or volumes, the snapshot from which the clone was 2493ff01b23SMartin Matuskacreated. 2503ff01b23SMartin MatuskaSee also the 2513ff01b23SMartin Matuska.Sy clones 2523ff01b23SMartin Matuskaproperty. 2533ff01b23SMartin Matuska.It Sy receive_resume_token 2543ff01b23SMartin MatuskaFor filesystems or volumes which have saved partially-completed state from 2553ff01b23SMartin Matuska.Nm zfs Cm receive Fl s , 2563ff01b23SMartin Matuskathis opaque token can be provided to 2573ff01b23SMartin Matuska.Nm zfs Cm send Fl t 2583ff01b23SMartin Matuskato resume and complete the 2593ff01b23SMartin Matuska.Nm zfs Cm receive . 2603ff01b23SMartin Matuska.It Sy redact_snaps 2613ff01b23SMartin MatuskaFor bookmarks, this is the list of snapshot guids the bookmark contains a redaction 2623ff01b23SMartin Matuskalist for. 2633ff01b23SMartin MatuskaFor snapshots, this is the list of snapshot guids the snapshot is redacted with 2643ff01b23SMartin Matuskarespect to. 2653ff01b23SMartin Matuska.It Sy referenced 2663ff01b23SMartin MatuskaThe amount of data that is accessible by this dataset, which may or may not be 2673ff01b23SMartin Matuskashared with other datasets in the pool. 2683ff01b23SMartin MatuskaWhen a snapshot or clone is created, it initially references the same amount of 2693ff01b23SMartin Matuskaspace as the file system or snapshot it was created from, since its contents are 2703ff01b23SMartin Matuskaidentical. 2713ff01b23SMartin Matuska.Pp 2723ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 2733ff01b23SMartin Matuska.Sy refer . 2743ff01b23SMartin Matuska.It Sy refcompressratio 2753ff01b23SMartin MatuskaThe compression ratio achieved for the 2763ff01b23SMartin Matuska.Sy referenced 2773ff01b23SMartin Matuskaspace of this dataset, expressed as a multiplier. 2783ff01b23SMartin MatuskaSee also the 2793ff01b23SMartin Matuska.Sy compressratio 2803ff01b23SMartin Matuskaproperty. 2813ff01b23SMartin Matuska.It Sy snapshot_count 2823ff01b23SMartin MatuskaThe total number of snapshots that exist under this location in the dataset 2833ff01b23SMartin Matuskatree. 2843ff01b23SMartin MatuskaThis value is only available when a 2853ff01b23SMartin Matuska.Sy snapshot_limit 2863ff01b23SMartin Matuskahas been set somewhere in the tree under which the dataset resides. 2873ff01b23SMartin Matuska.It Sy type 2883ff01b23SMartin MatuskaThe type of dataset: 2893ff01b23SMartin Matuska.Sy filesystem , 2903ff01b23SMartin Matuska.Sy volume , 2913ff01b23SMartin Matuska.Sy snapshot , 2923ff01b23SMartin Matuskaor 2933ff01b23SMartin Matuska.Sy bookmark . 2943ff01b23SMartin Matuska.It Sy used 2953ff01b23SMartin MatuskaThe amount of space consumed by this dataset and all its descendents. 2963ff01b23SMartin MatuskaThis is the value that is checked against this dataset's quota and reservation. 2973ff01b23SMartin MatuskaThe space used does not include this dataset's reservation, but does take into 2983ff01b23SMartin Matuskaaccount the reservations of any descendent datasets. 2993ff01b23SMartin MatuskaThe amount of space that a dataset consumes from its parent, as well as the 3003ff01b23SMartin Matuskaamount of space that is freed if this dataset is recursively destroyed, is the 3013ff01b23SMartin Matuskagreater of its space used and its reservation. 3023ff01b23SMartin Matuska.Pp 3033ff01b23SMartin MatuskaThe used space of a snapshot 3043ff01b23SMartin Matuska.Po see the 3053ff01b23SMartin Matuska.Sx Snapshots 3063ff01b23SMartin Matuskasection of 3073ff01b23SMartin Matuska.Xr zfsconcepts 7 3083ff01b23SMartin Matuska.Pc 3093ff01b23SMartin Matuskais space that is referenced exclusively by this snapshot. 3103ff01b23SMartin MatuskaIf this snapshot is destroyed, the amount of 3113ff01b23SMartin Matuska.Sy used 3123ff01b23SMartin Matuskaspace will be freed. 3133ff01b23SMartin MatuskaSpace that is shared by multiple snapshots isn't accounted for in this metric. 3143ff01b23SMartin MatuskaWhen a snapshot is destroyed, space that was previously shared with this 3153ff01b23SMartin Matuskasnapshot can become unique to snapshots adjacent to it, thus changing the used 3163ff01b23SMartin Matuskaspace of those snapshots. 3173ff01b23SMartin MatuskaThe used space of the latest snapshot can also be affected by changes in the 3183ff01b23SMartin Matuskafile system. 3193ff01b23SMartin MatuskaNote that the 3203ff01b23SMartin Matuska.Sy used 3213ff01b23SMartin Matuskaspace of a snapshot is a subset of the 3223ff01b23SMartin Matuska.Sy written 3233ff01b23SMartin Matuskaspace of the snapshot. 3243ff01b23SMartin Matuska.Pp 3253ff01b23SMartin MatuskaThe amount of space used, available, or referenced does not take into account 3263ff01b23SMartin Matuskapending changes. 3273ff01b23SMartin MatuskaPending changes are generally accounted for within a few seconds. 3283ff01b23SMartin MatuskaCommitting a change to a disk using 3293ff01b23SMartin Matuska.Xr fsync 2 3303ff01b23SMartin Matuskaor 3313ff01b23SMartin Matuska.Sy O_SYNC 3323ff01b23SMartin Matuskadoes not necessarily guarantee that the space usage information is updated 3333ff01b23SMartin Matuskaimmediately. 3343ff01b23SMartin Matuska.It Sy usedby* 3353ff01b23SMartin MatuskaThe 3363ff01b23SMartin Matuska.Sy usedby* 3373ff01b23SMartin Matuskaproperties decompose the 3383ff01b23SMartin Matuska.Sy used 3393ff01b23SMartin Matuskaproperties into the various reasons that space is used. 3403ff01b23SMartin MatuskaSpecifically, 3413ff01b23SMartin Matuska.Sy used No = 3423ff01b23SMartin Matuska.Sy usedbychildren No + 3433ff01b23SMartin Matuska.Sy usedbydataset No + 3443ff01b23SMartin Matuska.Sy usedbyrefreservation No + 3453ff01b23SMartin Matuska.Sy usedbysnapshots . 3463ff01b23SMartin MatuskaThese properties are only available for datasets created on 3473ff01b23SMartin Matuska.Nm zpool 3483ff01b23SMartin Matuska.Qo version 13 Qc 3493ff01b23SMartin Matuskapools. 3503ff01b23SMartin Matuska.It Sy usedbychildren 3513ff01b23SMartin MatuskaThe amount of space used by children of this dataset, which would be freed if 3523ff01b23SMartin Matuskaall the dataset's children were destroyed. 3533ff01b23SMartin Matuska.It Sy usedbydataset 3543ff01b23SMartin MatuskaThe amount of space used by this dataset itself, which would be freed if the 3553ff01b23SMartin Matuskadataset were destroyed 3563ff01b23SMartin Matuska.Po after first removing any 3573ff01b23SMartin Matuska.Sy refreservation 3583ff01b23SMartin Matuskaand destroying any necessary snapshots or descendents 3593ff01b23SMartin Matuska.Pc . 3603ff01b23SMartin Matuska.It Sy usedbyrefreservation 3613ff01b23SMartin MatuskaThe amount of space used by a 3623ff01b23SMartin Matuska.Sy refreservation 3633ff01b23SMartin Matuskaset on this dataset, which would be freed if the 3643ff01b23SMartin Matuska.Sy refreservation 3653ff01b23SMartin Matuskawas removed. 3663ff01b23SMartin Matuska.It Sy usedbysnapshots 3673ff01b23SMartin MatuskaThe amount of space consumed by snapshots of this dataset. 3683ff01b23SMartin MatuskaIn particular, it is the amount of space that would be freed if all of this 3693ff01b23SMartin Matuskadataset's snapshots were destroyed. 3703ff01b23SMartin MatuskaNote that this is not simply the sum of the snapshots' 3713ff01b23SMartin Matuska.Sy used 3723ff01b23SMartin Matuskaproperties because space can be shared by multiple snapshots. 3733ff01b23SMartin Matuska.It Sy userused Ns @ Ns Ar user 3743ff01b23SMartin MatuskaThe amount of space consumed by the specified user in this dataset. 3753ff01b23SMartin MatuskaSpace is charged to the owner of each file, as displayed by 3763ff01b23SMartin Matuska.Nm ls Fl l . 3773ff01b23SMartin MatuskaThe amount of space charged is displayed by 3783ff01b23SMartin Matuska.Nm du No and Nm ls Fl s . 3793ff01b23SMartin MatuskaSee the 3803ff01b23SMartin Matuska.Nm zfs Cm userspace 3813ff01b23SMartin Matuskacommand for more information. 3823ff01b23SMartin Matuska.Pp 3833ff01b23SMartin MatuskaUnprivileged users can access only their own space usage. 3843ff01b23SMartin MatuskaThe root user, or a user who has been granted the 3853ff01b23SMartin Matuska.Sy userused 3863ff01b23SMartin Matuskaprivilege with 3873ff01b23SMartin Matuska.Nm zfs Cm allow , 3883ff01b23SMartin Matuskacan access everyone's usage. 3893ff01b23SMartin Matuska.Pp 3903ff01b23SMartin MatuskaThe 3913ff01b23SMartin Matuska.Sy userused Ns @ Ns Ar ... 3923ff01b23SMartin Matuskaproperties are not displayed by 3933ff01b23SMartin Matuska.Nm zfs Cm get Sy all . 3943ff01b23SMartin MatuskaThe user's name must be appended after the 3953ff01b23SMartin Matuska.Sy @ 3963ff01b23SMartin Matuskasymbol, using one of the following forms: 3973ff01b23SMartin Matuska.Bl -bullet -compact -offset 4n 3983ff01b23SMartin Matuska.It 3993ff01b23SMartin MatuskaPOSIX name 4003ff01b23SMartin Matuska.Pq Qq joe 4013ff01b23SMartin Matuska.It 4023ff01b23SMartin MatuskaPOSIX numeric ID 4033ff01b23SMartin Matuska.Pq Qq 789 4043ff01b23SMartin Matuska.It 4053ff01b23SMartin MatuskaSID name 4063ff01b23SMartin Matuska.Pq Qq joe.smith@mydomain 4073ff01b23SMartin Matuska.It 4083ff01b23SMartin MatuskaSID numeric ID 4093ff01b23SMartin Matuska.Pq Qq S-1-123-456-789 4103ff01b23SMartin Matuska.El 4113ff01b23SMartin Matuska.Pp 4123ff01b23SMartin MatuskaFiles created on Linux always have POSIX owners. 4133ff01b23SMartin Matuska.It Sy userobjused Ns @ Ns Ar user 4143ff01b23SMartin MatuskaThe 4153ff01b23SMartin Matuska.Sy userobjused 4163ff01b23SMartin Matuskaproperty is similar to 4173ff01b23SMartin Matuska.Sy userused 4183ff01b23SMartin Matuskabut instead it counts the number of objects consumed by a user. 4193ff01b23SMartin MatuskaThis property counts all objects allocated on behalf of the user, 4203ff01b23SMartin Matuskait may differ from the results of system tools such as 4213ff01b23SMartin Matuska.Nm df Fl i . 4223ff01b23SMartin Matuska.Pp 4233ff01b23SMartin MatuskaWhen the property 4243ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy on 4253ff01b23SMartin Matuskais set on a file system additional objects will be created per-file to store 4263ff01b23SMartin Matuskaextended attributes. 4273ff01b23SMartin MatuskaThese additional objects are reflected in the 4283ff01b23SMartin Matuska.Sy userobjused 4293ff01b23SMartin Matuskavalue and are counted against the user's 4303ff01b23SMartin Matuska.Sy userobjquota . 4313ff01b23SMartin MatuskaWhen a file system is configured to use 4323ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 4333ff01b23SMartin Matuskano additional internal objects are normally required. 4343ff01b23SMartin Matuska.It Sy userrefs 4353ff01b23SMartin MatuskaThis property is set to the number of user holds on this snapshot. 4363ff01b23SMartin MatuskaUser holds are set by using the 4373ff01b23SMartin Matuska.Nm zfs Cm hold 4383ff01b23SMartin Matuskacommand. 4393ff01b23SMartin Matuska.It Sy groupused Ns @ Ns Ar group 4403ff01b23SMartin MatuskaThe amount of space consumed by the specified group in this dataset. 4413ff01b23SMartin MatuskaSpace is charged to the group of each file, as displayed by 4423ff01b23SMartin Matuska.Nm ls Fl l . 4433ff01b23SMartin MatuskaSee the 4443ff01b23SMartin Matuska.Sy userused Ns @ Ns Ar user 4453ff01b23SMartin Matuskaproperty for more information. 4463ff01b23SMartin Matuska.Pp 4473ff01b23SMartin MatuskaUnprivileged users can only access their own groups' space usage. 4483ff01b23SMartin MatuskaThe root user, or a user who has been granted the 4493ff01b23SMartin Matuska.Sy groupused 4503ff01b23SMartin Matuskaprivilege with 4513ff01b23SMartin Matuska.Nm zfs Cm allow , 4523ff01b23SMartin Matuskacan access all groups' usage. 4533ff01b23SMartin Matuska.It Sy groupobjused Ns @ Ns Ar group 4543ff01b23SMartin MatuskaThe number of objects consumed by the specified group in this dataset. 4553ff01b23SMartin MatuskaMultiple objects may be charged to the group for each file when extended 4563ff01b23SMartin Matuskaattributes are in use. 4573ff01b23SMartin MatuskaSee the 4583ff01b23SMartin Matuska.Sy userobjused Ns @ Ns Ar user 4593ff01b23SMartin Matuskaproperty for more information. 4603ff01b23SMartin Matuska.Pp 4613ff01b23SMartin MatuskaUnprivileged users can only access their own groups' space usage. 4623ff01b23SMartin MatuskaThe root user, or a user who has been granted the 4633ff01b23SMartin Matuska.Sy groupobjused 4643ff01b23SMartin Matuskaprivilege with 4653ff01b23SMartin Matuska.Nm zfs Cm allow , 4663ff01b23SMartin Matuskacan access all groups' usage. 4673ff01b23SMartin Matuska.It Sy projectused Ns @ Ns Ar project 4683ff01b23SMartin MatuskaThe amount of space consumed by the specified project in this dataset. 4693ff01b23SMartin MatuskaProject is identified via the project identifier (ID) that is object-based 4703ff01b23SMartin Matuskanumeral attribute. 4713ff01b23SMartin MatuskaAn object can inherit the project ID from its parent object (if the 4723ff01b23SMartin Matuskaparent has the flag of inherit project ID that can be set and changed via 4733ff01b23SMartin Matuska.Nm chattr Fl /+P 4743ff01b23SMartin Matuskaor 4753ff01b23SMartin Matuska.Nm zfs project Fl s ) 4763ff01b23SMartin Matuskawhen being created. 4773ff01b23SMartin MatuskaThe privileged user can set and change object's project 4783ff01b23SMartin MatuskaID via 4793ff01b23SMartin Matuska.Nm chattr Fl p 4803ff01b23SMartin Matuskaor 4813ff01b23SMartin Matuska.Nm zfs project Fl s 4823ff01b23SMartin Matuskaanytime. 4833ff01b23SMartin MatuskaSpace is charged to the project of each file, as displayed by 4843ff01b23SMartin Matuska.Nm lsattr Fl p 4853ff01b23SMartin Matuskaor 4863ff01b23SMartin Matuska.Nm zfs project . 4873ff01b23SMartin MatuskaSee the 4883ff01b23SMartin Matuska.Sy userused Ns @ Ns Ar user 4893ff01b23SMartin Matuskaproperty for more information. 4903ff01b23SMartin Matuska.Pp 4913ff01b23SMartin MatuskaThe root user, or a user who has been granted the 4923ff01b23SMartin Matuska.Sy projectused 4933ff01b23SMartin Matuskaprivilege with 4943ff01b23SMartin Matuska.Nm zfs allow , 4953ff01b23SMartin Matuskacan access all projects' usage. 4963ff01b23SMartin Matuska.It Sy projectobjused Ns @ Ns Ar project 4973ff01b23SMartin MatuskaThe 4983ff01b23SMartin Matuska.Sy projectobjused 4993ff01b23SMartin Matuskais similar to 5003ff01b23SMartin Matuska.Sy projectused 5013ff01b23SMartin Matuskabut instead it counts the number of objects consumed by project. 5023ff01b23SMartin MatuskaWhen the property 5033ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy on 5043ff01b23SMartin Matuskais set on a fileset, ZFS will create additional objects per-file to store 5053ff01b23SMartin Matuskaextended attributes. 5063ff01b23SMartin MatuskaThese additional objects are reflected in the 5073ff01b23SMartin Matuska.Sy projectobjused 5083ff01b23SMartin Matuskavalue and are counted against the project's 5093ff01b23SMartin Matuska.Sy projectobjquota . 5103ff01b23SMartin MatuskaWhen a filesystem is configured to use 5113ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 5123ff01b23SMartin Matuskano additional internal objects are required. 5133ff01b23SMartin MatuskaSee the 5143ff01b23SMartin Matuska.Sy userobjused Ns @ Ns Ar user 5153ff01b23SMartin Matuskaproperty for more information. 5163ff01b23SMartin Matuska.Pp 5173ff01b23SMartin MatuskaThe root user, or a user who has been granted the 5183ff01b23SMartin Matuska.Sy projectobjused 5193ff01b23SMartin Matuskaprivilege with 5203ff01b23SMartin Matuska.Nm zfs allow , 5213ff01b23SMartin Matuskacan access all projects' objects usage. 5223ff01b23SMartin Matuska.It Sy volblocksize 5233ff01b23SMartin MatuskaFor volumes, specifies the block size of the volume. 5243ff01b23SMartin MatuskaThe 5253ff01b23SMartin Matuska.Sy blocksize 5263ff01b23SMartin Matuskacannot be changed once the volume has been written, so it should be set at 5273ff01b23SMartin Matuskavolume creation time. 5283ff01b23SMartin MatuskaThe default 5293ff01b23SMartin Matuska.Sy blocksize 5302faf504dSMartin Matuskafor volumes is 16 Kbytes. 5313ff01b23SMartin MatuskaAny power of 2 from 512 bytes to 128 Kbytes is valid. 5323ff01b23SMartin Matuska.Pp 5333ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 5343ff01b23SMartin Matuska.Sy volblock . 5353ff01b23SMartin Matuska.It Sy written 5363ff01b23SMartin MatuskaThe amount of space 5373ff01b23SMartin Matuska.Sy referenced 5383ff01b23SMartin Matuskaby this dataset, that was written since the previous snapshot 5393ff01b23SMartin Matuska.Pq i.e. that is not referenced by the previous snapshot . 5403ff01b23SMartin Matuska.It Sy written Ns @ Ns Ar snapshot 5413ff01b23SMartin MatuskaThe amount of 5423ff01b23SMartin Matuska.Sy referenced 5433ff01b23SMartin Matuskaspace written to this dataset since the specified snapshot. 5443ff01b23SMartin MatuskaThis is the space that is referenced by this dataset but was not referenced by 5453ff01b23SMartin Matuskathe specified snapshot. 5463ff01b23SMartin Matuska.Pp 5473ff01b23SMartin MatuskaThe 5483ff01b23SMartin Matuska.Ar snapshot 5493ff01b23SMartin Matuskamay be specified as a short snapshot name 5503ff01b23SMartin Matuska.Pq just the part after the Sy @ , 5513ff01b23SMartin Matuskain which case it will be interpreted as a snapshot in the same filesystem as 5523ff01b23SMartin Matuskathis dataset. 5533ff01b23SMartin MatuskaThe 5543ff01b23SMartin Matuska.Ar snapshot 5553ff01b23SMartin Matuskamay be a full snapshot name 5563ff01b23SMartin Matuska.Pq Ar filesystem Ns @ Ns Ar snapshot , 5573ff01b23SMartin Matuskawhich for clones may be a snapshot in the origin's filesystem 5583ff01b23SMartin Matuska.Pq or the origin of the origin's filesystem, etc. 5593ff01b23SMartin Matuska.El 5603ff01b23SMartin Matuska.Pp 5613ff01b23SMartin MatuskaThe following native properties can be used to change the behavior of a ZFS 5623ff01b23SMartin Matuskadataset. 5633ff01b23SMartin Matuska.Bl -tag -width "" 5643ff01b23SMartin Matuska.It Xo 5653ff01b23SMartin Matuska.Sy aclinherit Ns = Ns Sy discard Ns | Ns Sy noallow Ns | Ns 5663ff01b23SMartin Matuska.Sy restricted Ns | Ns Sy passthrough Ns | Ns Sy passthrough-x 5673ff01b23SMartin Matuska.Xc 5683ff01b23SMartin MatuskaControls how ACEs are inherited when files and directories are created. 5693ff01b23SMartin Matuska.Bl -tag -compact -offset 4n -width "passthrough-x" 5703ff01b23SMartin Matuska.It Sy discard 5713ff01b23SMartin Matuskadoes not inherit any ACEs. 5723ff01b23SMartin Matuska.It Sy noallow 5733ff01b23SMartin Matuskaonly inherits inheritable ACEs that specify 5743ff01b23SMartin Matuska.Qq deny 5753ff01b23SMartin Matuskapermissions. 5763ff01b23SMartin Matuska.It Sy restricted 5773ff01b23SMartin Matuskadefault, removes the 5783ff01b23SMartin Matuska.Sy write_acl 5793ff01b23SMartin Matuskaand 5803ff01b23SMartin Matuska.Sy write_owner 5813ff01b23SMartin Matuskapermissions when the ACE is inherited. 5823ff01b23SMartin Matuska.It Sy passthrough 5833ff01b23SMartin Matuskainherits all inheritable ACEs without any modifications. 5843ff01b23SMartin Matuska.It Sy passthrough-x 5853ff01b23SMartin Matuskasame meaning as 5863ff01b23SMartin Matuska.Sy passthrough , 5873ff01b23SMartin Matuskaexcept that the 5883ff01b23SMartin Matuska.Sy owner@ , group@ , No and Sy everyone@ 5893ff01b23SMartin MatuskaACEs inherit the execute permission only if the file creation mode also requests 5903ff01b23SMartin Matuskathe execute bit. 5913ff01b23SMartin Matuska.El 5923ff01b23SMartin Matuska.Pp 5933ff01b23SMartin MatuskaWhen the property value is set to 5943ff01b23SMartin Matuska.Sy passthrough , 5953ff01b23SMartin Matuskafiles are created with a mode determined by the inheritable ACEs. 5963ff01b23SMartin MatuskaIf no inheritable ACEs exist that affect the mode, then the mode is set in 5973ff01b23SMartin Matuskaaccordance to the requested mode from the application. 5983ff01b23SMartin Matuska.Pp 5993ff01b23SMartin MatuskaThe 6003ff01b23SMartin Matuska.Sy aclinherit 6013ff01b23SMartin Matuskaproperty does not apply to POSIX ACLs. 6023ff01b23SMartin Matuska.It Xo 6033ff01b23SMartin Matuska.Sy aclmode Ns = Ns Sy discard Ns | Ns Sy groupmask Ns | Ns 6043ff01b23SMartin Matuska.Sy passthrough Ns | Ns Sy restricted Ns 6053ff01b23SMartin Matuska.Xc 6063ff01b23SMartin MatuskaControls how an ACL is modified during chmod(2) and how inherited ACEs 6073ff01b23SMartin Matuskaare modified by the file creation mode: 6083ff01b23SMartin Matuska.Bl -tag -compact -offset 4n -width "passthrough" 6093ff01b23SMartin Matuska.It Sy discard 6103ff01b23SMartin Matuskadefault, deletes all 6113ff01b23SMartin Matuska.Sy ACEs 6123ff01b23SMartin Matuskaexcept for those representing 6133ff01b23SMartin Matuskathe mode of the file or directory requested by 6143ff01b23SMartin Matuska.Xr chmod 2 . 6153ff01b23SMartin Matuska.It Sy groupmask 6163ff01b23SMartin Matuskareduces permissions granted in all 6173ff01b23SMartin Matuska.Sy ALLOW 6183ff01b23SMartin Matuskaentries found in the 6193ff01b23SMartin Matuska.Sy ACL 6203ff01b23SMartin Matuskasuch that they are no greater than the group permissions specified by 6213ff01b23SMartin Matuska.Xr chmod 2 . 6223ff01b23SMartin Matuska.It Sy passthrough 6233ff01b23SMartin Matuskaindicates that no changes are made to the ACL other than creating or updating 6243ff01b23SMartin Matuskathe necessary ACL entries to represent the new mode of the file or directory. 6253ff01b23SMartin Matuska.It Sy restricted 6263ff01b23SMartin Matuskawill cause the 6273ff01b23SMartin Matuska.Xr chmod 2 6283ff01b23SMartin Matuskaoperation to return an error when used on any file or directory which has 6293ff01b23SMartin Matuskaa non-trivial ACL whose entries can not be represented by a mode. 6303ff01b23SMartin Matuska.Xr chmod 2 6313ff01b23SMartin Matuskais required to change the set user ID, set group ID, or sticky bits on a file 6323ff01b23SMartin Matuskaor directory, as they do not have equivalent ACL entries. 6333ff01b23SMartin MatuskaIn order to use 6343ff01b23SMartin Matuska.Xr chmod 2 6353ff01b23SMartin Matuskaon a file or directory with a non-trivial ACL when 6363ff01b23SMartin Matuska.Sy aclmode 6373ff01b23SMartin Matuskais set to 6383ff01b23SMartin Matuska.Sy restricted , 6393ff01b23SMartin Matuskayou must first remove all ACL entries which do not represent the current mode. 6403ff01b23SMartin Matuska.El 6413ff01b23SMartin Matuska.It Sy acltype Ns = Ns Sy off Ns | Ns Sy nfsv4 Ns | Ns Sy posix 6423ff01b23SMartin MatuskaControls whether ACLs are enabled and if so what type of ACL to use. 6433ff01b23SMartin MatuskaWhen this property is set to a type of ACL not supported by the current 6443ff01b23SMartin Matuskaplatform, the behavior is the same as if it were set to 6453ff01b23SMartin Matuska.Sy off . 6463ff01b23SMartin Matuska.Bl -tag -compact -offset 4n -width "posixacl" 6473ff01b23SMartin Matuska.It Sy off 6483ff01b23SMartin Matuskadefault on Linux, when a file system has the 6493ff01b23SMartin Matuska.Sy acltype 6503ff01b23SMartin Matuskaproperty set to off then ACLs are disabled. 6513ff01b23SMartin Matuska.It Sy noacl 6523ff01b23SMartin Matuskaan alias for 6533ff01b23SMartin Matuska.Sy off 6543ff01b23SMartin Matuska.It Sy nfsv4 6553ff01b23SMartin Matuskadefault on 6563ff01b23SMartin Matuska.Fx , 6573ff01b23SMartin Matuskaindicates that NFSv4-style ZFS ACLs should be used. 6583ff01b23SMartin MatuskaThese ACLs can be managed with the 6593ff01b23SMartin Matuska.Xr getfacl 1 6603ff01b23SMartin Matuskaand 6613ff01b23SMartin Matuska.Xr setfacl 1 . 6623ff01b23SMartin MatuskaThe 6633ff01b23SMartin Matuska.Sy nfsv4 6643ff01b23SMartin MatuskaZFS ACL type is not yet supported on Linux. 6653ff01b23SMartin Matuska.It Sy posix 6663ff01b23SMartin Matuskaindicates POSIX ACLs should be used. 6673ff01b23SMartin MatuskaPOSIX ACLs are specific to Linux and are not functional on other platforms. 6683ff01b23SMartin MatuskaPOSIX ACLs are stored as an extended 6693ff01b23SMartin Matuskaattribute and therefore will not overwrite any existing NFSv4 ACLs which 6703ff01b23SMartin Matuskamay be set. 6713ff01b23SMartin Matuska.It Sy posixacl 6723ff01b23SMartin Matuskaan alias for 6733ff01b23SMartin Matuska.Sy posix 6743ff01b23SMartin Matuska.El 6753ff01b23SMartin Matuska.Pp 6763ff01b23SMartin MatuskaTo obtain the best performance when setting 6773ff01b23SMartin Matuska.Sy posix 6783ff01b23SMartin Matuskausers are strongly encouraged to set the 6793ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 6803ff01b23SMartin Matuskaproperty. 6813ff01b23SMartin MatuskaThis will result in the POSIX ACL being stored more efficiently on disk. 6823ff01b23SMartin MatuskaBut as a consequence, all new extended attributes will only be 6833ff01b23SMartin Matuskaaccessible from OpenZFS implementations which support the 6843ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 6853ff01b23SMartin Matuskaproperty. 6863ff01b23SMartin MatuskaSee the 6873ff01b23SMartin Matuska.Sy xattr 6883ff01b23SMartin Matuskaproperty for more details. 6893ff01b23SMartin Matuska.It Sy atime Ns = Ns Sy on Ns | Ns Sy off 6903ff01b23SMartin MatuskaControls whether the access time for files is updated when they are read. 6913ff01b23SMartin MatuskaTurning this property off avoids producing write traffic when reading files and 6923ff01b23SMartin Matuskacan result in significant performance gains, though it might confuse mailers 6933ff01b23SMartin Matuskaand other similar utilities. 6943ff01b23SMartin MatuskaThe values 6953ff01b23SMartin Matuska.Sy on 6963ff01b23SMartin Matuskaand 6973ff01b23SMartin Matuska.Sy off 6983ff01b23SMartin Matuskaare equivalent to the 6993ff01b23SMartin Matuska.Sy atime 7003ff01b23SMartin Matuskaand 7013ff01b23SMartin Matuska.Sy noatime 7023ff01b23SMartin Matuskamount options. 7033ff01b23SMartin MatuskaThe default value is 7043ff01b23SMartin Matuska.Sy on . 7053ff01b23SMartin MatuskaSee also 7063ff01b23SMartin Matuska.Sy relatime 7073ff01b23SMartin Matuskabelow. 7083ff01b23SMartin Matuska.It Sy canmount Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy noauto 7093ff01b23SMartin MatuskaIf this property is set to 7103ff01b23SMartin Matuska.Sy off , 7113ff01b23SMartin Matuskathe file system cannot be mounted, and is ignored by 7123ff01b23SMartin Matuska.Nm zfs Cm mount Fl a . 7133ff01b23SMartin MatuskaSetting this property to 7143ff01b23SMartin Matuska.Sy off 7153ff01b23SMartin Matuskais similar to setting the 7163ff01b23SMartin Matuska.Sy mountpoint 7173ff01b23SMartin Matuskaproperty to 7183ff01b23SMartin Matuska.Sy none , 7193ff01b23SMartin Matuskaexcept that the dataset still has a normal 7203ff01b23SMartin Matuska.Sy mountpoint 7213ff01b23SMartin Matuskaproperty, which can be inherited. 7223ff01b23SMartin MatuskaSetting this property to 7233ff01b23SMartin Matuska.Sy off 7243ff01b23SMartin Matuskaallows datasets to be used solely as a mechanism to inherit properties. 7253ff01b23SMartin MatuskaOne example of setting 7263ff01b23SMartin Matuska.Sy canmount Ns = Ns Sy off 7273ff01b23SMartin Matuskais to have two datasets with the same 7283ff01b23SMartin Matuska.Sy mountpoint , 7293ff01b23SMartin Matuskaso that the children of both datasets appear in the same directory, but might 7303ff01b23SMartin Matuskahave different inherited characteristics. 7313ff01b23SMartin Matuska.Pp 7323ff01b23SMartin MatuskaWhen set to 7333ff01b23SMartin Matuska.Sy noauto , 7343ff01b23SMartin Matuskaa dataset can only be mounted and unmounted explicitly. 7353ff01b23SMartin MatuskaThe dataset is not mounted automatically when the dataset is created or 7363ff01b23SMartin Matuskaimported, nor is it mounted by the 7373ff01b23SMartin Matuska.Nm zfs Cm mount Fl a 7383ff01b23SMartin Matuskacommand or unmounted by the 7393ff01b23SMartin Matuska.Nm zfs Cm unmount Fl a 7403ff01b23SMartin Matuskacommand. 7413ff01b23SMartin Matuska.Pp 7423ff01b23SMartin MatuskaThis property is not inherited. 7433ff01b23SMartin Matuska.It Xo 7443ff01b23SMartin Matuska.Sy checksum Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy fletcher2 Ns | Ns 7453ff01b23SMartin Matuska.Sy fletcher4 Ns | Ns Sy sha256 Ns | Ns Sy noparity Ns | Ns 7463ff01b23SMartin Matuska.Sy sha512 Ns | Ns Sy skein Ns | Ns Sy edonr 7473ff01b23SMartin Matuska.Xc 7483ff01b23SMartin MatuskaControls the checksum used to verify data integrity. 7493ff01b23SMartin MatuskaThe default value is 7503ff01b23SMartin Matuska.Sy on , 7513ff01b23SMartin Matuskawhich automatically selects an appropriate algorithm 7523ff01b23SMartin Matuska.Po currently, 7533ff01b23SMartin Matuska.Sy fletcher4 , 7543ff01b23SMartin Matuskabut this may change in future releases 7553ff01b23SMartin Matuska.Pc . 7563ff01b23SMartin MatuskaThe value 7573ff01b23SMartin Matuska.Sy off 7583ff01b23SMartin Matuskadisables integrity checking on user data. 7593ff01b23SMartin MatuskaThe value 7603ff01b23SMartin Matuska.Sy noparity 7613ff01b23SMartin Matuskanot only disables integrity but also disables maintaining parity for user data. 7623ff01b23SMartin MatuskaThis setting is used internally by a dump device residing on a RAID-Z pool and 7633ff01b23SMartin Matuskashould not be used by any other dataset. 7643ff01b23SMartin MatuskaDisabling checksums is 7653ff01b23SMartin Matuska.Em NOT 7663ff01b23SMartin Matuskaa recommended practice. 7673ff01b23SMartin Matuska.Pp 7683ff01b23SMartin MatuskaThe 7693ff01b23SMartin Matuska.Sy sha512 , 7703ff01b23SMartin Matuska.Sy skein , 7713ff01b23SMartin Matuskaand 7723ff01b23SMartin Matuska.Sy edonr 7733ff01b23SMartin Matuskachecksum algorithms require enabling the appropriate features on the pool. 7743ff01b23SMartin Matuska.Fx 7753ff01b23SMartin Matuskadoes not support the 7763ff01b23SMartin Matuska.Sy edonr 7773ff01b23SMartin Matuskaalgorithm. 7783ff01b23SMartin Matuska.Pp 7793ff01b23SMartin MatuskaPlease see 7803ff01b23SMartin Matuska.Xr zpool-features 7 7813ff01b23SMartin Matuskafor more information on these algorithms. 7823ff01b23SMartin Matuska.Pp 7833ff01b23SMartin MatuskaChanging this property affects only newly-written data. 7843ff01b23SMartin Matuska.It Xo 7853ff01b23SMartin Matuska.Sy compression Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy gzip Ns | Ns 7863ff01b23SMartin Matuska.Sy gzip- Ns Ar N Ns | Ns Sy lz4 Ns | Ns Sy lzjb Ns | Ns Sy zle Ns | Ns Sy zstd Ns | Ns 7873ff01b23SMartin Matuska.Sy zstd- Ns Ar N Ns | Ns Sy zstd-fast Ns | Ns Sy zstd-fast- Ns Ar N 7883ff01b23SMartin Matuska.Xc 7893ff01b23SMartin MatuskaControls the compression algorithm used for this dataset. 7903ff01b23SMartin Matuska.Pp 7913ff01b23SMartin MatuskaSetting compression to 7923ff01b23SMartin Matuska.Sy on 7933ff01b23SMartin Matuskaindicates that the current default compression algorithm should be used. 7943ff01b23SMartin MatuskaThe default balances compression and decompression speed, with compression ratio 7953ff01b23SMartin Matuskaand is expected to work well on a wide variety of workloads. 7963ff01b23SMartin MatuskaUnlike all other settings for this property, 7973ff01b23SMartin Matuska.Sy on 7983ff01b23SMartin Matuskadoes not select a fixed compression type. 7993ff01b23SMartin MatuskaAs new compression algorithms are added to ZFS and enabled on a pool, the 8003ff01b23SMartin Matuskadefault compression algorithm may change. 8013ff01b23SMartin MatuskaThe current default compression algorithm is either 8023ff01b23SMartin Matuska.Sy lzjb 8033ff01b23SMartin Matuskaor, if the 8043ff01b23SMartin Matuska.Sy lz4_compress 8053ff01b23SMartin Matuskafeature is enabled, 8063ff01b23SMartin Matuska.Sy lz4 . 8073ff01b23SMartin Matuska.Pp 8083ff01b23SMartin MatuskaThe 8093ff01b23SMartin Matuska.Sy lz4 8103ff01b23SMartin Matuskacompression algorithm is a high-performance replacement for the 8113ff01b23SMartin Matuska.Sy lzjb 8123ff01b23SMartin Matuskaalgorithm. 8133ff01b23SMartin MatuskaIt features significantly faster compression and decompression, as well as a 8143ff01b23SMartin Matuskamoderately higher compression ratio than 8153ff01b23SMartin Matuska.Sy lzjb , 8163ff01b23SMartin Matuskabut can only be used on pools with the 8173ff01b23SMartin Matuska.Sy lz4_compress 8183ff01b23SMartin Matuskafeature set to 8193ff01b23SMartin Matuska.Sy enabled . 8203ff01b23SMartin MatuskaSee 8213ff01b23SMartin Matuska.Xr zpool-features 7 8223ff01b23SMartin Matuskafor details on ZFS feature flags and the 8233ff01b23SMartin Matuska.Sy lz4_compress 8243ff01b23SMartin Matuskafeature. 8253ff01b23SMartin Matuska.Pp 8263ff01b23SMartin MatuskaThe 8273ff01b23SMartin Matuska.Sy lzjb 8283ff01b23SMartin Matuskacompression algorithm is optimized for performance while providing decent data 8293ff01b23SMartin Matuskacompression. 8303ff01b23SMartin Matuska.Pp 8313ff01b23SMartin MatuskaThe 8323ff01b23SMartin Matuska.Sy gzip 8333ff01b23SMartin Matuskacompression algorithm uses the same compression as the 8343ff01b23SMartin Matuska.Xr gzip 1 8353ff01b23SMartin Matuskacommand. 8363ff01b23SMartin MatuskaYou can specify the 8373ff01b23SMartin Matuska.Sy gzip 8383ff01b23SMartin Matuskalevel by using the value 8393ff01b23SMartin Matuska.Sy gzip- Ns Ar N , 8403ff01b23SMartin Matuskawhere 8413ff01b23SMartin Matuska.Ar N 8423ff01b23SMartin Matuskais an integer from 1 8433ff01b23SMartin Matuska.Pq fastest 8443ff01b23SMartin Matuskato 9 8453ff01b23SMartin Matuska.Pq best compression ratio . 8463ff01b23SMartin MatuskaCurrently, 8473ff01b23SMartin Matuska.Sy gzip 8483ff01b23SMartin Matuskais equivalent to 8493ff01b23SMartin Matuska.Sy gzip-6 8503ff01b23SMartin Matuska.Po which is also the default for 8513ff01b23SMartin Matuska.Xr gzip 1 8523ff01b23SMartin Matuska.Pc . 8533ff01b23SMartin Matuska.Pp 8543ff01b23SMartin MatuskaThe 8553ff01b23SMartin Matuska.Sy zstd 8563ff01b23SMartin Matuskacompression algorithm provides both high compression ratios and good performance. 8573ff01b23SMartin MatuskaYou can specify the 8583ff01b23SMartin Matuska.Sy zstd 8593ff01b23SMartin Matuskalevel by using the value 8603ff01b23SMartin Matuska.Sy zstd- Ns Ar N , 8613ff01b23SMartin Matuskawhere 8623ff01b23SMartin Matuska.Ar N 8633ff01b23SMartin Matuskais an integer from 1 8643ff01b23SMartin Matuska.Pq fastest 8653ff01b23SMartin Matuskato 19 8663ff01b23SMartin Matuska.Pq best compression ratio . 8673ff01b23SMartin Matuska.Sy zstd 8683ff01b23SMartin Matuskais equivalent to 8693ff01b23SMartin Matuska.Sy zstd-3 . 8703ff01b23SMartin Matuska.Pp 8713ff01b23SMartin MatuskaFaster speeds at the cost of the compression ratio can be requested by 8723ff01b23SMartin Matuskasetting a negative 8733ff01b23SMartin Matuska.Sy zstd 8743ff01b23SMartin Matuskalevel. 8753ff01b23SMartin MatuskaThis is done using 8763ff01b23SMartin Matuska.Sy zstd-fast- Ns Ar N , 8773ff01b23SMartin Matuskawhere 8783ff01b23SMartin Matuska.Ar N 8793ff01b23SMartin Matuskais an integer in [1-9,10,20,30,...,100,500,1000] which maps to a negative 8803ff01b23SMartin Matuska.Sy zstd 8813ff01b23SMartin Matuskalevel. 8823ff01b23SMartin MatuskaThe lower the level the faster the compression - 8833ff01b23SMartin Matuska.Ar 1000 No provides the fastest compression and lowest compression ratio. 8843ff01b23SMartin Matuska.Sy zstd-fast 8853ff01b23SMartin Matuskais equivalent to 8863ff01b23SMartin Matuska.Sy zstd-fast-1 . 8873ff01b23SMartin Matuska.Pp 8883ff01b23SMartin MatuskaThe 8893ff01b23SMartin Matuska.Sy zle 8903ff01b23SMartin Matuskacompression algorithm compresses runs of zeros. 8913ff01b23SMartin Matuska.Pp 8923ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name 8933ff01b23SMartin Matuska.Sy compress . 8943ff01b23SMartin MatuskaChanging this property affects only newly-written data. 8953ff01b23SMartin Matuska.Pp 8963ff01b23SMartin MatuskaWhen any setting except 8973ff01b23SMartin Matuska.Sy off 8983ff01b23SMartin Matuskais selected, compression will explicitly check for blocks consisting of only 8993ff01b23SMartin Matuskazeroes (the NUL byte). 9003ff01b23SMartin MatuskaWhen a zero-filled block is detected, it is stored as 9013ff01b23SMartin Matuskaa hole and not compressed using the indicated compression algorithm. 9023ff01b23SMartin Matuska.Pp 9033ff01b23SMartin MatuskaAny block being compressed must be no larger than 7/8 of its original size 9043ff01b23SMartin Matuskaafter compression, otherwise the compression will not be considered worthwhile 9053ff01b23SMartin Matuskaand the block saved uncompressed. 9063ff01b23SMartin MatuskaNote that when the logical block is less than 9073ff01b23SMartin Matuska8 times the disk sector size this effectively reduces the necessary compression 9083ff01b23SMartin Matuskaratio; for example, 8kB blocks on disks with 4kB disk sectors must compress to 1/2 9093ff01b23SMartin Matuskaor less of their original size. 9103ff01b23SMartin Matuska.It Xo 9113ff01b23SMartin Matuska.Sy context Ns = Ns Sy none Ns | Ns 9123ff01b23SMartin Matuska.Ar SELinux-User : Ns Ar SElinux-Role : Ns Ar Selinux-Type : Ns Ar Sensitivity-Level 9133ff01b23SMartin Matuska.Xc 9143ff01b23SMartin MatuskaThis flag sets the SELinux context for all files in the file system under 9153ff01b23SMartin Matuskaa mount point for that file system. 9163ff01b23SMartin MatuskaSee 9173ff01b23SMartin Matuska.Xr selinux 8 9183ff01b23SMartin Matuskafor more information. 9193ff01b23SMartin Matuska.It Xo 9203ff01b23SMartin Matuska.Sy fscontext Ns = Ns Sy none Ns | Ns 9213ff01b23SMartin Matuska.Ar SELinux-User : Ns Ar SElinux-Role : Ns Ar Selinux-Type : Ns Ar Sensitivity-Level 9223ff01b23SMartin Matuska.Xc 9233ff01b23SMartin MatuskaThis flag sets the SELinux context for the file system file system being 9243ff01b23SMartin Matuskamounted. 9253ff01b23SMartin MatuskaSee 9263ff01b23SMartin Matuska.Xr selinux 8 9273ff01b23SMartin Matuskafor more information. 9283ff01b23SMartin Matuska.It Xo 9293ff01b23SMartin Matuska.Sy defcontext Ns = Ns Sy none Ns | Ns 9303ff01b23SMartin Matuska.Ar SELinux-User : Ns Ar SElinux-Role : Ns Ar Selinux-Type : Ns Ar Sensitivity-Level 9313ff01b23SMartin Matuska.Xc 9323ff01b23SMartin MatuskaThis flag sets the SELinux default context for unlabeled files. 9333ff01b23SMartin MatuskaSee 9343ff01b23SMartin Matuska.Xr selinux 8 9353ff01b23SMartin Matuskafor more information. 9363ff01b23SMartin Matuska.It Xo 9373ff01b23SMartin Matuska.Sy rootcontext Ns = Ns Sy none Ns | Ns 9383ff01b23SMartin Matuska.Ar SELinux-User : Ns Ar SElinux-Role : Ns Ar Selinux-Type : Ns Ar Sensitivity-Level 9393ff01b23SMartin Matuska.Xc 9403ff01b23SMartin MatuskaThis flag sets the SELinux context for the root inode of the file system. 9413ff01b23SMartin MatuskaSee 9423ff01b23SMartin Matuska.Xr selinux 8 9433ff01b23SMartin Matuskafor more information. 9443ff01b23SMartin Matuska.It Sy copies Ns = Ns Sy 1 Ns | Ns Sy 2 Ns | Ns Sy 3 9453ff01b23SMartin MatuskaControls the number of copies of data stored for this dataset. 9463ff01b23SMartin MatuskaThese copies are in addition to any redundancy provided by the pool, for 9473ff01b23SMartin Matuskaexample, mirroring or RAID-Z. 9483ff01b23SMartin MatuskaThe copies are stored on different disks, if possible. 9493ff01b23SMartin MatuskaThe space used by multiple copies is charged to the associated file and dataset, 9503ff01b23SMartin Matuskachanging the 9513ff01b23SMartin Matuska.Sy used 9523ff01b23SMartin Matuskaproperty and counting against quotas and reservations. 9533ff01b23SMartin Matuska.Pp 9543ff01b23SMartin MatuskaChanging this property only affects newly-written data. 9553ff01b23SMartin MatuskaTherefore, set this property at file system creation time by using the 9563ff01b23SMartin Matuska.Fl o Sy copies Ns = Ns Ar N 9573ff01b23SMartin Matuskaoption. 9583ff01b23SMartin Matuska.Pp 9593ff01b23SMartin MatuskaRemember that ZFS will not import a pool with a missing top-level vdev. 9603ff01b23SMartin MatuskaDo 9613ff01b23SMartin Matuska.Em NOT 9623ff01b23SMartin Matuskacreate, for example a two-disk striped pool and set 9633ff01b23SMartin Matuska.Sy copies Ns = Ns Ar 2 9643ff01b23SMartin Matuskaon some datasets thinking you have setup redundancy for them. 9653ff01b23SMartin MatuskaWhen a disk fails you will not be able to import the pool 9663ff01b23SMartin Matuskaand will have lost all of your data. 9673ff01b23SMartin Matuska.Pp 9683ff01b23SMartin MatuskaEncrypted datasets may not have 9693ff01b23SMartin Matuska.Sy copies Ns = Ns Ar 3 9703ff01b23SMartin Matuskasince the implementation stores some encryption metadata where the third copy 9713ff01b23SMartin Matuskawould normally be. 9723ff01b23SMartin Matuska.It Sy devices Ns = Ns Sy on Ns | Ns Sy off 9733ff01b23SMartin MatuskaControls whether device nodes can be opened on this file system. 9743ff01b23SMartin MatuskaThe default value is 9753ff01b23SMartin Matuska.Sy on . 9763ff01b23SMartin MatuskaThe values 9773ff01b23SMartin Matuska.Sy on 9783ff01b23SMartin Matuskaand 9793ff01b23SMartin Matuska.Sy off 9803ff01b23SMartin Matuskaare equivalent to the 9813ff01b23SMartin Matuska.Sy dev 9823ff01b23SMartin Matuskaand 9833ff01b23SMartin Matuska.Sy nodev 9843ff01b23SMartin Matuskamount options. 9853ff01b23SMartin Matuska.It Xo 9863ff01b23SMartin Matuska.Sy dedup Ns = Ns Sy off Ns | Ns Sy on Ns | Ns Sy verify Ns | Ns 9873ff01b23SMartin Matuska.Sy sha256 Ns Oo , Ns Sy verify Oc Ns | Ns Sy sha512 Ns Oo , Ns Sy verify Oc Ns | Ns Sy skein Ns Oo , Ns Sy verify Oc Ns | Ns 9883ff01b23SMartin Matuska.Sy edonr , Ns Sy verify 9893ff01b23SMartin Matuska.Xc 9903ff01b23SMartin MatuskaConfigures deduplication for a dataset. 9913ff01b23SMartin MatuskaThe default value is 9923ff01b23SMartin Matuska.Sy off . 9933ff01b23SMartin MatuskaThe default deduplication checksum is 9943ff01b23SMartin Matuska.Sy sha256 9953ff01b23SMartin Matuska(this may change in the future). 9963ff01b23SMartin MatuskaWhen 9973ff01b23SMartin Matuska.Sy dedup 9983ff01b23SMartin Matuskais enabled, the checksum defined here overrides the 9993ff01b23SMartin Matuska.Sy checksum 10003ff01b23SMartin Matuskaproperty. 10013ff01b23SMartin MatuskaSetting the value to 10023ff01b23SMartin Matuska.Sy verify 10033ff01b23SMartin Matuskahas the same effect as the setting 10043ff01b23SMartin Matuska.Sy sha256 , Ns Sy verify . 10053ff01b23SMartin Matuska.Pp 10063ff01b23SMartin MatuskaIf set to 10073ff01b23SMartin Matuska.Sy verify , 10083ff01b23SMartin MatuskaZFS will do a byte-to-byte comparison in case of two blocks having the same 10093ff01b23SMartin Matuskasignature to make sure the block contents are identical. 10103ff01b23SMartin MatuskaSpecifying 10113ff01b23SMartin Matuska.Sy verify 10123ff01b23SMartin Matuskais mandatory for the 10133ff01b23SMartin Matuska.Sy edonr 10143ff01b23SMartin Matuskaalgorithm. 10153ff01b23SMartin Matuska.Pp 10163ff01b23SMartin MatuskaUnless necessary, deduplication should 10173ff01b23SMartin Matuska.Em not 10183ff01b23SMartin Matuskabe enabled on a system. 10193ff01b23SMartin MatuskaSee the 10203ff01b23SMartin Matuska.Sx Deduplication 10213ff01b23SMartin Matuskasection of 10223ff01b23SMartin Matuska.Xr zfsconcepts 7 . 10233ff01b23SMartin Matuska.It Xo 10243ff01b23SMartin Matuska.Sy dnodesize Ns = Ns Sy legacy Ns | Ns Sy auto Ns | Ns Sy 1k Ns | Ns 10253ff01b23SMartin Matuska.Sy 2k Ns | Ns Sy 4k Ns | Ns Sy 8k Ns | Ns Sy 16k 10263ff01b23SMartin Matuska.Xc 10273ff01b23SMartin MatuskaSpecifies a compatibility mode or literal value for the size of dnodes in the 10283ff01b23SMartin Matuskafile system. 10293ff01b23SMartin MatuskaThe default value is 10303ff01b23SMartin Matuska.Sy legacy . 10313ff01b23SMartin MatuskaSetting this property to a value other than 10323ff01b23SMartin Matuska.Sy legacy No requires the Sy large_dnode No pool feature to be enabled. 10333ff01b23SMartin Matuska.Pp 10343ff01b23SMartin MatuskaConsider setting 10353ff01b23SMartin Matuska.Sy dnodesize 10363ff01b23SMartin Matuskato 10373ff01b23SMartin Matuska.Sy auto 10383ff01b23SMartin Matuskaif the dataset uses the 10393ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 10403ff01b23SMartin Matuskaproperty setting and the workload makes heavy use of extended attributes. 10413ff01b23SMartin MatuskaThis 10423ff01b23SMartin Matuskamay be applicable to SELinux-enabled systems, Lustre servers, and Samba 10433ff01b23SMartin Matuskaservers, for example. 10443ff01b23SMartin MatuskaLiteral values are supported for cases where the optimal 10453ff01b23SMartin Matuskasize is known in advance and for performance testing. 10463ff01b23SMartin Matuska.Pp 10473ff01b23SMartin MatuskaLeave 10483ff01b23SMartin Matuska.Sy dnodesize 10493ff01b23SMartin Matuskaset to 10503ff01b23SMartin Matuska.Sy legacy 10513ff01b23SMartin Matuskaif you need to receive a send stream of this dataset on a pool that doesn't 10523ff01b23SMartin Matuskaenable the 10533ff01b23SMartin Matuska.Sy large_dnode 10543ff01b23SMartin Matuskafeature, or if you need to import this pool on a system that doesn't support the 10553ff01b23SMartin Matuska.Sy large_dnode No feature. 10563ff01b23SMartin Matuska.Pp 10573ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 10583ff01b23SMartin Matuska.Sy dnsize . 10593ff01b23SMartin Matuska.It Xo 10603ff01b23SMartin Matuska.Sy encryption Ns = Ns Sy off Ns | Ns Sy on Ns | Ns Sy aes-128-ccm Ns | Ns 10613ff01b23SMartin Matuska.Sy aes-192-ccm Ns | Ns Sy aes-256-ccm Ns | Ns Sy aes-128-gcm Ns | Ns 10623ff01b23SMartin Matuska.Sy aes-192-gcm Ns | Ns Sy aes-256-gcm 10633ff01b23SMartin Matuska.Xc 10643ff01b23SMartin MatuskaControls the encryption cipher suite (block cipher, key length, and mode) used 10653ff01b23SMartin Matuskafor this dataset. 10663ff01b23SMartin MatuskaRequires the 10673ff01b23SMartin Matuska.Sy encryption 10683ff01b23SMartin Matuskafeature to be enabled on the pool. 10693ff01b23SMartin MatuskaRequires a 10703ff01b23SMartin Matuska.Sy keyformat 10713ff01b23SMartin Matuskato be set at dataset creation time. 10723ff01b23SMartin Matuska.Pp 10733ff01b23SMartin MatuskaSelecting 10743ff01b23SMartin Matuska.Sy encryption Ns = Ns Sy on 10753ff01b23SMartin Matuskawhen creating a dataset indicates that the default encryption suite will be 10763ff01b23SMartin Matuskaselected, which is currently 10773ff01b23SMartin Matuska.Sy aes-256-gcm . 10783ff01b23SMartin MatuskaIn order to provide consistent data protection, encryption must be specified at 10793ff01b23SMartin Matuskadataset creation time and it cannot be changed afterwards. 10803ff01b23SMartin Matuska.Pp 10813ff01b23SMartin MatuskaFor more details and caveats about encryption see the 10823ff01b23SMartin Matuska.Sx Encryption 10833ff01b23SMartin Matuskasection of 10843ff01b23SMartin Matuska.Xr zfs-load-key 8 . 10853ff01b23SMartin Matuska.It Sy keyformat Ns = Ns Sy raw Ns | Ns Sy hex Ns | Ns Sy passphrase 10863ff01b23SMartin MatuskaControls what format the user's encryption key will be provided as. 10873ff01b23SMartin MatuskaThis property is only set when the dataset is encrypted. 10883ff01b23SMartin Matuska.Pp 10893ff01b23SMartin MatuskaRaw keys and hex keys must be 32 bytes long (regardless of the chosen 10903ff01b23SMartin Matuskaencryption suite) and must be randomly generated. 10913ff01b23SMartin MatuskaA raw key can be generated with the following command: 10923ff01b23SMartin Matuska.Dl # Nm dd Sy if=/dev/urandom bs=32 count=1 Sy of= Ns Pa /path/to/output/key 10933ff01b23SMartin Matuska.Pp 10943ff01b23SMartin MatuskaPassphrases must be between 8 and 512 bytes long and will be processed through 10953ff01b23SMartin MatuskaPBKDF2 before being used (see the 10963ff01b23SMartin Matuska.Sy pbkdf2iters 10973ff01b23SMartin Matuskaproperty). 10983ff01b23SMartin MatuskaEven though the encryption suite cannot be changed after dataset creation, 10993ff01b23SMartin Matuskathe keyformat can be with 11003ff01b23SMartin Matuska.Nm zfs Cm change-key . 11013ff01b23SMartin Matuska.It Xo 11023ff01b23SMartin Matuska.Sy keylocation Ns = Ns Sy prompt Ns | Ns Sy file:// Ns Ar /absolute/file/path Ns | Ns Sy https:// Ns Ar address Ns | Ns Sy http:// Ns Ar address 11033ff01b23SMartin Matuska.Xc 11043ff01b23SMartin MatuskaControls where the user's encryption key will be loaded from by default for 11053ff01b23SMartin Matuskacommands such as 11063ff01b23SMartin Matuska.Nm zfs Cm load-key 11073ff01b23SMartin Matuskaand 11083ff01b23SMartin Matuska.Nm zfs Cm mount Fl l . 11093ff01b23SMartin MatuskaThis property is only set for encrypted datasets which are encryption roots. 11103ff01b23SMartin MatuskaIf unspecified, the default is 11113ff01b23SMartin Matuska.Sy prompt . 11123ff01b23SMartin Matuska.Pp 11133ff01b23SMartin MatuskaEven though the encryption suite cannot be changed after dataset creation, the 11143ff01b23SMartin Matuskakeylocation can be with either 11153ff01b23SMartin Matuska.Nm zfs Cm set 11163ff01b23SMartin Matuskaor 11173ff01b23SMartin Matuska.Nm zfs Cm change-key . 11183ff01b23SMartin MatuskaIf 11193ff01b23SMartin Matuska.Sy prompt 11203ff01b23SMartin Matuskais selected ZFS will ask for the key at the command prompt when it is required 11213ff01b23SMartin Matuskato access the encrypted data (see 11223ff01b23SMartin Matuska.Nm zfs Cm load-key 11233ff01b23SMartin Matuskafor details). 11243ff01b23SMartin MatuskaThis setting will also allow the key to be passed in via the standard input stream, 11253ff01b23SMartin Matuskabut users should be careful not to place keys which should be kept secret on 11263ff01b23SMartin Matuskathe command line. 11273ff01b23SMartin MatuskaIf a file URI is selected, the key will be loaded from the 11283ff01b23SMartin Matuskaspecified absolute file path. 11293ff01b23SMartin MatuskaIf an HTTPS or HTTP URL is selected, it will be GETted using 11303ff01b23SMartin Matuska.Xr fetch 3 , 11313ff01b23SMartin Matuskalibcurl, or nothing, depending on compile-time configuration and run-time availability. 11323ff01b23SMartin MatuskaThe 11333ff01b23SMartin Matuska.Sy SSL_CA_CERT_FILE 11343ff01b23SMartin Matuskaenvironment variable can be set to set the location 11353ff01b23SMartin Matuskaof the concatenated certificate store. 11363ff01b23SMartin MatuskaThe 11373ff01b23SMartin Matuska.Sy SSL_CA_CERT_PATH 11383ff01b23SMartin Matuskaenvironment variable can be set to override the location 11393ff01b23SMartin Matuskaof the directory containing the certificate authority bundle. 11403ff01b23SMartin MatuskaThe 11413ff01b23SMartin Matuska.Sy SSL_CLIENT_CERT_FILE 11423ff01b23SMartin Matuskaand 11433ff01b23SMartin Matuska.Sy SSL_CLIENT_KEY_FILE 11443ff01b23SMartin Matuskaenvironment variables can be set to configure the path 11453ff01b23SMartin Matuskato the client certificate and its key. 11463ff01b23SMartin Matuska.It Sy pbkdf2iters Ns = Ns Ar iterations 11473ff01b23SMartin MatuskaControls the number of PBKDF2 iterations that a 11483ff01b23SMartin Matuska.Sy passphrase 11493ff01b23SMartin Matuskaencryption key should be run through when processing it into an encryption key. 11503ff01b23SMartin MatuskaThis property is only defined when encryption is enabled and a keyformat of 11513ff01b23SMartin Matuska.Sy passphrase 11523ff01b23SMartin Matuskais selected. 11533ff01b23SMartin MatuskaThe goal of PBKDF2 is to significantly increase the 11543ff01b23SMartin Matuskacomputational difficulty needed to brute force a user's passphrase. 11553ff01b23SMartin MatuskaThis is accomplished by forcing the attacker to run each passphrase through a 11563ff01b23SMartin Matuskacomputationally expensive hashing function many times before they arrive at the 11573ff01b23SMartin Matuskaresulting key. 11583ff01b23SMartin MatuskaA user who actually knows the passphrase will only have to pay this cost once. 11593ff01b23SMartin MatuskaAs CPUs become better at processing, this number should be 11603ff01b23SMartin Matuskaraised to ensure that a brute force attack is still not possible. 11613ff01b23SMartin MatuskaThe current default is 11623ff01b23SMartin Matuska.Sy 350000 11633ff01b23SMartin Matuskaand the minimum is 11643ff01b23SMartin Matuska.Sy 100000 . 11653ff01b23SMartin MatuskaThis property may be changed with 11663ff01b23SMartin Matuska.Nm zfs Cm change-key . 11673ff01b23SMartin Matuska.It Sy exec Ns = Ns Sy on Ns | Ns Sy off 11683ff01b23SMartin MatuskaControls whether processes can be executed from within this file system. 11693ff01b23SMartin MatuskaThe default value is 11703ff01b23SMartin Matuska.Sy on . 11713ff01b23SMartin MatuskaThe values 11723ff01b23SMartin Matuska.Sy on 11733ff01b23SMartin Matuskaand 11743ff01b23SMartin Matuska.Sy off 11753ff01b23SMartin Matuskaare equivalent to the 11763ff01b23SMartin Matuska.Sy exec 11773ff01b23SMartin Matuskaand 11783ff01b23SMartin Matuska.Sy noexec 11793ff01b23SMartin Matuskamount options. 11803ff01b23SMartin Matuska.It Sy filesystem_limit Ns = Ns Ar count Ns | Ns Sy none 11813ff01b23SMartin MatuskaLimits the number of filesystems and volumes that can exist under this point in 11823ff01b23SMartin Matuskathe dataset tree. 11833ff01b23SMartin MatuskaThe limit is not enforced if the user is allowed to change the limit. 11843ff01b23SMartin MatuskaSetting a 11853ff01b23SMartin Matuska.Sy filesystem_limit 11863ff01b23SMartin Matuskato 11873ff01b23SMartin Matuska.Sy on 11883ff01b23SMartin Matuskaa descendent of a filesystem that already has a 11893ff01b23SMartin Matuska.Sy filesystem_limit 11903ff01b23SMartin Matuskadoes not override the ancestor's 11913ff01b23SMartin Matuska.Sy filesystem_limit , 11923ff01b23SMartin Matuskabut rather imposes an additional limit. 11933ff01b23SMartin MatuskaThis feature must be enabled to be used 11943ff01b23SMartin Matuska.Po see 11953ff01b23SMartin Matuska.Xr zpool-features 7 11963ff01b23SMartin Matuska.Pc . 11973ff01b23SMartin Matuska.It Sy special_small_blocks Ns = Ns Ar size 11983ff01b23SMartin MatuskaThis value represents the threshold block size for including small file 11993ff01b23SMartin Matuskablocks into the special allocation class. 12003ff01b23SMartin MatuskaBlocks smaller than or equal to this 12013ff01b23SMartin Matuskavalue will be assigned to the special allocation class while greater blocks 12023ff01b23SMartin Matuskawill be assigned to the regular class. 12033ff01b23SMartin MatuskaValid values are zero or a power of two from 512B up to 1M. 12043ff01b23SMartin MatuskaThe default size is 0 which means no small file blocks 12053ff01b23SMartin Matuskawill be allocated in the special class. 12063ff01b23SMartin Matuska.Pp 12073ff01b23SMartin MatuskaBefore setting this property, a special class vdev must be added to the 12083ff01b23SMartin Matuskapool. 12093ff01b23SMartin MatuskaSee 12103ff01b23SMartin Matuska.Xr zpoolconcepts 7 12113ff01b23SMartin Matuskafor more details on the special allocation class. 12123ff01b23SMartin Matuska.It Sy mountpoint Ns = Ns Pa path Ns | Ns Sy none Ns | Ns Sy legacy 12133ff01b23SMartin MatuskaControls the mount point used for this file system. 12143ff01b23SMartin MatuskaSee the 12153ff01b23SMartin Matuska.Sx Mount Points 12163ff01b23SMartin Matuskasection of 12173ff01b23SMartin Matuska.Xr zfsconcepts 7 12183ff01b23SMartin Matuskafor more information on how this property is used. 12193ff01b23SMartin Matuska.Pp 12203ff01b23SMartin MatuskaWhen the 12213ff01b23SMartin Matuska.Sy mountpoint 12223ff01b23SMartin Matuskaproperty is changed for a file system, the file system and any children that 12233ff01b23SMartin Matuskainherit the mount point are unmounted. 12243ff01b23SMartin MatuskaIf the new value is 12253ff01b23SMartin Matuska.Sy legacy , 12263ff01b23SMartin Matuskathen they remain unmounted. 12273ff01b23SMartin MatuskaOtherwise, they are automatically remounted in the new location if the property 12283ff01b23SMartin Matuskawas previously 12293ff01b23SMartin Matuska.Sy legacy 12303ff01b23SMartin Matuskaor 12313ff01b23SMartin Matuska.Sy none , 12323ff01b23SMartin Matuskaor if they were mounted before the property was changed. 12333ff01b23SMartin MatuskaIn addition, any shared file systems are unshared and shared in the new 12343ff01b23SMartin Matuskalocation. 12353ff01b23SMartin Matuska.It Sy nbmand Ns = Ns Sy on Ns | Ns Sy off 12363ff01b23SMartin MatuskaControls whether the file system should be mounted with 12373ff01b23SMartin Matuska.Sy nbmand 12383ff01b23SMartin Matuska.Pq Non-blocking mandatory locks . 12393ff01b23SMartin MatuskaThis is used for SMB clients. 12403ff01b23SMartin MatuskaChanges to this property only take effect when the file system is umounted and 12413ff01b23SMartin Matuskaremounted. 12423ff01b23SMartin MatuskaSupport for these locks is scarce and not described by POSIX. 12433ff01b23SMartin Matuska.It Sy overlay Ns = Ns Sy on Ns | Ns Sy off 12443ff01b23SMartin MatuskaAllow mounting on a busy directory or a directory which already contains 12453ff01b23SMartin Matuskafiles or directories. 12463ff01b23SMartin MatuskaThis is the default mount behavior for Linux and 12473ff01b23SMartin Matuska.Fx 12483ff01b23SMartin Matuskafile systems. 12493ff01b23SMartin MatuskaOn these platforms the property is 12503ff01b23SMartin Matuska.Sy on 12513ff01b23SMartin Matuskaby default. 12523ff01b23SMartin MatuskaSet to 12533ff01b23SMartin Matuska.Sy off 12543ff01b23SMartin Matuskato disable overlay mounts for consistency with OpenZFS on other platforms. 12553ff01b23SMartin Matuska.It Sy primarycache Ns = Ns Sy all Ns | Ns Sy none Ns | Ns Sy metadata 12563ff01b23SMartin MatuskaControls what is cached in the primary cache 12573ff01b23SMartin Matuska.Pq ARC . 12583ff01b23SMartin MatuskaIf this property is set to 12593ff01b23SMartin Matuska.Sy all , 12603ff01b23SMartin Matuskathen both user data and metadata is cached. 12613ff01b23SMartin MatuskaIf this property is set to 12623ff01b23SMartin Matuska.Sy none , 12633ff01b23SMartin Matuskathen neither user data nor metadata is cached. 12643ff01b23SMartin MatuskaIf this property is set to 12653ff01b23SMartin Matuska.Sy metadata , 12663ff01b23SMartin Matuskathen only metadata is cached. 12673ff01b23SMartin MatuskaThe default value is 12683ff01b23SMartin Matuska.Sy all . 12693ff01b23SMartin Matuska.It Sy quota Ns = Ns Ar size Ns | Ns Sy none 12703ff01b23SMartin MatuskaLimits the amount of space a dataset and its descendents can consume. 12713ff01b23SMartin MatuskaThis property enforces a hard limit on the amount of space used. 12723ff01b23SMartin MatuskaThis includes all space consumed by descendents, including file systems and 12733ff01b23SMartin Matuskasnapshots. 12743ff01b23SMartin MatuskaSetting a quota on a descendent of a dataset that already has a quota does not 12753ff01b23SMartin Matuskaoverride the ancestor's quota, but rather imposes an additional limit. 12763ff01b23SMartin Matuska.Pp 12773ff01b23SMartin MatuskaQuotas cannot be set on volumes, as the 12783ff01b23SMartin Matuska.Sy volsize 12793ff01b23SMartin Matuskaproperty acts as an implicit quota. 12803ff01b23SMartin Matuska.It Sy snapshot_limit Ns = Ns Ar count Ns | Ns Sy none 12813ff01b23SMartin MatuskaLimits the number of snapshots that can be created on a dataset and its 12823ff01b23SMartin Matuskadescendents. 12833ff01b23SMartin MatuskaSetting a 12843ff01b23SMartin Matuska.Sy snapshot_limit 12853ff01b23SMartin Matuskaon a descendent of a dataset that already has a 12863ff01b23SMartin Matuska.Sy snapshot_limit 12873ff01b23SMartin Matuskadoes not override the ancestor's 12883ff01b23SMartin Matuska.Sy snapshot_limit , 12893ff01b23SMartin Matuskabut rather imposes an additional limit. 12903ff01b23SMartin MatuskaThe limit is not enforced if the user is allowed to change the limit. 12913ff01b23SMartin MatuskaFor example, this means that recursive snapshots taken from the global zone are 12923ff01b23SMartin Matuskacounted against each delegated dataset within a zone. 12933ff01b23SMartin MatuskaThis feature must be enabled to be used 12943ff01b23SMartin Matuska.Po see 12953ff01b23SMartin Matuska.Xr zpool-features 7 12963ff01b23SMartin Matuska.Pc . 12973ff01b23SMartin Matuska.It Sy userquota@ Ns Ar user Ns = Ns Ar size Ns | Ns Sy none 12983ff01b23SMartin MatuskaLimits the amount of space consumed by the specified user. 12993ff01b23SMartin MatuskaUser space consumption is identified by the 13003ff01b23SMartin Matuska.Sy userspace@ Ns Ar user 13013ff01b23SMartin Matuskaproperty. 13023ff01b23SMartin Matuska.Pp 13033ff01b23SMartin MatuskaEnforcement of user quotas may be delayed by several seconds. 13043ff01b23SMartin MatuskaThis delay means that a user might exceed their quota before the system notices 13053ff01b23SMartin Matuskathat they are over quota and begins to refuse additional writes with the 13063ff01b23SMartin Matuska.Er EDQUOT 13073ff01b23SMartin Matuskaerror message. 13083ff01b23SMartin MatuskaSee the 13093ff01b23SMartin Matuska.Nm zfs Cm userspace 13103ff01b23SMartin Matuskacommand for more information. 13113ff01b23SMartin Matuska.Pp 13123ff01b23SMartin MatuskaUnprivileged users can only access their own groups' space usage. 13133ff01b23SMartin MatuskaThe root user, or a user who has been granted the 13143ff01b23SMartin Matuska.Sy userquota 13153ff01b23SMartin Matuskaprivilege with 13163ff01b23SMartin Matuska.Nm zfs Cm allow , 13173ff01b23SMartin Matuskacan get and set everyone's quota. 13183ff01b23SMartin Matuska.Pp 13193ff01b23SMartin MatuskaThis property is not available on volumes, on file systems before version 4, or 13203ff01b23SMartin Matuskaon pools before version 15. 13213ff01b23SMartin MatuskaThe 13223ff01b23SMartin Matuska.Sy userquota@ Ns Ar ... 13233ff01b23SMartin Matuskaproperties are not displayed by 13243ff01b23SMartin Matuska.Nm zfs Cm get Sy all . 13253ff01b23SMartin MatuskaThe user's name must be appended after the 13263ff01b23SMartin Matuska.Sy @ 13273ff01b23SMartin Matuskasymbol, using one of the following forms: 13283ff01b23SMartin Matuska.Bl -bullet -compact -offset 4n 13293ff01b23SMartin Matuska.It 13303ff01b23SMartin MatuskaPOSIX name 13313ff01b23SMartin Matuska.Pq Qq joe 13323ff01b23SMartin Matuska.It 13333ff01b23SMartin MatuskaPOSIX numeric ID 13343ff01b23SMartin Matuska.Pq Qq 789 13353ff01b23SMartin Matuska.It 13363ff01b23SMartin MatuskaSID name 13373ff01b23SMartin Matuska.Pq Qq joe.smith@mydomain 13383ff01b23SMartin Matuska.It 13393ff01b23SMartin MatuskaSID numeric ID 13403ff01b23SMartin Matuska.Pq Qq S-1-123-456-789 13413ff01b23SMartin Matuska.El 13423ff01b23SMartin Matuska.Pp 13433ff01b23SMartin MatuskaFiles created on Linux always have POSIX owners. 13443ff01b23SMartin Matuska.It Sy userobjquota@ Ns Ar user Ns = Ns Ar size Ns | Ns Sy none 13453ff01b23SMartin MatuskaThe 13463ff01b23SMartin Matuska.Sy userobjquota 13473ff01b23SMartin Matuskais similar to 13483ff01b23SMartin Matuska.Sy userquota 13493ff01b23SMartin Matuskabut it limits the number of objects a user can create. 13503ff01b23SMartin MatuskaPlease refer to 13513ff01b23SMartin Matuska.Sy userobjused 13523ff01b23SMartin Matuskafor more information about how objects are counted. 13533ff01b23SMartin Matuska.It Sy groupquota@ Ns Ar group Ns = Ns Ar size Ns | Ns Sy none 13543ff01b23SMartin MatuskaLimits the amount of space consumed by the specified group. 13553ff01b23SMartin MatuskaGroup space consumption is identified by the 13563ff01b23SMartin Matuska.Sy groupused@ Ns Ar group 13573ff01b23SMartin Matuskaproperty. 13583ff01b23SMartin Matuska.Pp 13593ff01b23SMartin MatuskaUnprivileged users can access only their own groups' space usage. 13603ff01b23SMartin MatuskaThe root user, or a user who has been granted the 13613ff01b23SMartin Matuska.Sy groupquota 13623ff01b23SMartin Matuskaprivilege with 13633ff01b23SMartin Matuska.Nm zfs Cm allow , 13643ff01b23SMartin Matuskacan get and set all groups' quotas. 13653ff01b23SMartin Matuska.It Sy groupobjquota@ Ns Ar group Ns = Ns Ar size Ns | Ns Sy none 13663ff01b23SMartin MatuskaThe 13673ff01b23SMartin Matuska.Sy groupobjquota 13683ff01b23SMartin Matuskais similar to 13693ff01b23SMartin Matuska.Sy groupquota 13703ff01b23SMartin Matuskabut it limits number of objects a group can consume. 13713ff01b23SMartin MatuskaPlease refer to 13723ff01b23SMartin Matuska.Sy userobjused 13733ff01b23SMartin Matuskafor more information about how objects are counted. 13743ff01b23SMartin Matuska.It Sy projectquota@ Ns Ar project Ns = Ns Ar size Ns | Ns Sy none 13753ff01b23SMartin MatuskaLimits the amount of space consumed by the specified project. 13763ff01b23SMartin MatuskaProject space consumption is identified by the 13773ff01b23SMartin Matuska.Sy projectused@ Ns Ar project 13783ff01b23SMartin Matuskaproperty. 13793ff01b23SMartin MatuskaPlease refer to 13803ff01b23SMartin Matuska.Sy projectused 13813ff01b23SMartin Matuskafor more information about how project is identified and set/changed. 13823ff01b23SMartin Matuska.Pp 13833ff01b23SMartin MatuskaThe root user, or a user who has been granted the 13843ff01b23SMartin Matuska.Sy projectquota 13853ff01b23SMartin Matuskaprivilege with 13863ff01b23SMartin Matuska.Nm zfs allow , 13873ff01b23SMartin Matuskacan access all projects' quota. 13883ff01b23SMartin Matuska.It Sy projectobjquota@ Ns Ar project Ns = Ns Ar size Ns | Ns Sy none 13893ff01b23SMartin MatuskaThe 13903ff01b23SMartin Matuska.Sy projectobjquota 13913ff01b23SMartin Matuskais similar to 13923ff01b23SMartin Matuska.Sy projectquota 13933ff01b23SMartin Matuskabut it limits number of objects a project can consume. 13943ff01b23SMartin MatuskaPlease refer to 13953ff01b23SMartin Matuska.Sy userobjused 13963ff01b23SMartin Matuskafor more information about how objects are counted. 13973ff01b23SMartin Matuska.It Sy readonly Ns = Ns Sy on Ns | Ns Sy off 13983ff01b23SMartin MatuskaControls whether this dataset can be modified. 13993ff01b23SMartin MatuskaThe default value is 14003ff01b23SMartin Matuska.Sy off . 14013ff01b23SMartin MatuskaThe values 14023ff01b23SMartin Matuska.Sy on 14033ff01b23SMartin Matuskaand 14043ff01b23SMartin Matuska.Sy off 14053ff01b23SMartin Matuskaare equivalent to the 14063ff01b23SMartin Matuska.Sy ro 14073ff01b23SMartin Matuskaand 14083ff01b23SMartin Matuska.Sy rw 14093ff01b23SMartin Matuskamount options. 14103ff01b23SMartin Matuska.Pp 14113ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 14123ff01b23SMartin Matuska.Sy rdonly . 14133ff01b23SMartin Matuska.It Sy recordsize Ns = Ns Ar size 14143ff01b23SMartin MatuskaSpecifies a suggested block size for files in the file system. 14153ff01b23SMartin MatuskaThis property is designed solely for use with database workloads that access 14163ff01b23SMartin Matuskafiles in fixed-size records. 14173ff01b23SMartin MatuskaZFS automatically tunes block sizes according to internal algorithms optimized 14183ff01b23SMartin Matuskafor typical access patterns. 14193ff01b23SMartin Matuska.Pp 14203ff01b23SMartin MatuskaFor databases that create very large files but access them in small random 14213ff01b23SMartin Matuskachunks, these algorithms may be suboptimal. 14223ff01b23SMartin MatuskaSpecifying a 14233ff01b23SMartin Matuska.Sy recordsize 14243ff01b23SMartin Matuskagreater than or equal to the record size of the database can result in 14253ff01b23SMartin Matuskasignificant performance gains. 14263ff01b23SMartin MatuskaUse of this property for general purpose file systems is strongly discouraged, 14273ff01b23SMartin Matuskaand may adversely affect performance. 14283ff01b23SMartin Matuska.Pp 14293ff01b23SMartin MatuskaThe size specified must be a power of two greater than or equal to 14303ff01b23SMartin Matuska.Ar 512B 14313ff01b23SMartin Matuskaand less than or equal to 14323ff01b23SMartin Matuska.Ar 128kB . 14333ff01b23SMartin MatuskaIf the 14343ff01b23SMartin Matuska.Sy large_blocks 14353ff01b23SMartin Matuskafeature is enabled on the pool, the size may be up to 14363ff01b23SMartin Matuska.Ar 1MB . 14373ff01b23SMartin MatuskaSee 14383ff01b23SMartin Matuska.Xr zpool-features 7 14393ff01b23SMartin Matuskafor details on ZFS feature flags. 14403ff01b23SMartin Matuska.Pp 14413ff01b23SMartin MatuskaChanging the file system's 14423ff01b23SMartin Matuska.Sy recordsize 14433ff01b23SMartin Matuskaaffects only files created afterward; existing files are unaffected. 14443ff01b23SMartin Matuska.Pp 14453ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 14463ff01b23SMartin Matuska.Sy recsize . 14473ff01b23SMartin Matuska.It Sy redundant_metadata Ns = Ns Sy all Ns | Ns Sy most 14483ff01b23SMartin MatuskaControls what types of metadata are stored redundantly. 14493ff01b23SMartin MatuskaZFS stores an extra copy of metadata, so that if a single block is corrupted, 14503ff01b23SMartin Matuskathe amount of user data lost is limited. 14513ff01b23SMartin MatuskaThis extra copy is in addition to any redundancy provided at the pool level 14523ff01b23SMartin Matuska.Pq e.g. by mirroring or RAID-Z , 14533ff01b23SMartin Matuskaand is in addition to an extra copy specified by the 14543ff01b23SMartin Matuska.Sy copies 14553ff01b23SMartin Matuskaproperty 14563ff01b23SMartin Matuska.Pq up to a total of 3 copies . 14573ff01b23SMartin MatuskaFor example if the pool is mirrored, 14583ff01b23SMartin Matuska.Sy copies Ns = Ns 2 , 14593ff01b23SMartin Matuskaand 14603ff01b23SMartin Matuska.Sy redundant_metadata Ns = Ns Sy most , 14613ff01b23SMartin Matuskathen ZFS stores 6 copies of most metadata, and 4 copies of data and some 14623ff01b23SMartin Matuskametadata. 14633ff01b23SMartin Matuska.Pp 14643ff01b23SMartin MatuskaWhen set to 14653ff01b23SMartin Matuska.Sy all , 14663ff01b23SMartin MatuskaZFS stores an extra copy of all metadata. 14673ff01b23SMartin MatuskaIf a single on-disk block is corrupt, at worst a single block of user data 14683ff01b23SMartin Matuska.Po which is 14693ff01b23SMartin Matuska.Sy recordsize 14703ff01b23SMartin Matuskabytes long 14713ff01b23SMartin Matuska.Pc 14723ff01b23SMartin Matuskacan be lost. 14733ff01b23SMartin Matuska.Pp 14743ff01b23SMartin MatuskaWhen set to 14753ff01b23SMartin Matuska.Sy most , 14763ff01b23SMartin MatuskaZFS stores an extra copy of most types of metadata. 14773ff01b23SMartin MatuskaThis can improve performance of random writes, because less metadata must be 14783ff01b23SMartin Matuskawritten. 14793ff01b23SMartin MatuskaIn practice, at worst about 100 blocks 14803ff01b23SMartin Matuska.Po of 14813ff01b23SMartin Matuska.Sy recordsize 14823ff01b23SMartin Matuskabytes each 14833ff01b23SMartin Matuska.Pc 14843ff01b23SMartin Matuskaof user data can be lost if a single on-disk block is corrupt. 14853ff01b23SMartin MatuskaThe exact behavior of which metadata blocks are stored redundantly may change in 14863ff01b23SMartin Matuskafuture releases. 14873ff01b23SMartin Matuska.Pp 14883ff01b23SMartin MatuskaThe default value is 14893ff01b23SMartin Matuska.Sy all . 14903ff01b23SMartin Matuska.It Sy refquota Ns = Ns Ar size Ns | Ns Sy none 14913ff01b23SMartin MatuskaLimits the amount of space a dataset can consume. 14923ff01b23SMartin MatuskaThis property enforces a hard limit on the amount of space used. 14933ff01b23SMartin MatuskaThis hard limit does not include space used by descendents, including file 14943ff01b23SMartin Matuskasystems and snapshots. 14953ff01b23SMartin Matuska.It Sy refreservation Ns = Ns Ar size Ns | Ns Sy none Ns | Ns Sy auto 14963ff01b23SMartin MatuskaThe minimum amount of space guaranteed to a dataset, not including its 14973ff01b23SMartin Matuskadescendents. 14983ff01b23SMartin MatuskaWhen the amount of space used is below this value, the dataset is treated as if 14993ff01b23SMartin Matuskait were taking up the amount of space specified by 15003ff01b23SMartin Matuska.Sy refreservation . 15013ff01b23SMartin MatuskaThe 15023ff01b23SMartin Matuska.Sy refreservation 15033ff01b23SMartin Matuskareservation is accounted for in the parent datasets' space used, and counts 15043ff01b23SMartin Matuskaagainst the parent datasets' quotas and reservations. 15053ff01b23SMartin Matuska.Pp 15063ff01b23SMartin MatuskaIf 15073ff01b23SMartin Matuska.Sy refreservation 15083ff01b23SMartin Matuskais set, a snapshot is only allowed if there is enough free pool space outside of 15093ff01b23SMartin Matuskathis reservation to accommodate the current number of 15103ff01b23SMartin Matuska.Qq referenced 15113ff01b23SMartin Matuskabytes in the dataset. 15123ff01b23SMartin Matuska.Pp 15133ff01b23SMartin MatuskaIf 15143ff01b23SMartin Matuska.Sy refreservation 15153ff01b23SMartin Matuskais set to 15163ff01b23SMartin Matuska.Sy auto , 15173ff01b23SMartin Matuskaa volume is thick provisioned 15183ff01b23SMartin Matuska.Po or 15193ff01b23SMartin Matuska.Qq not sparse 15203ff01b23SMartin Matuska.Pc . 15213ff01b23SMartin Matuska.Sy refreservation Ns = Ns Sy auto 15223ff01b23SMartin Matuskais only supported on volumes. 15233ff01b23SMartin MatuskaSee 15243ff01b23SMartin Matuska.Sy volsize 15253ff01b23SMartin Matuskain the 15263ff01b23SMartin Matuska.Sx Native Properties 15273ff01b23SMartin Matuskasection for more information about sparse volumes. 15283ff01b23SMartin Matuska.Pp 15293ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 15303ff01b23SMartin Matuska.Sy refreserv . 15313ff01b23SMartin Matuska.It Sy relatime Ns = Ns Sy on Ns | Ns Sy off 15323ff01b23SMartin MatuskaControls the manner in which the access time is updated when 15333ff01b23SMartin Matuska.Sy atime Ns = Ns Sy on 15343ff01b23SMartin Matuskais set. 15353ff01b23SMartin MatuskaTurning this property on causes the access time to be updated relative 15363ff01b23SMartin Matuskato the modify or change time. 15373ff01b23SMartin MatuskaAccess time is only updated if the previous 15383ff01b23SMartin Matuskaaccess time was earlier than the current modify or change time or if the 15393ff01b23SMartin Matuskaexisting access time hasn't been updated within the past 24 hours. 15403ff01b23SMartin MatuskaThe default value is 15413ff01b23SMartin Matuska.Sy off . 15423ff01b23SMartin MatuskaThe values 15433ff01b23SMartin Matuska.Sy on 15443ff01b23SMartin Matuskaand 15453ff01b23SMartin Matuska.Sy off 15463ff01b23SMartin Matuskaare equivalent to the 15473ff01b23SMartin Matuska.Sy relatime 15483ff01b23SMartin Matuskaand 15493ff01b23SMartin Matuska.Sy norelatime 15503ff01b23SMartin Matuskamount options. 15513ff01b23SMartin Matuska.It Sy reservation Ns = Ns Ar size Ns | Ns Sy none 15523ff01b23SMartin MatuskaThe minimum amount of space guaranteed to a dataset and its descendants. 15533ff01b23SMartin MatuskaWhen the amount of space used is below this value, the dataset is treated as if 15543ff01b23SMartin Matuskait were taking up the amount of space specified by its reservation. 15553ff01b23SMartin MatuskaReservations are accounted for in the parent datasets' space used, and count 15563ff01b23SMartin Matuskaagainst the parent datasets' quotas and reservations. 15573ff01b23SMartin Matuska.Pp 15583ff01b23SMartin MatuskaThis property can also be referred to by its shortened column name, 15593ff01b23SMartin Matuska.Sy reserv . 15603ff01b23SMartin Matuska.It Sy secondarycache Ns = Ns Sy all Ns | Ns Sy none Ns | Ns Sy metadata 15613ff01b23SMartin MatuskaControls what is cached in the secondary cache 15623ff01b23SMartin Matuska.Pq L2ARC . 15633ff01b23SMartin MatuskaIf this property is set to 15643ff01b23SMartin Matuska.Sy all , 15653ff01b23SMartin Matuskathen both user data and metadata is cached. 15663ff01b23SMartin MatuskaIf this property is set to 15673ff01b23SMartin Matuska.Sy none , 15683ff01b23SMartin Matuskathen neither user data nor metadata is cached. 15693ff01b23SMartin MatuskaIf this property is set to 15703ff01b23SMartin Matuska.Sy metadata , 15713ff01b23SMartin Matuskathen only metadata is cached. 15723ff01b23SMartin MatuskaThe default value is 15733ff01b23SMartin Matuska.Sy all . 15743ff01b23SMartin Matuska.It Sy setuid Ns = Ns Sy on Ns | Ns Sy off 15753ff01b23SMartin MatuskaControls whether the setuid bit is respected for the file system. 15763ff01b23SMartin MatuskaThe default value is 15773ff01b23SMartin Matuska.Sy on . 15783ff01b23SMartin MatuskaThe values 15793ff01b23SMartin Matuska.Sy on 15803ff01b23SMartin Matuskaand 15813ff01b23SMartin Matuska.Sy off 15823ff01b23SMartin Matuskaare equivalent to the 15833ff01b23SMartin Matuska.Sy suid 15843ff01b23SMartin Matuskaand 15853ff01b23SMartin Matuska.Sy nosuid 15863ff01b23SMartin Matuskamount options. 15873ff01b23SMartin Matuska.It Sy sharesmb Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Ar opts 15883ff01b23SMartin MatuskaControls whether the file system is shared by using 15893ff01b23SMartin Matuska.Sy Samba USERSHARES 15903ff01b23SMartin Matuskaand what options are to be used. 15913ff01b23SMartin MatuskaOtherwise, the file system is automatically shared and unshared with the 15923ff01b23SMartin Matuska.Nm zfs Cm share 15933ff01b23SMartin Matuskaand 15943ff01b23SMartin Matuska.Nm zfs Cm unshare 15953ff01b23SMartin Matuskacommands. 15963ff01b23SMartin MatuskaIf the property is set to on, the 15973ff01b23SMartin Matuska.Xr net 8 15983ff01b23SMartin Matuskacommand is invoked to create a 15993ff01b23SMartin Matuska.Sy USERSHARE . 16003ff01b23SMartin Matuska.Pp 16013ff01b23SMartin MatuskaBecause SMB shares requires a resource name, a unique resource name is 16023ff01b23SMartin Matuskaconstructed from the dataset name. 16033ff01b23SMartin MatuskaThe constructed name is a copy of the 16043ff01b23SMartin Matuskadataset name except that the characters in the dataset name, which would be 16053ff01b23SMartin Matuskainvalid in the resource name, are replaced with underscore (_) characters. 16063ff01b23SMartin MatuskaLinux does not currently support additional options which might be available 16073ff01b23SMartin Matuskaon Solaris. 16083ff01b23SMartin Matuska.Pp 16093ff01b23SMartin MatuskaIf the 16103ff01b23SMartin Matuska.Sy sharesmb 16113ff01b23SMartin Matuskaproperty is set to 16123ff01b23SMartin Matuska.Sy off , 16133ff01b23SMartin Matuskathe file systems are unshared. 16143ff01b23SMartin Matuska.Pp 16153ff01b23SMartin MatuskaThe share is created with the ACL (Access Control List) "Everyone:F" ("F" 16163ff01b23SMartin Matuskastands for "full permissions", i.e. read and write permissions) and no guest 16173ff01b23SMartin Matuskaaccess (which means Samba must be able to authenticate a real user, system 16183ff01b23SMartin Matuskapasswd/shadow, LDAP or smbpasswd based) by default. 16193ff01b23SMartin MatuskaThis means that any additional access control 16203ff01b23SMartin Matuska(disallow specific user specific access etc) must be done on the underlying file system. 16213ff01b23SMartin Matuska.It Sy sharenfs Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Ar opts 16223ff01b23SMartin MatuskaControls whether the file system is shared via NFS, and what options are to be 16233ff01b23SMartin Matuskaused. 16243ff01b23SMartin MatuskaA file system with a 16253ff01b23SMartin Matuska.Sy sharenfs 16263ff01b23SMartin Matuskaproperty of 16273ff01b23SMartin Matuska.Sy off 16283ff01b23SMartin Matuskais managed with the 16293ff01b23SMartin Matuska.Xr exportfs 8 16303ff01b23SMartin Matuskacommand and entries in the 16313ff01b23SMartin Matuska.Pa /etc/exports 16323ff01b23SMartin Matuskafile. 16333ff01b23SMartin MatuskaOtherwise, the file system is automatically shared and unshared with the 16343ff01b23SMartin Matuska.Nm zfs Cm share 16353ff01b23SMartin Matuskaand 16363ff01b23SMartin Matuska.Nm zfs Cm unshare 16373ff01b23SMartin Matuskacommands. 16383ff01b23SMartin MatuskaIf the property is set to 16393ff01b23SMartin Matuska.Sy on , 16403ff01b23SMartin Matuskathe dataset is shared using the default options: 16413ff01b23SMartin Matuska.Dl sec=sys,rw,crossmnt,no_subtree_check 16423ff01b23SMartin Matuska.Pp 1643*81b22a98SMartin MatuskaPlease note that the options are comma-separated, unlike those found in 1644*81b22a98SMartin Matuska.Xr exports 5 . 1645*81b22a98SMartin MatuskaThis is done to negate the need for quoting, as well as to make parsing 1646*81b22a98SMartin Matuskawith scripts easier. 1647*81b22a98SMartin Matuska.Pp 16483ff01b23SMartin MatuskaSee 16493ff01b23SMartin Matuska.Xr exports 5 16503ff01b23SMartin Matuskafor the meaning of the default options. 16513ff01b23SMartin MatuskaOtherwise, the 16523ff01b23SMartin Matuska.Xr exportfs 8 16533ff01b23SMartin Matuskacommand is invoked with options equivalent to the contents of this property. 16543ff01b23SMartin Matuska.Pp 16553ff01b23SMartin MatuskaWhen the 16563ff01b23SMartin Matuska.Sy sharenfs 16573ff01b23SMartin Matuskaproperty is changed for a dataset, the dataset and any children inheriting the 16583ff01b23SMartin Matuskaproperty are re-shared with the new options, only if the property was previously 16593ff01b23SMartin Matuska.Sy off , 16603ff01b23SMartin Matuskaor if they were shared before the property was changed. 16613ff01b23SMartin MatuskaIf the new property is 16623ff01b23SMartin Matuska.Sy off , 16633ff01b23SMartin Matuskathe file systems are unshared. 16643ff01b23SMartin Matuska.It Sy logbias Ns = Ns Sy latency Ns | Ns Sy throughput 16653ff01b23SMartin MatuskaProvide a hint to ZFS about handling of synchronous requests in this dataset. 16663ff01b23SMartin MatuskaIf 16673ff01b23SMartin Matuska.Sy logbias 16683ff01b23SMartin Matuskais set to 16693ff01b23SMartin Matuska.Sy latency 16703ff01b23SMartin Matuska.Pq the default , 16713ff01b23SMartin MatuskaZFS will use pool log devices 16723ff01b23SMartin Matuska.Pq if configured 16733ff01b23SMartin Matuskato handle the requests at low latency. 16743ff01b23SMartin MatuskaIf 16753ff01b23SMartin Matuska.Sy logbias 16763ff01b23SMartin Matuskais set to 16773ff01b23SMartin Matuska.Sy throughput , 16783ff01b23SMartin MatuskaZFS will not use configured pool log devices. 16793ff01b23SMartin MatuskaZFS will instead optimize synchronous operations for global pool throughput and 16803ff01b23SMartin Matuskaefficient use of resources. 16813ff01b23SMartin Matuska.It Sy snapdev Ns = Ns Sy hidden Ns | Ns Sy visible 16823ff01b23SMartin MatuskaControls whether the volume snapshot devices under 16833ff01b23SMartin Matuska.Pa /dev/zvol/ Ns Aq Ar pool 16843ff01b23SMartin Matuskaare hidden or visible. 16853ff01b23SMartin MatuskaThe default value is 16863ff01b23SMartin Matuska.Sy hidden . 16873ff01b23SMartin Matuska.It Sy snapdir Ns = Ns Sy hidden Ns | Ns Sy visible 16883ff01b23SMartin MatuskaControls whether the 16893ff01b23SMartin Matuska.Pa .zfs 16903ff01b23SMartin Matuskadirectory is hidden or visible in the root of the file system as discussed in 16913ff01b23SMartin Matuskathe 16923ff01b23SMartin Matuska.Sx Snapshots 16933ff01b23SMartin Matuskasection of 16943ff01b23SMartin Matuska.Xr zfsconcepts 7 . 16953ff01b23SMartin MatuskaThe default value is 16963ff01b23SMartin Matuska.Sy hidden . 16973ff01b23SMartin Matuska.It Sy sync Ns = Ns Sy standard Ns | Ns Sy always Ns | Ns Sy disabled 16983ff01b23SMartin MatuskaControls the behavior of synchronous requests 16993ff01b23SMartin Matuska.Pq e.g. fsync, O_DSYNC . 17003ff01b23SMartin Matuska.Sy standard 17013ff01b23SMartin Matuskais the POSIX-specified behavior of ensuring all synchronous requests 17023ff01b23SMartin Matuskaare written to stable storage and all devices are flushed to ensure 17033ff01b23SMartin Matuskadata is not cached by device controllers 17043ff01b23SMartin Matuska.Pq this is the default . 17053ff01b23SMartin Matuska.Sy always 17063ff01b23SMartin Matuskacauses every file system transaction to be written and flushed before its 17073ff01b23SMartin Matuskasystem call returns. 17083ff01b23SMartin MatuskaThis has a large performance penalty. 17093ff01b23SMartin Matuska.Sy disabled 17103ff01b23SMartin Matuskadisables synchronous requests. 17113ff01b23SMartin MatuskaFile system transactions are only committed to stable storage periodically. 17123ff01b23SMartin MatuskaThis option will give the highest performance. 17133ff01b23SMartin MatuskaHowever, it is very dangerous as ZFS would be ignoring the synchronous 17143ff01b23SMartin Matuskatransaction demands of applications such as databases or NFS. 17153ff01b23SMartin MatuskaAdministrators should only use this option when the risks are understood. 17163ff01b23SMartin Matuska.It Sy version Ns = Ns Ar N Ns | Ns Sy current 17173ff01b23SMartin MatuskaThe on-disk version of this file system, which is independent of the pool 17183ff01b23SMartin Matuskaversion. 17193ff01b23SMartin MatuskaThis property can only be set to later supported versions. 17203ff01b23SMartin MatuskaSee the 17213ff01b23SMartin Matuska.Nm zfs Cm upgrade 17223ff01b23SMartin Matuskacommand. 17233ff01b23SMartin Matuska.It Sy volsize Ns = Ns Ar size 17243ff01b23SMartin MatuskaFor volumes, specifies the logical size of the volume. 17253ff01b23SMartin MatuskaBy default, creating a volume establishes a reservation of equal size. 17263ff01b23SMartin MatuskaFor storage pools with a version number of 9 or higher, a 17273ff01b23SMartin Matuska.Sy refreservation 17283ff01b23SMartin Matuskais set instead. 17293ff01b23SMartin MatuskaAny changes to 17303ff01b23SMartin Matuska.Sy volsize 17313ff01b23SMartin Matuskaare reflected in an equivalent change to the reservation 17323ff01b23SMartin Matuska.Pq or Sy refreservation . 17333ff01b23SMartin MatuskaThe 17343ff01b23SMartin Matuska.Sy volsize 17353ff01b23SMartin Matuskacan only be set to a multiple of 17363ff01b23SMartin Matuska.Sy volblocksize , 17373ff01b23SMartin Matuskaand cannot be zero. 17383ff01b23SMartin Matuska.Pp 17393ff01b23SMartin MatuskaThe reservation is kept equal to the volume's logical size to prevent unexpected 17403ff01b23SMartin Matuskabehavior for consumers. 17413ff01b23SMartin MatuskaWithout the reservation, the volume could run out of space, resulting in 17423ff01b23SMartin Matuskaundefined behavior or data corruption, depending on how the volume is used. 17433ff01b23SMartin MatuskaThese effects can also occur when the volume size is changed while it is in use 17443ff01b23SMartin Matuska.Pq particularly when shrinking the size . 17453ff01b23SMartin MatuskaExtreme care should be used when adjusting the volume size. 17463ff01b23SMartin Matuska.Pp 17473ff01b23SMartin MatuskaThough not recommended, a 17483ff01b23SMartin Matuska.Qq sparse volume 17493ff01b23SMartin Matuska.Po also known as 17503ff01b23SMartin Matuska.Qq thin provisioned 17513ff01b23SMartin Matuska.Pc 17523ff01b23SMartin Matuskacan be created by specifying the 17533ff01b23SMartin Matuska.Fl s 17543ff01b23SMartin Matuskaoption to the 17553ff01b23SMartin Matuska.Nm zfs Cm create Fl V 17563ff01b23SMartin Matuskacommand, or by changing the value of the 17573ff01b23SMartin Matuska.Sy refreservation 17583ff01b23SMartin Matuskaproperty 17593ff01b23SMartin Matuska.Po or 17603ff01b23SMartin Matuska.Sy reservation 17613ff01b23SMartin Matuskaproperty on pool version 8 or earlier 17623ff01b23SMartin Matuska.Pc 17633ff01b23SMartin Matuskaafter the volume has been created. 17643ff01b23SMartin MatuskaA 17653ff01b23SMartin Matuska.Qq sparse volume 17663ff01b23SMartin Matuskais a volume where the value of 17673ff01b23SMartin Matuska.Sy refreservation 17683ff01b23SMartin Matuskais less than the size of the volume plus the space required to store its 17693ff01b23SMartin Matuskametadata. 17703ff01b23SMartin MatuskaConsequently, writes to a sparse volume can fail with 17713ff01b23SMartin Matuska.Er ENOSPC 17723ff01b23SMartin Matuskawhen the pool is low on space. 17733ff01b23SMartin MatuskaFor a sparse volume, changes to 17743ff01b23SMartin Matuska.Sy volsize 17753ff01b23SMartin Matuskaare not reflected in the 17763ff01b23SMartin Matuska.Sy refreservation . 17773ff01b23SMartin MatuskaA volume that is not sparse is said to be 17783ff01b23SMartin Matuska.Qq thick provisioned . 17793ff01b23SMartin MatuskaA sparse volume can become thick provisioned by setting 17803ff01b23SMartin Matuska.Sy refreservation 17813ff01b23SMartin Matuskato 17823ff01b23SMartin Matuska.Sy auto . 17833ff01b23SMartin Matuska.It Sy volmode Ns = Ns Sy default Ns | Ns Sy full Ns | Ns Sy geom Ns | Ns Sy dev Ns | Ns Sy none 17843ff01b23SMartin MatuskaThis property specifies how volumes should be exposed to the OS. 17853ff01b23SMartin MatuskaSetting it to 17863ff01b23SMartin Matuska.Sy full 17873ff01b23SMartin Matuskaexposes volumes as fully fledged block devices, providing maximal 17883ff01b23SMartin Matuskafunctionality. 17893ff01b23SMartin MatuskaThe value 17903ff01b23SMartin Matuska.Sy geom 17913ff01b23SMartin Matuskais just an alias for 17923ff01b23SMartin Matuska.Sy full 17933ff01b23SMartin Matuskaand is kept for compatibility. 17943ff01b23SMartin MatuskaSetting it to 17953ff01b23SMartin Matuska.Sy dev 17963ff01b23SMartin Matuskahides its partitions. 17973ff01b23SMartin MatuskaVolumes with property set to 17983ff01b23SMartin Matuska.Sy none 17993ff01b23SMartin Matuskaare not exposed outside ZFS, but can be snapshotted, cloned, replicated, etc, 18003ff01b23SMartin Matuskathat can be suitable for backup purposes. 18013ff01b23SMartin MatuskaValue 18023ff01b23SMartin Matuska.Sy default 18033ff01b23SMartin Matuskameans that volumes exposition is controlled by system-wide tunable 18043ff01b23SMartin Matuska.Sy zvol_volmode , 18053ff01b23SMartin Matuskawhere 18063ff01b23SMartin Matuska.Sy full , 18073ff01b23SMartin Matuska.Sy dev 18083ff01b23SMartin Matuskaand 18093ff01b23SMartin Matuska.Sy none 18103ff01b23SMartin Matuskaare encoded as 1, 2 and 3 respectively. 18113ff01b23SMartin MatuskaThe default value is 18123ff01b23SMartin Matuska.Sy full . 18133ff01b23SMartin Matuska.It Sy vscan Ns = Ns Sy on Ns | Ns Sy off 18143ff01b23SMartin MatuskaControls whether regular files should be scanned for viruses when a file is 18153ff01b23SMartin Matuskaopened and closed. 18163ff01b23SMartin MatuskaIn addition to enabling this property, the virus scan service must also be 18173ff01b23SMartin Matuskaenabled for virus scanning to occur. 18183ff01b23SMartin MatuskaThe default value is 18193ff01b23SMartin Matuska.Sy off . 18203ff01b23SMartin MatuskaThis property is not used by OpenZFS. 18213ff01b23SMartin Matuska.It Sy xattr Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy sa 18223ff01b23SMartin MatuskaControls whether extended attributes are enabled for this file system. 18233ff01b23SMartin MatuskaTwo styles of extended attributes are supported: either directory based 18243ff01b23SMartin Matuskaor system attribute based. 18253ff01b23SMartin Matuska.Pp 18263ff01b23SMartin MatuskaThe default value of 18273ff01b23SMartin Matuska.Sy on 18283ff01b23SMartin Matuskaenables directory based extended attributes. 18293ff01b23SMartin MatuskaThis style of extended attribute imposes no practical limit 18303ff01b23SMartin Matuskaon either the size or number of attributes which can be set on a file. 18313ff01b23SMartin MatuskaAlthough under Linux the 18323ff01b23SMartin Matuska.Xr getxattr 2 18333ff01b23SMartin Matuskaand 18343ff01b23SMartin Matuska.Xr setxattr 2 18353ff01b23SMartin Matuskasystem calls limit the maximum size to 64K. 18363ff01b23SMartin MatuskaThis is the most compatible 18373ff01b23SMartin Matuskastyle of extended attribute and is supported by all ZFS implementations. 18383ff01b23SMartin Matuska.Pp 18393ff01b23SMartin MatuskaSystem attribute based xattrs can be enabled by setting the value to 18403ff01b23SMartin Matuska.Sy sa . 18413ff01b23SMartin MatuskaThe key advantage of this type of xattr is improved performance. 18423ff01b23SMartin MatuskaStoring extended attributes as system attributes 18433ff01b23SMartin Matuskasignificantly decreases the amount of disk IO required. 18443ff01b23SMartin MatuskaUp to 64K of data may be stored per-file in the space reserved for system attributes. 18453ff01b23SMartin MatuskaIf there is not enough space available for an extended attribute 18463ff01b23SMartin Matuskathen it will be automatically written as a directory based xattr. 18473ff01b23SMartin MatuskaSystem attribute based extended attributes are not accessible 18483ff01b23SMartin Matuskaon platforms which do not support the 18493ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 18503ff01b23SMartin Matuskafeature. 18513ff01b23SMartin MatuskaOpenZFS supports 18523ff01b23SMartin Matuska.Sy xattr Ns = Ns Sy sa 18533ff01b23SMartin Matuskaon both 18543ff01b23SMartin Matuska.Fx 18553ff01b23SMartin Matuskaand Linux. 18563ff01b23SMartin Matuska.Pp 18573ff01b23SMartin MatuskaThe use of system attribute based xattrs is strongly encouraged for users of 18583ff01b23SMartin MatuskaSELinux or POSIX ACLs. 18593ff01b23SMartin MatuskaBoth of these features heavily rely on extended 18603ff01b23SMartin Matuskaattributes and benefit significantly from the reduced access time. 18613ff01b23SMartin Matuska.Pp 18623ff01b23SMartin MatuskaThe values 18633ff01b23SMartin Matuska.Sy on 18643ff01b23SMartin Matuskaand 18653ff01b23SMartin Matuska.Sy off 18663ff01b23SMartin Matuskaare equivalent to the 18673ff01b23SMartin Matuska.Sy xattr 18683ff01b23SMartin Matuskaand 18693ff01b23SMartin Matuska.Sy noxattr 18703ff01b23SMartin Matuskamount options. 18713ff01b23SMartin Matuska.It Sy jailed Ns = Ns Sy off Ns | Ns Sy on 18723ff01b23SMartin MatuskaControls whether the dataset is managed from a jail. 18733ff01b23SMartin MatuskaSee 18743ff01b23SMartin Matuska.Xr zfs-jail 8 18753ff01b23SMartin Matuskafor more information. 18763ff01b23SMartin MatuskaJails are a 18773ff01b23SMartin Matuska.Fx 18783ff01b23SMartin Matuskafeature and are not relevant on other platforms. 18793ff01b23SMartin MatuskaThe default value is 18803ff01b23SMartin Matuska.Sy off . 18813ff01b23SMartin Matuska.It Sy zoned Ns = Ns Sy on Ns | Ns Sy off 18823ff01b23SMartin MatuskaControls whether the dataset is managed from a non-global zone. 18833ff01b23SMartin MatuskaZones are a Solaris feature and are not relevant on other platforms. 18843ff01b23SMartin MatuskaThe default value is 18853ff01b23SMartin Matuska.Sy off . 18863ff01b23SMartin Matuska.El 18873ff01b23SMartin Matuska.Pp 18883ff01b23SMartin MatuskaThe following three properties cannot be changed after the file system is 18893ff01b23SMartin Matuskacreated, and therefore, should be set when the file system is created. 18903ff01b23SMartin MatuskaIf the properties are not set with the 18913ff01b23SMartin Matuska.Nm zfs Cm create 18923ff01b23SMartin Matuskaor 18933ff01b23SMartin Matuska.Nm zpool Cm create 18943ff01b23SMartin Matuskacommands, these properties are inherited from the parent dataset. 18953ff01b23SMartin MatuskaIf the parent dataset lacks these properties due to having been created prior to 18963ff01b23SMartin Matuskathese features being supported, the new file system will have the default values 18973ff01b23SMartin Matuskafor these properties. 18983ff01b23SMartin Matuska.Bl -tag -width "" 18993ff01b23SMartin Matuska.It Xo 19003ff01b23SMartin Matuska.Sy casesensitivity Ns = Ns Sy sensitive Ns | Ns 19013ff01b23SMartin Matuska.Sy insensitive Ns | Ns Sy mixed 19023ff01b23SMartin Matuska.Xc 19033ff01b23SMartin MatuskaIndicates whether the file name matching algorithm used by the file system 19043ff01b23SMartin Matuskashould be case-sensitive, case-insensitive, or allow a combination of both 19053ff01b23SMartin Matuskastyles of matching. 19063ff01b23SMartin MatuskaThe default value for the 19073ff01b23SMartin Matuska.Sy casesensitivity 19083ff01b23SMartin Matuskaproperty is 19093ff01b23SMartin Matuska.Sy sensitive . 19103ff01b23SMartin MatuskaTraditionally, 19113ff01b23SMartin Matuska.Ux 19123ff01b23SMartin Matuskaand POSIX file systems have case-sensitive file names. 19133ff01b23SMartin Matuska.Pp 19143ff01b23SMartin MatuskaThe 19153ff01b23SMartin Matuska.Sy mixed 19163ff01b23SMartin Matuskavalue for the 19173ff01b23SMartin Matuska.Sy casesensitivity 19183ff01b23SMartin Matuskaproperty indicates that the file system can support requests for both 19193ff01b23SMartin Matuskacase-sensitive and case-insensitive matching behavior. 19203ff01b23SMartin MatuskaCurrently, case-insensitive matching behavior on a file system that supports 19213ff01b23SMartin Matuskamixed behavior is limited to the SMB server product. 19223ff01b23SMartin MatuskaFor more information about the 19233ff01b23SMartin Matuska.Sy mixed 19243ff01b23SMartin Matuskavalue behavior, see the "ZFS Administration Guide". 19253ff01b23SMartin Matuska.It Xo 19263ff01b23SMartin Matuska.Sy normalization Ns = Ns Sy none Ns | Ns Sy formC Ns | Ns 19273ff01b23SMartin Matuska.Sy formD Ns | Ns Sy formKC Ns | Ns Sy formKD 19283ff01b23SMartin Matuska.Xc 19293ff01b23SMartin MatuskaIndicates whether the file system should perform a 19303ff01b23SMartin Matuska.Sy unicode 19313ff01b23SMartin Matuskanormalization of file names whenever two file names are compared, and which 19323ff01b23SMartin Matuskanormalization algorithm should be used. 19333ff01b23SMartin MatuskaFile names are always stored unmodified, names are normalized as part of any 19343ff01b23SMartin Matuskacomparison process. 19353ff01b23SMartin MatuskaIf this property is set to a legal value other than 19363ff01b23SMartin Matuska.Sy none , 19373ff01b23SMartin Matuskaand the 19383ff01b23SMartin Matuska.Sy utf8only 19393ff01b23SMartin Matuskaproperty was left unspecified, the 19403ff01b23SMartin Matuska.Sy utf8only 19413ff01b23SMartin Matuskaproperty is automatically set to 19423ff01b23SMartin Matuska.Sy on . 19433ff01b23SMartin MatuskaThe default value of the 19443ff01b23SMartin Matuska.Sy normalization 19453ff01b23SMartin Matuskaproperty is 19463ff01b23SMartin Matuska.Sy none . 19473ff01b23SMartin MatuskaThis property cannot be changed after the file system is created. 19483ff01b23SMartin Matuska.It Sy utf8only Ns = Ns Sy on Ns | Ns Sy off 19493ff01b23SMartin MatuskaIndicates whether the file system should reject file names that include 19503ff01b23SMartin Matuskacharacters that are not present in the 19513ff01b23SMartin Matuska.Sy UTF-8 19523ff01b23SMartin Matuskacharacter code set. 19533ff01b23SMartin MatuskaIf this property is explicitly set to 19543ff01b23SMartin Matuska.Sy off , 19553ff01b23SMartin Matuskathe normalization property must either not be explicitly set or be set to 19563ff01b23SMartin Matuska.Sy none . 19573ff01b23SMartin MatuskaThe default value for the 19583ff01b23SMartin Matuska.Sy utf8only 19593ff01b23SMartin Matuskaproperty is 19603ff01b23SMartin Matuska.Sy off . 19613ff01b23SMartin MatuskaThis property cannot be changed after the file system is created. 19623ff01b23SMartin Matuska.El 19633ff01b23SMartin Matuska.Pp 19643ff01b23SMartin MatuskaThe 19653ff01b23SMartin Matuska.Sy casesensitivity , 19663ff01b23SMartin Matuska.Sy normalization , 19673ff01b23SMartin Matuskaand 19683ff01b23SMartin Matuska.Sy utf8only 19693ff01b23SMartin Matuskaproperties are also new permissions that can be assigned to non-privileged users 19703ff01b23SMartin Matuskaby using the ZFS delegated administration feature. 19713ff01b23SMartin Matuska. 19723ff01b23SMartin Matuska.Ss Temporary Mount Point Properties 19733ff01b23SMartin MatuskaWhen a file system is mounted, either through 19743ff01b23SMartin Matuska.Xr mount 8 19753ff01b23SMartin Matuskafor legacy mounts or the 19763ff01b23SMartin Matuska.Nm zfs Cm mount 19773ff01b23SMartin Matuskacommand for normal file systems, its mount options are set according to its 19783ff01b23SMartin Matuskaproperties. 19793ff01b23SMartin MatuskaThe correlation between properties and mount options is as follows: 19803ff01b23SMartin Matuska.Bl -tag -compact -offset Ds -width "rootcontext=" 19813ff01b23SMartin Matuska.It Sy atime 19823ff01b23SMartin Matuskaatime/noatime 19833ff01b23SMartin Matuska.It Sy canmount 19843ff01b23SMartin Matuskaauto/noauto 19853ff01b23SMartin Matuska.It Sy devices 19863ff01b23SMartin Matuskadev/nodev 19873ff01b23SMartin Matuska.It Sy exec 19883ff01b23SMartin Matuskaexec/noexec 19893ff01b23SMartin Matuska.It Sy readonly 19903ff01b23SMartin Matuskaro/rw 19913ff01b23SMartin Matuska.It Sy relatime 19923ff01b23SMartin Matuskarelatime/norelatime 19933ff01b23SMartin Matuska.It Sy setuid 19943ff01b23SMartin Matuskasuid/nosuid 19953ff01b23SMartin Matuska.It Sy xattr 19963ff01b23SMartin Matuskaxattr/noxattr 19973ff01b23SMartin Matuska.It Sy nbmand 19983ff01b23SMartin Matuskamand/nomand 19993ff01b23SMartin Matuska.It Sy context Ns = 20003ff01b23SMartin Matuskacontext= 20013ff01b23SMartin Matuska.It Sy fscontext Ns = 20023ff01b23SMartin Matuskafscontext= 20033ff01b23SMartin Matuska.It Sy defcontext Ns = 20043ff01b23SMartin Matuskadefcontext= 20053ff01b23SMartin Matuska.It Sy rootcontext Ns = 20063ff01b23SMartin Matuskarootcontext= 20073ff01b23SMartin Matuska.El 20083ff01b23SMartin Matuska.Pp 20093ff01b23SMartin MatuskaIn addition, these options can be set on a per-mount basis using the 20103ff01b23SMartin Matuska.Fl o 20113ff01b23SMartin Matuskaoption, without affecting the property that is stored on disk. 20123ff01b23SMartin MatuskaThe values specified on the command line override the values stored in the 20133ff01b23SMartin Matuskadataset. 20143ff01b23SMartin MatuskaThe 20153ff01b23SMartin Matuska.Sy nosuid 20163ff01b23SMartin Matuskaoption is an alias for 20173ff01b23SMartin Matuska.Sy nodevices , Ns Sy nosetuid . 20183ff01b23SMartin MatuskaThese properties are reported as 20193ff01b23SMartin Matuska.Qq temporary 20203ff01b23SMartin Matuskaby the 20213ff01b23SMartin Matuska.Nm zfs Cm get 20223ff01b23SMartin Matuskacommand. 20233ff01b23SMartin MatuskaIf the properties are changed while the dataset is mounted, the new setting 20243ff01b23SMartin Matuskaoverrides any temporary settings. 20253ff01b23SMartin Matuska. 20263ff01b23SMartin Matuska.Ss User Properties 20273ff01b23SMartin MatuskaIn addition to the standard native properties, ZFS supports arbitrary user 20283ff01b23SMartin Matuskaproperties. 20293ff01b23SMartin MatuskaUser properties have no effect on ZFS behavior, but applications or 20303ff01b23SMartin Matuskaadministrators can use them to annotate datasets 20313ff01b23SMartin Matuska.Pq file systems, volumes, and snapshots . 20323ff01b23SMartin Matuska.Pp 20333ff01b23SMartin MatuskaUser property names must contain a colon 20343ff01b23SMartin Matuska.Pq Qq Sy \&: 20353ff01b23SMartin Matuskacharacter to distinguish them from native properties. 20363ff01b23SMartin MatuskaThey may contain lowercase letters, numbers, and the following punctuation 20373ff01b23SMartin Matuskacharacters: colon 20383ff01b23SMartin Matuska.Pq Qq Sy \&: , 20393ff01b23SMartin Matuskadash 20403ff01b23SMartin Matuska.Pq Qq Sy - , 20413ff01b23SMartin Matuskaperiod 20423ff01b23SMartin Matuska.Pq Qq Sy \&. , 20433ff01b23SMartin Matuskaand underscore 20443ff01b23SMartin Matuska.Pq Qq Sy _ . 20453ff01b23SMartin MatuskaThe expected convention is that the property name is divided into two portions 20463ff01b23SMartin Matuskasuch as 20473ff01b23SMartin Matuska.Ar module : Ns Ar property , 20483ff01b23SMartin Matuskabut this namespace is not enforced by ZFS. 20493ff01b23SMartin MatuskaUser property names can be at most 256 characters, and cannot begin with a dash 20503ff01b23SMartin Matuska.Pq Qq Sy - . 20513ff01b23SMartin Matuska.Pp 20523ff01b23SMartin MatuskaWhen making programmatic use of user properties, it is strongly suggested to use 20533ff01b23SMartin Matuskaa reversed DNS domain name for the 20543ff01b23SMartin Matuska.Ar module 20553ff01b23SMartin Matuskacomponent of property names to reduce the chance that two 20563ff01b23SMartin Matuskaindependently-developed packages use the same property name for different 20573ff01b23SMartin Matuskapurposes. 20583ff01b23SMartin Matuska.Pp 20593ff01b23SMartin MatuskaThe values of user properties are arbitrary strings, are always inherited, and 20603ff01b23SMartin Matuskaare never validated. 20613ff01b23SMartin MatuskaAll of the commands that operate on properties 20623ff01b23SMartin Matuska.Po Nm zfs Cm list , 20633ff01b23SMartin Matuska.Nm zfs Cm get , 20643ff01b23SMartin Matuska.Nm zfs Cm set , 20653ff01b23SMartin Matuskaand so forth 20663ff01b23SMartin Matuska.Pc 20673ff01b23SMartin Matuskacan be used to manipulate both native properties and user properties. 20683ff01b23SMartin MatuskaUse the 20693ff01b23SMartin Matuska.Nm zfs Cm inherit 20703ff01b23SMartin Matuskacommand to clear a user property. 20713ff01b23SMartin MatuskaIf the property is not defined in any parent dataset, it is removed entirely. 20723ff01b23SMartin MatuskaProperty values are limited to 8192 bytes. 2073