]> git.proxmox.com Git - mirror_zfs.git/blob - man/man8/zfsprops.8
ICP: Improve AES-GCM performance
[mirror_zfs.git] / man / man8 / zfsprops.8
1 .\"
2 .\" CDDL HEADER START
3 .\"
4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
7 .\"
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
12 .\"
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
18 .\"
19 .\" CDDL HEADER END
20 .\"
21 .\"
22 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
23 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
24 .\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
25 .\" Copyright (c) 2011, Pawel Jakub Dawidek <pjd@FreeBSD.org>
26 .\" Copyright (c) 2012, Glen Barber <gjb@FreeBSD.org>
27 .\" Copyright (c) 2012, Bryan Drewery <bdrewery@FreeBSD.org>
28 .\" Copyright (c) 2013, Steven Hartland <smh@FreeBSD.org>
29 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
30 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
31 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
32 .\" Copyright (c) 2014 Integros [integros.com]
33 .\" Copyright (c) 2016 Nexenta Systems, Inc. All Rights Reserved.
34 .\" Copyright (c) 2014, Xin LI <delphij@FreeBSD.org>
35 .\" Copyright (c) 2014-2015, The FreeBSD Foundation, All Rights Reserved.
36 .\" Copyright 2019 Richard Laager. All rights reserved.
37 .\" Copyright 2018 Nexenta Systems, Inc.
38 .\" Copyright 2019 Joyent, Inc.
39 .\"
40 .Dd January 30, 2020
41 .Dt ZFSPROPS 8
42 .Os Linux
43 .Sh NAME
44 .Nm zfsprops
45 .Nd Native properties and user-defined of ZFS datasets.
46 .Sh DESCRIPTION
47 Properties are divided into two types, native properties and user-defined
48 .Po or
49 .Qq user
50 .Pc
51 properties.
52 Native properties either export internal statistics or control ZFS behavior.
53 In addition, native properties are either editable or read-only.
54 User properties have no effect on ZFS behavior, but you can use them to annotate
55 datasets in a way that is meaningful in your environment.
56 For more information about user properties, see the
57 .Sx User Properties
58 section, below.
59 .Ss Native Properties
60 Every dataset has a set of properties that export statistics about the dataset
61 as well as control various behaviors.
62 Properties are inherited from the parent unless overridden by the child.
63 Some properties apply only to certain types of datasets
64 .Pq file systems, volumes, or snapshots .
65 .Pp
66 The values of numeric properties can be specified using human-readable suffixes
67 .Po for example,
68 .Sy k ,
69 .Sy KB ,
70 .Sy M ,
71 .Sy Gb ,
72 and so forth, up to
73 .Sy Z
74 for zettabyte
75 .Pc .
76 The following are all valid
77 .Pq and equal
78 specifications:
79 .Li 1536M, 1.5g, 1.50GB .
80 .Pp
81 The values of non-numeric properties are case sensitive and must be lowercase,
82 except for
83 .Sy mountpoint ,
84 .Sy sharenfs ,
85 and
86 .Sy sharesmb .
87 .Pp
88 The following native properties consist of read-only statistics about the
89 dataset.
90 These properties can be neither set, nor inherited.
91 Native properties apply to all dataset types unless otherwise noted.
92 .Bl -tag -width "usedbyrefreservation"
93 .It Sy available
94 The amount of space available to the dataset and all its children, assuming that
95 there is no other activity in the pool.
96 Because space is shared within a pool, availability can be limited by any number
97 of factors, including physical pool size, quotas, reservations, or other
98 datasets within the pool.
99 .Pp
100 This property can also be referred to by its shortened column name,
101 .Sy avail .
102 .It Sy compressratio
103 For non-snapshots, the compression ratio achieved for the
104 .Sy used
105 space of this dataset, expressed as a multiplier.
106 The
107 .Sy used
108 property includes descendant datasets, and, for clones, does not include the
109 space shared with the origin snapshot.
110 For snapshots, the
111 .Sy compressratio
112 is the same as the
113 .Sy refcompressratio
114 property.
115 Compression can be turned on by running:
116 .Nm zfs Cm set Sy compression Ns = Ns Sy on Ar dataset .
117 The default value is
118 .Sy off .
119 .It Sy createtxg
120 The transaction group (txg) in which the dataset was created. Bookmarks have
121 the same
122 .Sy createtxg
123 as the snapshot they are initially tied to. This property is suitable for
124 ordering a list of snapshots, e.g. for incremental send and receive.
125 .It Sy creation
126 The time this dataset was created.
127 .It Sy clones
128 For snapshots, this property is a comma-separated list of filesystems or volumes
129 which are clones of this snapshot.
130 The clones'
131 .Sy origin
132 property is this snapshot.
133 If the
134 .Sy clones
135 property is not empty, then this snapshot can not be destroyed
136 .Po even with the
137 .Fl r
138 or
139 .Fl f
140 options
141 .Pc .
142 The roles of origin and clone can be swapped by promoting the clone with the
143 .Nm zfs Cm promote
144 command.
145 .It Sy defer_destroy
146 This property is
147 .Sy on
148 if the snapshot has been marked for deferred destroy by using the
149 .Nm zfs Cm destroy Fl d
150 command.
151 Otherwise, the property is
152 .Sy off .
153 .It Sy encryptionroot
154 For encrypted datasets, indicates where the dataset is currently inheriting its
155 encryption key from. Loading or unloading a key for the
156 .Sy encryptionroot
157 will implicitly load / unload the key for any inheriting datasets (see
158 .Nm zfs Cm load-key
159 and
160 .Nm zfs Cm unload-key
161 for details).
162 Clones will always share an
163 encryption key with their origin. See the
164 .Em Encryption
165 section of
166 .Xr zfs-load-key 8
167 for details.
168 .It Sy filesystem_count
169 The total number of filesystems and volumes that exist under this location in
170 the dataset tree.
171 This value is only available when a
172 .Sy filesystem_limit
173 has been set somewhere in the tree under which the dataset resides.
174 .It Sy keystatus
175 Indicates if an encryption key is currently loaded into ZFS. The possible
176 values are
177 .Sy none ,
178 .Sy available ,
179 and
180 .Sy unavailable .
181 See
182 .Nm zfs Cm load-key
183 and
184 .Nm zfs Cm unload-key .
185 .It Sy guid
186 The 64 bit GUID of this dataset or bookmark which does not change over its
187 entire lifetime. When a snapshot is sent to another pool, the received
188 snapshot has the same GUID. Thus, the
189 .Sy guid
190 is suitable to identify a snapshot across pools.
191 .It Sy logicalreferenced
192 The amount of space that is
193 .Qq logically
194 accessible by this dataset.
195 See the
196 .Sy referenced
197 property.
198 The logical space ignores the effect of the
199 .Sy compression
200 and
201 .Sy copies
202 properties, giving a quantity closer to the amount of data that applications
203 see.
204 However, it does include space consumed by metadata.
205 .Pp
206 This property can also be referred to by its shortened column name,
207 .Sy lrefer .
208 .It Sy logicalused
209 The amount of space that is
210 .Qq logically
211 consumed by this dataset and all its descendents.
212 See the
213 .Sy used
214 property.
215 The logical space ignores the effect of the
216 .Sy compression
217 and
218 .Sy copies
219 properties, giving a quantity closer to the amount of data that applications
220 see.
221 However, it does include space consumed by metadata.
222 .Pp
223 This property can also be referred to by its shortened column name,
224 .Sy lused .
225 .It Sy mounted
226 For file systems, indicates whether the file system is currently mounted.
227 This property can be either
228 .Sy yes
229 or
230 .Sy no .
231 .It Sy objsetid
232 A unique identifier for this dataset within the pool. Unlike the dataset's
233 .Sy guid
234 , the
235 .Sy objsetid
236 of a dataset is not transferred to other pools when the snapshot is copied
237 with a send/receive operation.
238 The
239 .Sy objsetid
240 can be reused (for a new dataset) after the dataset is deleted.
241 .It Sy origin
242 For cloned file systems or volumes, the snapshot from which the clone was
243 created.
244 See also the
245 .Sy clones
246 property.
247 .It Sy receive_resume_token
248 For filesystems or volumes which have saved partially-completed state from
249 .Sy zfs receive -s ,
250 this opaque token can be provided to
251 .Sy zfs send -t
252 to resume and complete the
253 .Sy zfs receive .
254 .It Sy redact_snaps
255 For bookmarks, this is the list of snapshot guids the bookmark contains a redaction
256 list for.
257 For snapshots, this is the list of snapshot guids the snapshot is redacted with
258 respect to.
259 .It Sy referenced
260 The amount of data that is accessible by this dataset, which may or may not be
261 shared with other datasets in the pool.
262 When a snapshot or clone is created, it initially references the same amount of
263 space as the file system or snapshot it was created from, since its contents are
264 identical.
265 .Pp
266 This property can also be referred to by its shortened column name,
267 .Sy refer .
268 .It Sy refcompressratio
269 The compression ratio achieved for the
270 .Sy referenced
271 space of this dataset, expressed as a multiplier.
272 See also the
273 .Sy compressratio
274 property.
275 .It Sy snapshot_count
276 The total number of snapshots that exist under this location in the dataset
277 tree.
278 This value is only available when a
279 .Sy snapshot_limit
280 has been set somewhere in the tree under which the dataset resides.
281 .It Sy type
282 The type of dataset:
283 .Sy filesystem ,
284 .Sy volume ,
285 or
286 .Sy snapshot .
287 .It Sy used
288 The amount of space consumed by this dataset and all its descendents.
289 This is the value that is checked against this dataset's quota and reservation.
290 The space used does not include this dataset's reservation, but does take into
291 account the reservations of any descendent datasets.
292 The amount of space that a dataset consumes from its parent, as well as the
293 amount of space that is freed if this dataset is recursively destroyed, is the
294 greater of its space used and its reservation.
295 .Pp
296 The used space of a snapshot
297 .Po see the
298 .Em Snapshots
299 section of
300 .Xr zfsconcepts 8
301 .Pc
302 is space that is referenced exclusively by this snapshot.
303 If this snapshot is destroyed, the amount of
304 .Sy used
305 space will be freed.
306 Space that is shared by multiple snapshots isn't accounted for in this metric.
307 When a snapshot is destroyed, space that was previously shared with this
308 snapshot can become unique to snapshots adjacent to it, thus changing the used
309 space of those snapshots.
310 The used space of the latest snapshot can also be affected by changes in the
311 file system.
312 Note that the
313 .Sy used
314 space of a snapshot is a subset of the
315 .Sy written
316 space of the snapshot.
317 .Pp
318 The amount of space used, available, or referenced does not take into account
319 pending changes.
320 Pending changes are generally accounted for within a few seconds.
321 Committing a change to a disk using
322 .Xr fsync 2
323 or
324 .Dv O_SYNC
325 does not necessarily guarantee that the space usage information is updated
326 immediately.
327 .It Sy usedby*
328 The
329 .Sy usedby*
330 properties decompose the
331 .Sy used
332 properties into the various reasons that space is used.
333 Specifically,
334 .Sy used No =
335 .Sy usedbychildren No +
336 .Sy usedbydataset No +
337 .Sy usedbyrefreservation No +
338 .Sy usedbysnapshots .
339 These properties are only available for datasets created on
340 .Nm zpool
341 .Qo version 13 Qc
342 pools.
343 .It Sy usedbychildren
344 The amount of space used by children of this dataset, which would be freed if
345 all the dataset's children were destroyed.
346 .It Sy usedbydataset
347 The amount of space used by this dataset itself, which would be freed if the
348 dataset were destroyed
349 .Po after first removing any
350 .Sy refreservation
351 and destroying any necessary snapshots or descendents
352 .Pc .
353 .It Sy usedbyrefreservation
354 The amount of space used by a
355 .Sy refreservation
356 set on this dataset, which would be freed if the
357 .Sy refreservation
358 was removed.
359 .It Sy usedbysnapshots
360 The amount of space consumed by snapshots of this dataset.
361 In particular, it is the amount of space that would be freed if all of this
362 dataset's snapshots were destroyed.
363 Note that this is not simply the sum of the snapshots'
364 .Sy used
365 properties because space can be shared by multiple snapshots.
366 .It Sy userused Ns @ Ns Em user
367 The amount of space consumed by the specified user in this dataset.
368 Space is charged to the owner of each file, as displayed by
369 .Nm ls Fl l .
370 The amount of space charged is displayed by
371 .Nm du
372 and
373 .Nm ls Fl s .
374 See the
375 .Nm zfs Cm userspace
376 subcommand for more information.
377 .Pp
378 Unprivileged users can access only their own space usage.
379 The root user, or a user who has been granted the
380 .Sy userused
381 privilege with
382 .Nm zfs Cm allow ,
383 can access everyone's usage.
384 .Pp
385 The
386 .Sy userused Ns @ Ns Em ...
387 properties are not displayed by
388 .Nm zfs Cm get Sy all .
389 The user's name must be appended after the @ symbol, using one of the following
390 forms:
391 .Bl -bullet -width ""
392 .It
393 .Em POSIX name
394 .Po for example,
395 .Sy joe
396 .Pc
397 .It
398 .Em POSIX numeric ID
399 .Po for example,
400 .Sy 789
401 .Pc
402 .It
403 .Em SID name
404 .Po for example,
405 .Sy joe.smith@mydomain
406 .Pc
407 .It
408 .Em SID numeric ID
409 .Po for example,
410 .Sy S-1-123-456-789
411 .Pc
412 .El
413 .Pp
414 Files created on Linux always have POSIX owners.
415 .It Sy userobjused Ns @ Ns Em user
416 The
417 .Sy userobjused
418 property is similar to
419 .Sy userused
420 but instead it counts the number of objects consumed by a user. This property
421 counts all objects allocated on behalf of the user, it may differ from the
422 results of system tools such as
423 .Nm df Fl i .
424 .Pp
425 When the property
426 .Sy xattr=on
427 is set on a file system additional objects will be created per-file to store
428 extended attributes. These additional objects are reflected in the
429 .Sy userobjused
430 value and are counted against the user's
431 .Sy userobjquota .
432 When a file system is configured to use
433 .Sy xattr=sa
434 no additional internal objects are normally required.
435 .It Sy userrefs
436 This property is set to the number of user holds on this snapshot.
437 User holds are set by using the
438 .Nm zfs Cm hold
439 command.
440 .It Sy groupused Ns @ Ns Em group
441 The amount of space consumed by the specified group in this dataset.
442 Space is charged to the group of each file, as displayed by
443 .Nm ls Fl l .
444 See the
445 .Sy userused Ns @ Ns Em user
446 property for more information.
447 .Pp
448 Unprivileged users can only access their own groups' space usage.
449 The root user, or a user who has been granted the
450 .Sy groupused
451 privilege with
452 .Nm zfs Cm allow ,
453 can access all groups' usage.
454 .It Sy groupobjused Ns @ Ns Em group
455 The number of objects consumed by the specified group in this dataset.
456 Multiple objects may be charged to the group for each file when extended
457 attributes are in use. See the
458 .Sy userobjused Ns @ Ns Em user
459 property for more information.
460 .Pp
461 Unprivileged users can only access their own groups' space usage.
462 The root user, or a user who has been granted the
463 .Sy groupobjused
464 privilege with
465 .Nm zfs Cm allow ,
466 can access all groups' usage.
467 .It Sy projectused Ns @ Ns Em project
468 The amount of space consumed by the specified project in this dataset. Project
469 is identified via the project identifier (ID) that is object-based numeral
470 attribute. An object can inherit the project ID from its parent object (if the
471 parent has the flag of inherit project ID that can be set and changed via
472 .Nm chattr Fl /+P
473 or
474 .Nm zfs project Fl s )
475 when being created. The privileged user can set and change object's project
476 ID via
477 .Nm chattr Fl p
478 or
479 .Nm zfs project Fl s
480 anytime. Space is charged to the project of each file, as displayed by
481 .Nm lsattr Fl p
482 or
483 .Nm zfs project .
484 See the
485 .Sy userused Ns @ Ns Em user
486 property for more information.
487 .Pp
488 The root user, or a user who has been granted the
489 .Sy projectused
490 privilege with
491 .Nm zfs allow ,
492 can access all projects' usage.
493 .It Sy projectobjused Ns @ Ns Em project
494 The
495 .Sy projectobjused
496 is similar to
497 .Sy projectused
498 but instead it counts the number of objects consumed by project. When the
499 property
500 .Sy xattr=on
501 is set on a fileset, ZFS will create additional objects per-file to store
502 extended attributes. These additional objects are reflected in the
503 .Sy projectobjused
504 value and are counted against the project's
505 .Sy projectobjquota .
506 When a filesystem is configured to use
507 .Sy xattr=sa
508 no additional internal objects are required. See the
509 .Sy userobjused Ns @ Ns Em user
510 property for more information.
511 .Pp
512 The root user, or a user who has been granted the
513 .Sy projectobjused
514 privilege with
515 .Nm zfs allow ,
516 can access all projects' objects usage.
517 .It Sy volblocksize
518 For volumes, specifies the block size of the volume.
519 The
520 .Sy blocksize
521 cannot be changed once the volume has been written, so it should be set at
522 volume creation time.
523 The default
524 .Sy blocksize
525 for volumes is 8 Kbytes.
526 Any power of 2 from 512 bytes to 128 Kbytes is valid.
527 .Pp
528 This property can also be referred to by its shortened column name,
529 .Sy volblock .
530 .It Sy written
531 The amount of space
532 .Sy referenced
533 by this dataset, that was written since the previous snapshot
534 .Pq i.e. that is not referenced by the previous snapshot .
535 .It Sy written Ns @ Ns Em snapshot
536 The amount of
537 .Sy referenced
538 space written to this dataset since the specified snapshot.
539 This is the space that is referenced by this dataset but was not referenced by
540 the specified snapshot.
541 .Pp
542 The
543 .Em snapshot
544 may be specified as a short snapshot name
545 .Po just the part after the
546 .Sy @
547 .Pc ,
548 in which case it will be interpreted as a snapshot in the same filesystem as
549 this dataset.
550 The
551 .Em snapshot
552 may be a full snapshot name
553 .Po Em filesystem Ns @ Ns Em snapshot Pc ,
554 which for clones may be a snapshot in the origin's filesystem
555 .Pq or the origin of the origin's filesystem, etc.
556 .El
557 .Pp
558 The following native properties can be used to change the behavior of a ZFS
559 dataset.
560 .Bl -tag -width ""
561 .It Xo
562 .Sy aclinherit Ns = Ns Sy discard Ns | Ns Sy noallow Ns | Ns
563 .Sy restricted Ns | Ns Sy passthrough Ns | Ns Sy passthrough-x
564 .Xc
565 Controls how ACEs are inherited when files and directories are created.
566 .Bl -tag -width "passthrough-x"
567 .It Sy discard
568 does not inherit any ACEs.
569 .It Sy noallow
570 only inherits inheritable ACEs that specify
571 .Qq deny
572 permissions.
573 .It Sy restricted
574 default, removes the
575 .Sy write_acl
576 and
577 .Sy write_owner
578 permissions when the ACE is inherited.
579 .It Sy passthrough
580 inherits all inheritable ACEs without any modifications.
581 .It Sy passthrough-x
582 same meaning as
583 .Sy passthrough ,
584 except that the
585 .Sy owner@ ,
586 .Sy group@ ,
587 and
588 .Sy everyone@
589 ACEs inherit the execute permission only if the file creation mode also requests
590 the execute bit.
591 .El
592 .Pp
593 When the property value is set to
594 .Sy passthrough ,
595 files are created with a mode determined by the inheritable ACEs.
596 If no inheritable ACEs exist that affect the mode, then the mode is set in
597 accordance to the requested mode from the application.
598 .Pp
599 The
600 .Sy aclinherit
601 property does not apply to POSIX ACLs.
602 .It Sy aclmode Ns = Ns Sy discard Ns | Ns Sy groupmask Ns | Ns Sy passthrough
603 .Ns Sy restricted
604 Controls how an
605 .Tn ACL
606 is modified during
607 .Xr chmod 2 .
608 This property is not visible on Linux yet.
609 .Bl -tag -width "passthrough"
610 .It Sy discard
611 default, deletes all
612 .Tn ACL
613 entries that do not represent the mode of the file.
614 .It Sy groupmask
615 reduces permissions granted in all
616 .Em ALLOW
617 entried found in the
618 .Tn ACL
619 such that they are no greater than the group permissions specified by
620 .Xr chmod 2 .
621 .It Sy passthrough
622 indicates that no changes are made to the
623 .Tn ACL
624 other than creating or updating the necessary
625 .Tn ACL
626 entries to represent the new mode of the file or directory.
627 .It Sy restricted
628 will cause the
629 .Xr chmod 2
630 operation to return an error when used on any file or directory which has
631 a non-trivial
632 .Tn ACL
633 whose entries can not be represented by a mode.
634 .Xr chmod 2
635 is required to change the set user ID, set group ID, or sticky bits on a file
636 or directory, as they do not have equivalent
637 .Tn ACL
638 entries.
639 In order to use
640 .Xr chmod 2
641 on a file or directory with a non-trivial
642 .Tn ACL
643 when
644 .Sy aclmode
645 is set to
646 .Sy restricted ,
647 you must first remove all
648 .Tn ACL
649 entries which do not represent the current mode.
650 .El
651 .It Sy acltype Ns = Ns Sy off Ns | Ns Sy noacl Ns | Ns Sy posixacl
652 Controls whether ACLs are enabled and if so what type of ACL to use.
653 This property is not visible on FreeBSD yet.
654 .Bl -tag -width "posixacl"
655 .It Sy off
656 default, when a file system has the
657 .Sy acltype
658 property set to off then ACLs are disabled.
659 .It Sy noacl
660 an alias for
661 .Sy off
662 .It Sy posixacl
663 indicates POSIX ACLs should be used. POSIX ACLs are specific to Linux and are
664 not functional on other platforms. POSIX ACLs are stored as an extended
665 attribute and therefore will not overwrite any existing NFSv4 ACLs which
666 may be set.
667 .El
668 .Pp
669 To obtain the best performance when setting
670 .Sy posixacl
671 users are strongly encouraged to set the
672 .Sy xattr=sa
673 property. This will result in the POSIX ACL being stored more efficiently on
674 disk. But as a consequence, all new extended attributes will only be
675 accessible from OpenZFS implementations which support the
676 .Sy xattr=sa
677 property. See the
678 .Sy xattr
679 property for more details.
680 .It Sy atime Ns = Ns Sy on Ns | Ns Sy off
681 Controls whether the access time for files is updated when they are read.
682 Turning this property off avoids producing write traffic when reading files and
683 can result in significant performance gains, though it might confuse mailers
684 and other similar utilities. The values
685 .Sy on
686 and
687 .Sy off
688 are equivalent to the
689 .Sy atime
690 and
691 .Sy noatime
692 mount options. The default value is
693 .Sy on .
694 See also
695 .Sy relatime
696 below.
697 .It Sy canmount Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy noauto
698 If this property is set to
699 .Sy off ,
700 the file system cannot be mounted, and is ignored by
701 .Nm zfs Cm mount Fl a .
702 Setting this property to
703 .Sy off
704 is similar to setting the
705 .Sy mountpoint
706 property to
707 .Sy none ,
708 except that the dataset still has a normal
709 .Sy mountpoint
710 property, which can be inherited.
711 Setting this property to
712 .Sy off
713 allows datasets to be used solely as a mechanism to inherit properties.
714 One example of setting
715 .Sy canmount Ns = Ns Sy off
716 is to have two datasets with the same
717 .Sy mountpoint ,
718 so that the children of both datasets appear in the same directory, but might
719 have different inherited characteristics.
720 .Pp
721 When set to
722 .Sy noauto ,
723 a dataset can only be mounted and unmounted explicitly.
724 The dataset is not mounted automatically when the dataset is created or
725 imported, nor is it mounted by the
726 .Nm zfs Cm mount Fl a
727 command or unmounted by the
728 .Nm zfs Cm unmount Fl a
729 command.
730 .Pp
731 This property is not inherited.
732 .It Xo
733 .Sy checksum Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy fletcher2 Ns | Ns
734 .Sy fletcher4 Ns | Ns Sy sha256 Ns | Ns Sy noparity Ns | Ns
735 .Sy sha512 Ns | Ns Sy skein Ns | Ns Sy edonr
736 .Xc
737 Controls the checksum used to verify data integrity.
738 The default value is
739 .Sy on ,
740 which automatically selects an appropriate algorithm
741 .Po currently,
742 .Sy fletcher4 ,
743 but this may change in future releases
744 .Pc .
745 The value
746 .Sy off
747 disables integrity checking on user data.
748 The value
749 .Sy noparity
750 not only disables integrity but also disables maintaining parity for user data.
751 This setting is used internally by a dump device residing on a RAID-Z pool and
752 should not be used by any other dataset.
753 Disabling checksums is
754 .Sy NOT
755 a recommended practice.
756 .Pp
757 The
758 .Sy sha512 ,
759 .Sy skein ,
760 and
761 .Sy edonr
762 checksum algorithms require enabling the appropriate features on the pool.
763 These pool features are not supported by GRUB and must not be used on the
764 pool if GRUB needs to access the pool (e.g. for /boot).
765 FreeBSD does not support the
766 .Sy edonr
767 algorithm.
768 .Pp
769 Please see
770 .Xr zpool-features 5
771 for more information on these algorithms.
772 .Pp
773 Changing this property affects only newly-written data.
774 .It Xo
775 .Sy compression Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy gzip Ns | Ns
776 .Sy gzip- Ns Em N Ns | Ns Sy lz4 Ns | Ns Sy lzjb Ns | Ns Sy zle
777 .Xc
778 Controls the compression algorithm used for this dataset.
779 .Pp
780 Setting compression to
781 .Sy on
782 indicates that the current default compression algorithm should be used.
783 The default balances compression and decompression speed, with compression ratio
784 and is expected to work well on a wide variety of workloads.
785 Unlike all other settings for this property,
786 .Sy on
787 does not select a fixed compression type.
788 As new compression algorithms are added to ZFS and enabled on a pool, the
789 default compression algorithm may change.
790 The current default compression algorithm is either
791 .Sy lzjb
792 or, if the
793 .Sy lz4_compress
794 feature is enabled,
795 .Sy lz4 .
796 .Pp
797 The
798 .Sy lz4
799 compression algorithm is a high-performance replacement for the
800 .Sy lzjb
801 algorithm.
802 It features significantly faster compression and decompression, as well as a
803 moderately higher compression ratio than
804 .Sy lzjb ,
805 but can only be used on pools with the
806 .Sy lz4_compress
807 feature set to
808 .Sy enabled .
809 See
810 .Xr zpool-features 5
811 for details on ZFS feature flags and the
812 .Sy lz4_compress
813 feature.
814 .Pp
815 The
816 .Sy lzjb
817 compression algorithm is optimized for performance while providing decent data
818 compression.
819 .Pp
820 The
821 .Sy gzip
822 compression algorithm uses the same compression as the
823 .Xr gzip 1
824 command.
825 You can specify the
826 .Sy gzip
827 level by using the value
828 .Sy gzip- Ns Em N ,
829 where
830 .Em N
831 is an integer from 1
832 .Pq fastest
833 to 9
834 .Pq best compression ratio .
835 Currently,
836 .Sy gzip
837 is equivalent to
838 .Sy gzip-6
839 .Po which is also the default for
840 .Xr gzip 1
841 .Pc .
842 .Pp
843 The
844 .Sy zle
845 compression algorithm compresses runs of zeros.
846 .Pp
847 This property can also be referred to by its shortened column name
848 .Sy compress .
849 Changing this property affects only newly-written data.
850 .Pp
851 When any setting except
852 .Sy off
853 is selected, compression will explicitly check for blocks consisting of only
854 zeroes (the NUL byte). When a zero-filled block is detected, it is stored as
855 a hole and not compressed using the indicated compression algorithm.
856 .Pp
857 Any block being compressed must be no larger than 7/8 of its original size
858 after compression, otherwise the compression will not be considered worthwhile
859 and the block saved uncompressed. Note that when the logical block is less than
860 8 times the disk sector size this effectively reduces the necessary compression
861 ratio; for example 8k blocks on disks with 4k disk sectors must compress to 1/2
862 or less of their original size.
863 .It Xo
864 .Sy context Ns = Ns Sy none Ns | Ns
865 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
866 .Xc
867 This flag sets the SELinux context for all files in the file system under
868 a mount point for that file system. See
869 .Xr selinux 8
870 for more information.
871 .It Xo
872 .Sy fscontext Ns = Ns Sy none Ns | Ns
873 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
874 .Xc
875 This flag sets the SELinux context for the file system file system being
876 mounted. See
877 .Xr selinux 8
878 for more information.
879 .It Xo
880 .Sy defcontext Ns = Ns Sy none Ns | Ns
881 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
882 .Xc
883 This flag sets the SELinux default context for unlabeled files. See
884 .Xr selinux 8
885 for more information.
886 .It Xo
887 .Sy rootcontext Ns = Ns Sy none Ns | Ns
888 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
889 .Xc
890 This flag sets the SELinux context for the root inode of the file system. See
891 .Xr selinux 8
892 for more information.
893 .It Sy copies Ns = Ns Sy 1 Ns | Ns Sy 2 Ns | Ns Sy 3
894 Controls the number of copies of data stored for this dataset.
895 These copies are in addition to any redundancy provided by the pool, for
896 example, mirroring or RAID-Z.
897 The copies are stored on different disks, if possible.
898 The space used by multiple copies is charged to the associated file and dataset,
899 changing the
900 .Sy used
901 property and counting against quotas and reservations.
902 .Pp
903 Changing this property only affects newly-written data.
904 Therefore, set this property at file system creation time by using the
905 .Fl o Sy copies Ns = Ns Ar N
906 option.
907 .Pp
908 Remember that ZFS will not import a pool with a missing top-level vdev. Do
909 .Sy NOT
910 create, for example a two-disk striped pool and set
911 .Sy copies=2
912 on some datasets thinking you have setup redundancy for them. When a disk
913 fails you will not be able to import the pool and will have lost all of your
914 data.
915 .Pp
916 Encrypted datasets may not have
917 .Sy copies Ns = Ns Em 3
918 since the implementation stores some encryption metadata where the third copy
919 would normally be.
920 .It Sy devices Ns = Ns Sy on Ns | Ns Sy off
921 Controls whether device nodes can be opened on this file system.
922 The default value is
923 .Sy on .
924 The values
925 .Sy on
926 and
927 .Sy off
928 are equivalent to the
929 .Sy dev
930 and
931 .Sy nodev
932 mount options.
933 .It Xo
934 .Sy dedup Ns = Ns Sy off Ns | Ns Sy on Ns | Ns Sy verify Ns | Ns
935 .Sy sha256[,verify] Ns | Ns Sy sha512[,verify] Ns | Ns Sy skein[,verify] Ns | Ns
936 .Sy edonr,verify
937 .Xc
938 Configures deduplication for a dataset. The default value is
939 .Sy off .
940 The default deduplication checksum is
941 .Sy sha256
942 (this may change in the future). When
943 .Sy dedup
944 is enabled, the checksum defined here overrides the
945 .Sy checksum
946 property. Setting the value to
947 .Sy verify
948 has the same effect as the setting
949 .Sy sha256,verify.
950 .Pp
951 If set to
952 .Sy verify ,
953 ZFS will do a byte-to-byte comparison in case of two blocks having the same
954 signature to make sure the block contents are identical. Specifying
955 .Sy verify
956 is mandatory for the
957 .Sy edonr
958 algorithm.
959 .Pp
960 Unless necessary, deduplication should NOT be enabled on a system. See the
961 .Em Deduplication
962 section of
963 .Xr zfsconcepts 8 .
964 .It Xo
965 .Sy dnodesize Ns = Ns Sy legacy Ns | Ns Sy auto Ns | Ns Sy 1k Ns | Ns
966 .Sy 2k Ns | Ns Sy 4k Ns | Ns Sy 8k Ns | Ns Sy 16k
967 .Xc
968 Specifies a compatibility mode or literal value for the size of dnodes in the
969 file system. The default value is
970 .Sy legacy .
971 Setting this property to a value other than
972 .Sy legacy
973 requires the large_dnode pool feature to be enabled.
974 .Pp
975 Consider setting
976 .Sy dnodesize
977 to
978 .Sy auto
979 if the dataset uses the
980 .Sy xattr=sa
981 property setting and the workload makes heavy use of extended attributes. This
982 may be applicable to SELinux-enabled systems, Lustre servers, and Samba
983 servers, for example. Literal values are supported for cases where the optimal
984 size is known in advance and for performance testing.
985 .Pp
986 Leave
987 .Sy dnodesize
988 set to
989 .Sy legacy
990 if you need to receive a send stream of this dataset on a pool that doesn't
991 enable the large_dnode feature, or if you need to import this pool on a system
992 that doesn't support the large_dnode feature.
993 .Pp
994 This property can also be referred to by its shortened column name,
995 .Sy dnsize .
996 .It Xo
997 .Sy encryption Ns = Ns Sy off Ns | Ns Sy on Ns | Ns Sy aes-128-ccm Ns | Ns
998 .Sy aes-192-ccm Ns | Ns Sy aes-256-ccm Ns | Ns Sy aes-128-gcm Ns | Ns
999 .Sy aes-192-gcm Ns | Ns Sy aes-256-gcm
1000 .Xc
1001 Controls the encryption cipher suite (block cipher, key length, and mode) used
1002 for this dataset. Requires the
1003 .Sy encryption
1004 feature to be enabled on the pool.
1005 Requires a
1006 .Sy keyformat
1007 to be set at dataset creation time.
1008 .Pp
1009 Selecting
1010 .Sy encryption Ns = Ns Sy on
1011 when creating a dataset indicates that the default encryption suite will be
1012 selected, which is currently
1013 .Sy aes-256-gcm .
1014 In order to provide consistent data protection, encryption must be specified at
1015 dataset creation time and it cannot be changed afterwards.
1016 .Pp
1017 For more details and caveats about encryption see the
1018 .Sy Encryption
1019 section.
1020 .It Sy keyformat Ns = Ns Sy raw Ns | Ns Sy hex Ns | Ns Sy passphrase
1021 Controls what format the user's encryption key will be provided as. This
1022 property is only set when the dataset is encrypted.
1023 .Pp
1024 Raw keys and hex keys must be 32 bytes long (regardless of the chosen
1025 encryption suite) and must be randomly generated. A raw key can be generated
1026 with the following command:
1027 .Bd -literal
1028 # dd if=/dev/urandom of=/path/to/output/key bs=32 count=1
1029 .Ed
1030 .Pp
1031 Passphrases must be between 8 and 512 bytes long and will be processed through
1032 PBKDF2 before being used (see the
1033 .Sy pbkdf2iters
1034 property). Even though the
1035 encryption suite cannot be changed after dataset creation, the keyformat can be
1036 with
1037 .Nm zfs Cm change-key .
1038 .It Xo
1039 .Sy keylocation Ns = Ns Sy prompt Ns | Ns Sy file:// Ns Em </absolute/file/path>
1040 .Xc
1041 Controls where the user's encryption key will be loaded from by default for
1042 commands such as
1043 .Nm zfs Cm load-key
1044 and
1045 .Nm zfs Cm mount Cm -l .
1046 This property is only set for encrypted datasets which are encryption roots. If
1047 unspecified, the default is
1048 .Sy prompt.
1049 .Pp
1050 Even though the encryption suite cannot be changed after dataset creation, the
1051 keylocation can be with either
1052 .Nm zfs Cm set
1053 or
1054 .Nm zfs Cm change-key .
1055 If
1056 .Sy prompt
1057 is selected ZFS will ask for the key at the command prompt when it is required
1058 to access the encrypted data (see
1059 .Nm zfs Cm load-key
1060 for details). This setting will also allow the key to be passed in via STDIN,
1061 but users should be careful not to place keys which should be kept secret on
1062 the command line. If a file URI is selected, the key will be loaded from the
1063 specified absolute file path.
1064 .It Sy pbkdf2iters Ns = Ns Ar iterations
1065 Controls the number of PBKDF2 iterations that a
1066 .Sy passphrase
1067 encryption key should be run through when processing it into an encryption key.
1068 This property is only defined when encryption is enabled and a keyformat of
1069 .Sy passphrase
1070 is selected. The goal of PBKDF2 is to significantly increase the
1071 computational difficulty needed to brute force a user's passphrase. This is
1072 accomplished by forcing the attacker to run each passphrase through a
1073 computationally expensive hashing function many times before they arrive at the
1074 resulting key. A user who actually knows the passphrase will only have to pay
1075 this cost once. As CPUs become better at processing, this number should be
1076 raised to ensure that a brute force attack is still not possible. The current
1077 default is
1078 .Sy 350000
1079 and the minimum is
1080 .Sy 100000 .
1081 This property may be changed with
1082 .Nm zfs Cm change-key .
1083 .It Sy exec Ns = Ns Sy on Ns | Ns Sy off
1084 Controls whether processes can be executed from within this file system.
1085 The default value is
1086 .Sy on .
1087 The values
1088 .Sy on
1089 and
1090 .Sy off
1091 are equivalent to the
1092 .Sy exec
1093 and
1094 .Sy noexec
1095 mount options.
1096 .It Sy filesystem_limit Ns = Ns Em count Ns | Ns Sy none
1097 Limits the number of filesystems and volumes that can exist under this point in
1098 the dataset tree.
1099 The limit is not enforced if the user is allowed to change the limit.
1100 Setting a
1101 .Sy filesystem_limit
1102 to
1103 .Sy on
1104 a descendent of a filesystem that already has a
1105 .Sy filesystem_limit
1106 does not override the ancestor's
1107 .Sy filesystem_limit ,
1108 but rather imposes an additional limit.
1109 This feature must be enabled to be used
1110 .Po see
1111 .Xr zpool-features 5
1112 .Pc .
1113 .It Sy special_small_blocks Ns = Ns Em size
1114 This value represents the threshold block size for including small file
1115 blocks into the special allocation class. Blocks smaller than or equal to this
1116 value will be assigned to the special allocation class while greater blocks
1117 will be assigned to the regular class. Valid values are zero or a power of two
1118 from 512B up to 1M. The default size is 0 which means no small file blocks
1119 will be allocated in the special class.
1120 .Pp
1121 Before setting this property, a special class vdev must be added to the
1122 pool. See
1123 .Xr zpool 8
1124 for more details on the special allocation class.
1125 .It Sy mountpoint Ns = Ns Pa path Ns | Ns Sy none Ns | Ns Sy legacy
1126 Controls the mount point used for this file system.
1127 See the
1128 .Em Mount Points
1129 section of
1130 .Xr zfsconcepts 8
1131 for more information on how this property is used.
1132 .Pp
1133 When the
1134 .Sy mountpoint
1135 property is changed for a file system, the file system and any children that
1136 inherit the mount point are unmounted.
1137 If the new value is
1138 .Sy legacy ,
1139 then they remain unmounted.
1140 Otherwise, they are automatically remounted in the new location if the property
1141 was previously
1142 .Sy legacy
1143 or
1144 .Sy none ,
1145 or if they were mounted before the property was changed.
1146 In addition, any shared file systems are unshared and shared in the new
1147 location.
1148 .It Sy nbmand Ns = Ns Sy on Ns | Ns Sy off
1149 Controls whether the file system should be mounted with
1150 .Sy nbmand
1151 .Pq Non Blocking mandatory locks .
1152 This is used for SMB clients.
1153 Changes to this property only take effect when the file system is umounted and
1154 remounted.
1155 See
1156 .Xr mount 8
1157 for more information on
1158 .Sy nbmand
1159 mounts. This property is not used on Linux.
1160 .It Sy overlay Ns = Ns Sy off Ns | Ns Sy on
1161 Allow mounting on a busy directory or a directory which already contains
1162 files or directories. This is the default mount behavior for Linux file systems.
1163 For consistency with OpenZFS on other platforms overlay mounts are
1164 .Sy off
1165 by default. Set to
1166 .Sy on
1167 to enable overlay mounts.
1168 .It Sy primarycache Ns = Ns Sy all Ns | Ns Sy none Ns | Ns Sy metadata
1169 Controls what is cached in the primary cache
1170 .Pq ARC .
1171 If this property is set to
1172 .Sy all ,
1173 then both user data and metadata is cached.
1174 If this property is set to
1175 .Sy none ,
1176 then neither user data nor metadata is cached.
1177 If this property is set to
1178 .Sy metadata ,
1179 then only metadata is cached.
1180 The default value is
1181 .Sy all .
1182 .It Sy quota Ns = Ns Em size Ns | Ns Sy none
1183 Limits the amount of space a dataset and its descendents can consume.
1184 This property enforces a hard limit on the amount of space used.
1185 This includes all space consumed by descendents, including file systems and
1186 snapshots.
1187 Setting a quota on a descendent of a dataset that already has a quota does not
1188 override the ancestor's quota, but rather imposes an additional limit.
1189 .Pp
1190 Quotas cannot be set on volumes, as the
1191 .Sy volsize
1192 property acts as an implicit quota.
1193 .It Sy snapshot_limit Ns = Ns Em count Ns | Ns Sy none
1194 Limits the number of snapshots that can be created on a dataset and its
1195 descendents.
1196 Setting a
1197 .Sy snapshot_limit
1198 on a descendent of a dataset that already has a
1199 .Sy snapshot_limit
1200 does not override the ancestor's
1201 .Sy snapshot_limit ,
1202 but rather imposes an additional limit.
1203 The limit is not enforced if the user is allowed to change the limit.
1204 For example, this means that recursive snapshots taken from the global zone are
1205 counted against each delegated dataset within a zone.
1206 This feature must be enabled to be used
1207 .Po see
1208 .Xr zpool-features 5
1209 .Pc .
1210 .It Sy userquota@ Ns Em user Ns = Ns Em size Ns | Ns Sy none
1211 Limits the amount of space consumed by the specified user.
1212 User space consumption is identified by the
1213 .Sy userspace@ Ns Em user
1214 property.
1215 .Pp
1216 Enforcement of user quotas may be delayed by several seconds.
1217 This delay means that a user might exceed their quota before the system notices
1218 that they are over quota and begins to refuse additional writes with the
1219 .Er EDQUOT
1220 error message.
1221 See the
1222 .Nm zfs Cm userspace
1223 subcommand for more information.
1224 .Pp
1225 Unprivileged users can only access their own groups' space usage.
1226 The root user, or a user who has been granted the
1227 .Sy userquota
1228 privilege with
1229 .Nm zfs Cm allow ,
1230 can get and set everyone's quota.
1231 .Pp
1232 This property is not available on volumes, on file systems before version 4, or
1233 on pools before version 15.
1234 The
1235 .Sy userquota@ Ns Em ...
1236 properties are not displayed by
1237 .Nm zfs Cm get Sy all .
1238 The user's name must be appended after the
1239 .Sy @
1240 symbol, using one of the following forms:
1241 .Bl -bullet
1242 .It
1243 .Em POSIX name
1244 .Po for example,
1245 .Sy joe
1246 .Pc
1247 .It
1248 .Em POSIX numeric ID
1249 .Po for example,
1250 .Sy 789
1251 .Pc
1252 .It
1253 .Em SID name
1254 .Po for example,
1255 .Sy joe.smith@mydomain
1256 .Pc
1257 .It
1258 .Em SID numeric ID
1259 .Po for example,
1260 .Sy S-1-123-456-789
1261 .Pc
1262 .El
1263 .Pp
1264 Files created on Linux always have POSIX owners.
1265 .It Sy userobjquota@ Ns Em user Ns = Ns Em size Ns | Ns Sy none
1266 The
1267 .Sy userobjquota
1268 is similar to
1269 .Sy userquota
1270 but it limits the number of objects a user can create. Please refer to
1271 .Sy userobjused
1272 for more information about how objects are counted.
1273 .It Sy groupquota@ Ns Em group Ns = Ns Em size Ns | Ns Sy none
1274 Limits the amount of space consumed by the specified group.
1275 Group space consumption is identified by the
1276 .Sy groupused@ Ns Em group
1277 property.
1278 .Pp
1279 Unprivileged users can access only their own groups' space usage.
1280 The root user, or a user who has been granted the
1281 .Sy groupquota
1282 privilege with
1283 .Nm zfs Cm allow ,
1284 can get and set all groups' quotas.
1285 .It Sy groupobjquota@ Ns Em group Ns = Ns Em size Ns | Ns Sy none
1286 The
1287 .Sy groupobjquota
1288 is similar to
1289 .Sy groupquota
1290 but it limits number of objects a group can consume. Please refer to
1291 .Sy userobjused
1292 for more information about how objects are counted.
1293 .It Sy projectquota@ Ns Em project Ns = Ns Em size Ns | Ns Sy none
1294 Limits the amount of space consumed by the specified project. Project
1295 space consumption is identified by the
1296 .Sy projectused@ Ns Em project
1297 property. Please refer to
1298 .Sy projectused
1299 for more information about how project is identified and set/changed.
1300 .Pp
1301 The root user, or a user who has been granted the
1302 .Sy projectquota
1303 privilege with
1304 .Nm zfs allow ,
1305 can access all projects' quota.
1306 .It Sy projectobjquota@ Ns Em project Ns = Ns Em size Ns | Ns Sy none
1307 The
1308 .Sy projectobjquota
1309 is similar to
1310 .Sy projectquota
1311 but it limits number of objects a project can consume. Please refer to
1312 .Sy userobjused
1313 for more information about how objects are counted.
1314 .It Sy readonly Ns = Ns Sy on Ns | Ns Sy off
1315 Controls whether this dataset can be modified.
1316 The default value is
1317 .Sy off .
1318 The values
1319 .Sy on
1320 and
1321 .Sy off
1322 are equivalent to the
1323 .Sy ro
1324 and
1325 .Sy rw
1326 mount options.
1327 .Pp
1328 This property can also be referred to by its shortened column name,
1329 .Sy rdonly .
1330 .It Sy recordsize Ns = Ns Em size
1331 Specifies a suggested block size for files in the file system.
1332 This property is designed solely for use with database workloads that access
1333 files in fixed-size records.
1334 ZFS automatically tunes block sizes according to internal algorithms optimized
1335 for typical access patterns.
1336 .Pp
1337 For databases that create very large files but access them in small random
1338 chunks, these algorithms may be suboptimal.
1339 Specifying a
1340 .Sy recordsize
1341 greater than or equal to the record size of the database can result in
1342 significant performance gains.
1343 Use of this property for general purpose file systems is strongly discouraged,
1344 and may adversely affect performance.
1345 .Pp
1346 The size specified must be a power of two greater than or equal to 512 and less
1347 than or equal to 128 Kbytes.
1348 If the
1349 .Sy large_blocks
1350 feature is enabled on the pool, the size may be up to 1 Mbyte.
1351 See
1352 .Xr zpool-features 5
1353 for details on ZFS feature flags.
1354 .Pp
1355 Changing the file system's
1356 .Sy recordsize
1357 affects only files created afterward; existing files are unaffected.
1358 .Pp
1359 This property can also be referred to by its shortened column name,
1360 .Sy recsize .
1361 .It Sy redundant_metadata Ns = Ns Sy all Ns | Ns Sy most
1362 Controls what types of metadata are stored redundantly.
1363 ZFS stores an extra copy of metadata, so that if a single block is corrupted,
1364 the amount of user data lost is limited.
1365 This extra copy is in addition to any redundancy provided at the pool level
1366 .Pq e.g. by mirroring or RAID-Z ,
1367 and is in addition to an extra copy specified by the
1368 .Sy copies
1369 property
1370 .Pq up to a total of 3 copies .
1371 For example if the pool is mirrored,
1372 .Sy copies Ns = Ns 2 ,
1373 and
1374 .Sy redundant_metadata Ns = Ns Sy most ,
1375 then ZFS stores 6 copies of most metadata, and 4 copies of data and some
1376 metadata.
1377 .Pp
1378 When set to
1379 .Sy all ,
1380 ZFS stores an extra copy of all metadata.
1381 If a single on-disk block is corrupt, at worst a single block of user data
1382 .Po which is
1383 .Sy recordsize
1384 bytes long
1385 .Pc
1386 can be lost.
1387 .Pp
1388 When set to
1389 .Sy most ,
1390 ZFS stores an extra copy of most types of metadata.
1391 This can improve performance of random writes, because less metadata must be
1392 written.
1393 In practice, at worst about 100 blocks
1394 .Po of
1395 .Sy recordsize
1396 bytes each
1397 .Pc
1398 of user data can be lost if a single on-disk block is corrupt.
1399 The exact behavior of which metadata blocks are stored redundantly may change in
1400 future releases.
1401 .Pp
1402 The default value is
1403 .Sy all .
1404 .It Sy refquota Ns = Ns Em size Ns | Ns Sy none
1405 Limits the amount of space a dataset can consume.
1406 This property enforces a hard limit on the amount of space used.
1407 This hard limit does not include space used by descendents, including file
1408 systems and snapshots.
1409 .It Sy refreservation Ns = Ns Em size Ns | Ns Sy none Ns | Ns Sy auto
1410 The minimum amount of space guaranteed to a dataset, not including its
1411 descendents.
1412 When the amount of space used is below this value, the dataset is treated as if
1413 it were taking up the amount of space specified by
1414 .Sy refreservation .
1415 The
1416 .Sy refreservation
1417 reservation is accounted for in the parent datasets' space used, and counts
1418 against the parent datasets' quotas and reservations.
1419 .Pp
1420 If
1421 .Sy refreservation
1422 is set, a snapshot is only allowed if there is enough free pool space outside of
1423 this reservation to accommodate the current number of
1424 .Qq referenced
1425 bytes in the dataset.
1426 .Pp
1427 If
1428 .Sy refreservation
1429 is set to
1430 .Sy auto ,
1431 a volume is thick provisioned
1432 .Po or
1433 .Qq not sparse
1434 .Pc .
1435 .Sy refreservation Ns = Ns Sy auto
1436 is only supported on volumes.
1437 See
1438 .Sy volsize
1439 in the
1440 .Sx Native Properties
1441 section for more information about sparse volumes.
1442 .Pp
1443 This property can also be referred to by its shortened column name,
1444 .Sy refreserv .
1445 .It Sy relatime Ns = Ns Sy on Ns | Ns Sy off
1446 Controls the manner in which the access time is updated when
1447 .Sy atime=on
1448 is set. Turning this property on causes the access time to be updated relative
1449 to the modify or change time. Access time is only updated if the previous
1450 access time was earlier than the current modify or change time or if the
1451 existing access time hasn't been updated within the past 24 hours. The default
1452 value is
1453 .Sy off .
1454 The values
1455 .Sy on
1456 and
1457 .Sy off
1458 are equivalent to the
1459 .Sy relatime
1460 and
1461 .Sy norelatime
1462 mount options.
1463 .It Sy reservation Ns = Ns Em size Ns | Ns Sy none
1464 The minimum amount of space guaranteed to a dataset and its descendants.
1465 When the amount of space used is below this value, the dataset is treated as if
1466 it were taking up the amount of space specified by its reservation.
1467 Reservations are accounted for in the parent datasets' space used, and count
1468 against the parent datasets' quotas and reservations.
1469 .Pp
1470 This property can also be referred to by its shortened column name,
1471 .Sy reserv .
1472 .It Sy secondarycache Ns = Ns Sy all Ns | Ns Sy none Ns | Ns Sy metadata
1473 Controls what is cached in the secondary cache
1474 .Pq L2ARC .
1475 If this property is set to
1476 .Sy all ,
1477 then both user data and metadata is cached.
1478 If this property is set to
1479 .Sy none ,
1480 then neither user data nor metadata is cached.
1481 If this property is set to
1482 .Sy metadata ,
1483 then only metadata is cached.
1484 The default value is
1485 .Sy all .
1486 .It Sy setuid Ns = Ns Sy on Ns | Ns Sy off
1487 Controls whether the setuid bit is respected for the file system.
1488 The default value is
1489 .Sy on .
1490 The values
1491 .Sy on
1492 and
1493 .Sy off
1494 are equivalent to the
1495 .Sy suid
1496 and
1497 .Sy nosuid
1498 mount options.
1499 .It Sy sharesmb Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Em opts
1500 Controls whether the file system is shared by using
1501 .Sy Samba USERSHARES
1502 and what options are to be used. Otherwise, the file system is automatically
1503 shared and unshared with the
1504 .Nm zfs Cm share
1505 and
1506 .Nm zfs Cm unshare
1507 commands. If the property is set to on, the
1508 .Xr net 8
1509 command is invoked to create a
1510 .Sy USERSHARE .
1511 .Pp
1512 Because SMB shares requires a resource name, a unique resource name is
1513 constructed from the dataset name. The constructed name is a copy of the
1514 dataset name except that the characters in the dataset name, which would be
1515 invalid in the resource name, are replaced with underscore (_) characters.
1516 Linux does not currently support additional options which might be available
1517 on Solaris.
1518 .Pp
1519 If the
1520 .Sy sharesmb
1521 property is set to
1522 .Sy off ,
1523 the file systems are unshared.
1524 .Pp
1525 The share is created with the ACL (Access Control List) "Everyone:F" ("F"
1526 stands for "full permissions", ie. read and write permissions) and no guest
1527 access (which means Samba must be able to authenticate a real user, system
1528 passwd/shadow, LDAP or smbpasswd based) by default. This means that any
1529 additional access control (disallow specific user specific access etc) must
1530 be done on the underlying file system.
1531 .It Sy sharenfs Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Em opts
1532 Controls whether the file system is shared via NFS, and what options are to be
1533 used.
1534 A file system with a
1535 .Sy sharenfs
1536 property of
1537 .Sy off
1538 is managed with the
1539 .Xr exportfs 8
1540 command and entries in the
1541 .Em /etc/exports
1542 file.
1543 Otherwise, the file system is automatically shared and unshared with the
1544 .Nm zfs Cm share
1545 and
1546 .Nm zfs Cm unshare
1547 commands.
1548 If the property is set to
1549 .Sy on ,
1550 the dataset is shared using the default options:
1551 .Pp
1552 .Em sec=sys,rw,crossmnt,no_subtree_check
1553 .Pp
1554 See
1555 .Xr exports 5
1556 for the meaning of the default options. Otherwise, the
1557 .Xr exportfs 8
1558 command is invoked with options equivalent to the contents of this property.
1559 .Pp
1560 When the
1561 .Sy sharenfs
1562 property is changed for a dataset, the dataset and any children inheriting the
1563 property are re-shared with the new options, only if the property was previously
1564 .Sy off ,
1565 or if they were shared before the property was changed.
1566 If the new property is
1567 .Sy off ,
1568 the file systems are unshared.
1569 .It Sy logbias Ns = Ns Sy latency Ns | Ns Sy throughput
1570 Provide a hint to ZFS about handling of synchronous requests in this dataset.
1571 If
1572 .Sy logbias
1573 is set to
1574 .Sy latency
1575 .Pq the default ,
1576 ZFS will use pool log devices
1577 .Pq if configured
1578 to handle the requests at low latency.
1579 If
1580 .Sy logbias
1581 is set to
1582 .Sy throughput ,
1583 ZFS will not use configured pool log devices.
1584 ZFS will instead optimize synchronous operations for global pool throughput and
1585 efficient use of resources.
1586 .It Sy snapdev Ns = Ns Sy hidden Ns | Ns Sy visible
1587 Controls whether the volume snapshot devices under
1588 .Em /dev/zvol/<pool>
1589 are hidden or visible. The default value is
1590 .Sy hidden .
1591 .It Sy snapdir Ns = Ns Sy hidden Ns | Ns Sy visible
1592 Controls whether the
1593 .Pa .zfs
1594 directory is hidden or visible in the root of the file system as discussed in
1595 the
1596 .Em Snapshots
1597 section of
1598 .Xr zfsconcepts 8 .
1599 The default value is
1600 .Sy hidden .
1601 .It Sy sync Ns = Ns Sy standard Ns | Ns Sy always Ns | Ns Sy disabled
1602 Controls the behavior of synchronous requests
1603 .Pq e.g. fsync, O_DSYNC .
1604 .Sy standard
1605 is the
1606 .Tn POSIX
1607 specified behavior of ensuring all synchronous requests are written to stable
1608 storage and all devices are flushed to ensure data is not cached by device
1609 controllers
1610 .Pq this is the default .
1611 .Sy always
1612 causes every file system transaction to be written and flushed before its
1613 system call returns.
1614 This has a large performance penalty.
1615 .Sy disabled
1616 disables synchronous requests.
1617 File system transactions are only committed to stable storage periodically.
1618 This option will give the highest performance.
1619 However, it is very dangerous as ZFS would be ignoring the synchronous
1620 transaction demands of applications such as databases or NFS.
1621 Administrators should only use this option when the risks are understood.
1622 .It Sy version Ns = Ns Em N Ns | Ns Sy current
1623 The on-disk version of this file system, which is independent of the pool
1624 version.
1625 This property can only be set to later supported versions.
1626 See the
1627 .Nm zfs Cm upgrade
1628 command.
1629 .It Sy volsize Ns = Ns Em size
1630 For volumes, specifies the logical size of the volume.
1631 By default, creating a volume establishes a reservation of equal size.
1632 For storage pools with a version number of 9 or higher, a
1633 .Sy refreservation
1634 is set instead.
1635 Any changes to
1636 .Sy volsize
1637 are reflected in an equivalent change to the reservation
1638 .Po or
1639 .Sy refreservation
1640 .Pc .
1641 The
1642 .Sy volsize
1643 can only be set to a multiple of
1644 .Sy volblocksize ,
1645 and cannot be zero.
1646 .Pp
1647 The reservation is kept equal to the volume's logical size to prevent unexpected
1648 behavior for consumers.
1649 Without the reservation, the volume could run out of space, resulting in
1650 undefined behavior or data corruption, depending on how the volume is used.
1651 These effects can also occur when the volume size is changed while it is in use
1652 .Pq particularly when shrinking the size .
1653 Extreme care should be used when adjusting the volume size.
1654 .Pp
1655 Though not recommended, a
1656 .Qq sparse volume
1657 .Po also known as
1658 .Qq thin provisioned
1659 .Pc
1660 can be created by specifying the
1661 .Fl s
1662 option to the
1663 .Nm zfs Cm create Fl V
1664 command, or by changing the value of the
1665 .Sy refreservation
1666 property
1667 .Po or
1668 .Sy reservation
1669 property on pool version 8 or earlier
1670 .Pc
1671 after the volume has been created.
1672 A
1673 .Qq sparse volume
1674 is a volume where the value of
1675 .Sy refreservation
1676 is less than the size of the volume plus the space required to store its
1677 metadata.
1678 Consequently, writes to a sparse volume can fail with
1679 .Er ENOSPC
1680 when the pool is low on space.
1681 For a sparse volume, changes to
1682 .Sy volsize
1683 are not reflected in the
1684 .Sy refreservation.
1685 A volume that is not sparse is said to be
1686 .Qq thick provisioned .
1687 A sparse volume can become thick provisioned by setting
1688 .Sy refreservation
1689 to
1690 .Sy auto .
1691 .It Sy volmode Ns = Ns Cm default | full | geom | dev | none
1692 This property specifies how volumes should be exposed to the OS.
1693 Setting it to
1694 .Sy full
1695 exposes volumes as fully fledged block devices, providing maximal
1696 functionality. The value
1697 .Sy geom
1698 is just an alias for
1699 .Sy full
1700 and is kept for compatibility.
1701 Setting it to
1702 .Sy dev
1703 hides its partitions.
1704 Volumes with property set to
1705 .Sy none
1706 are not exposed outside ZFS, but can be snapshotted, cloned, replicated, etc,
1707 that can be suitable for backup purposes.
1708 Value
1709 .Sy default
1710 means that volumes exposition is controlled by system-wide tunable
1711 .Va zvol_volmode ,
1712 where
1713 .Sy full ,
1714 .Sy dev
1715 and
1716 .Sy none
1717 are encoded as 1, 2 and 3 respectively.
1718 The default values is
1719 .Sy full .
1720 .It Sy vscan Ns = Ns Sy on Ns | Ns Sy off
1721 Controls whether regular files should be scanned for viruses when a file is
1722 opened and closed.
1723 In addition to enabling this property, the virus scan service must also be
1724 enabled for virus scanning to occur.
1725 The default value is
1726 .Sy off .
1727 This property is not used on Linux.
1728 .It Sy xattr Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy sa
1729 Controls whether extended attributes are enabled for this file system. Two
1730 styles of extended attributes are supported either directory based or system
1731 attribute based.
1732 .Pp
1733 The default value of
1734 .Sy on
1735 enables directory based extended attributes. This style of extended attribute
1736 imposes no practical limit on either the size or number of attributes which
1737 can be set on a file. Although under Linux the
1738 .Xr getxattr 2
1739 and
1740 .Xr setxattr 2
1741 system calls limit the maximum size to 64K. This is the most compatible
1742 style of extended attribute and is supported by all OpenZFS implementations.
1743 .Pp
1744 System attribute based xattrs can be enabled by setting the value to
1745 .Sy sa .
1746 The key advantage of this type of xattr is improved performance. Storing
1747 extended attributes as system attributes significantly decreases the amount of
1748 disk IO required. Up to 64K of data may be stored per-file in the space
1749 reserved for system attributes. If there is not enough space available for
1750 an extended attribute then it will be automatically written as a directory
1751 based xattr. System attribute based extended attributes are not accessible
1752 on platforms which do not support the
1753 .Sy xattr=sa
1754 feature.
1755 .Pp
1756 The use of system attribute based xattrs is strongly encouraged for users of
1757 SELinux or POSIX ACLs. Both of these features heavily rely of extended
1758 attributes and benefit significantly from the reduced access time.
1759 .Pp
1760 The values
1761 .Sy on
1762 and
1763 .Sy off
1764 are equivalent to the
1765 .Sy xattr
1766 and
1767 .Sy noxattr
1768 mount options.
1769 .It Sy jailed Ns = Ns Cm off | on
1770 Controls whether the dataset is managed from a jail. See the
1771 .Qq Sx Jails
1772 section in
1773 .Xr zfs 8
1774 for more information. Jails are a FreeBSD feature and are not relevant on
1775 other platforms. The default value is
1776 .Cm off .
1777 .It Sy zoned Ns = Ns Sy on Ns | Ns Sy off
1778 Controls whether the dataset is managed from a non-global zone. Zones are a
1779 Solaris feature and are not relevant on other platforms. The default value is
1780 .Sy off .
1781 .El
1782 .Pp
1783 The following three properties cannot be changed after the file system is
1784 created, and therefore, should be set when the file system is created.
1785 If the properties are not set with the
1786 .Nm zfs Cm create
1787 or
1788 .Nm zpool Cm create
1789 commands, these properties are inherited from the parent dataset.
1790 If the parent dataset lacks these properties due to having been created prior to
1791 these features being supported, the new file system will have the default values
1792 for these properties.
1793 .Bl -tag -width ""
1794 .It Xo
1795 .Sy casesensitivity Ns = Ns Sy sensitive Ns | Ns
1796 .Sy insensitive Ns | Ns Sy mixed
1797 .Xc
1798 Indicates whether the file name matching algorithm used by the file system
1799 should be case-sensitive, case-insensitive, or allow a combination of both
1800 styles of matching.
1801 The default value for the
1802 .Sy casesensitivity
1803 property is
1804 .Sy sensitive .
1805 Traditionally,
1806 .Ux
1807 and
1808 .Tn POSIX
1809 file systems have case-sensitive file names.
1810 .Pp
1811 The
1812 .Sy mixed
1813 value for the
1814 .Sy casesensitivity
1815 property indicates that the file system can support requests for both
1816 case-sensitive and case-insensitive matching behavior.
1817 Currently, case-insensitive matching behavior on a file system that supports
1818 mixed behavior is limited to the SMB server product.
1819 For more information about the
1820 .Sy mixed
1821 value behavior, see the "ZFS Administration Guide".
1822 .It Xo
1823 .Sy normalization Ns = Ns Sy none Ns | Ns Sy formC Ns | Ns
1824 .Sy formD Ns | Ns Sy formKC Ns | Ns Sy formKD
1825 .Xc
1826 Indicates whether the file system should perform a
1827 .Sy unicode
1828 normalization of file names whenever two file names are compared, and which
1829 normalization algorithm should be used.
1830 File names are always stored unmodified, names are normalized as part of any
1831 comparison process.
1832 If this property is set to a legal value other than
1833 .Sy none ,
1834 and the
1835 .Sy utf8only
1836 property was left unspecified, the
1837 .Sy utf8only
1838 property is automatically set to
1839 .Sy on .
1840 The default value of the
1841 .Sy normalization
1842 property is
1843 .Sy none .
1844 This property cannot be changed after the file system is created.
1845 .It Sy utf8only Ns = Ns Sy on Ns | Ns Sy off
1846 Indicates whether the file system should reject file names that include
1847 characters that are not present in the
1848 .Sy UTF-8
1849 character code set.
1850 If this property is explicitly set to
1851 .Sy off ,
1852 the normalization property must either not be explicitly set or be set to
1853 .Sy none .
1854 The default value for the
1855 .Sy utf8only
1856 property is
1857 .Sy off .
1858 This property cannot be changed after the file system is created.
1859 .El
1860 .Pp
1861 The
1862 .Sy casesensitivity ,
1863 .Sy normalization ,
1864 and
1865 .Sy utf8only
1866 properties are also new permissions that can be assigned to non-privileged users
1867 by using the ZFS delegated administration feature.
1868 .Ss "Temporary Mount Point Properties"
1869 When a file system is mounted, either through
1870 .Xr mount 8
1871 for legacy mounts or the
1872 .Nm zfs Cm mount
1873 command for normal file systems, its mount options are set according to its
1874 properties.
1875 The correlation between properties and mount options is as follows:
1876 .Bd -literal
1877 PROPERTY MOUNT OPTION
1878 atime atime/noatime
1879 canmount auto/noauto
1880 devices dev/nodev
1881 exec exec/noexec
1882 readonly ro/rw
1883 relatime relatime/norelatime
1884 setuid suid/nosuid
1885 xattr xattr/noxattr
1886 .Ed
1887 .Pp
1888 In addition, these options can be set on a per-mount basis using the
1889 .Fl o
1890 option, without affecting the property that is stored on disk.
1891 The values specified on the command line override the values stored in the
1892 dataset.
1893 The
1894 .Sy nosuid
1895 option is an alias for
1896 .Sy nodevices Ns \&, Ns Sy nosetuid .
1897 These properties are reported as
1898 .Qq temporary
1899 by the
1900 .Nm zfs Cm get
1901 command.
1902 If the properties are changed while the dataset is mounted, the new setting
1903 overrides any temporary settings.
1904 .Ss "User Properties"
1905 In addition to the standard native properties, ZFS supports arbitrary user
1906 properties.
1907 User properties have no effect on ZFS behavior, but applications or
1908 administrators can use them to annotate datasets
1909 .Pq file systems, volumes, and snapshots .
1910 .Pp
1911 User property names must contain a colon
1912 .Pq Qq Sy \&:
1913 character to distinguish them from native properties.
1914 They may contain lowercase letters, numbers, and the following punctuation
1915 characters: colon
1916 .Pq Qq Sy \&: ,
1917 dash
1918 .Pq Qq Sy - ,
1919 period
1920 .Pq Qq Sy \&. ,
1921 and underscore
1922 .Pq Qq Sy _ .
1923 The expected convention is that the property name is divided into two portions
1924 such as
1925 .Em module Ns \&: Ns Em property ,
1926 but this namespace is not enforced by ZFS.
1927 User property names can be at most 256 characters, and cannot begin with a dash
1928 .Pq Qq Sy - .
1929 .Pp
1930 When making programmatic use of user properties, it is strongly suggested to use
1931 a reversed
1932 .Sy DNS
1933 domain name for the
1934 .Em module
1935 component of property names to reduce the chance that two
1936 independently-developed packages use the same property name for different
1937 purposes.
1938 .Pp
1939 The values of user properties are arbitrary strings, are always inherited, and
1940 are never validated.
1941 All of the commands that operate on properties
1942 .Po Nm zfs Cm list ,
1943 .Nm zfs Cm get ,
1944 .Nm zfs Cm set ,
1945 and so forth
1946 .Pc
1947 can be used to manipulate both native properties and user properties.
1948 Use the
1949 .Nm zfs Cm inherit
1950 command to clear a user property.
1951 If the property is not defined in any parent dataset, it is removed entirely.
1952 Property values are limited to 8192 bytes.