3947 zpool(1M) references nonexistent zfs-features(5)
[unleashed.git] / usr / src / man / man1m / zfs.1m
blobdca47ddf9523184b1bf8c31a2461eb4735c2cffd
1 '\" t
2 .\"
3 .\" CDDL HEADER START
4 .\"
5 .\" The contents of this file are subject to the terms of the
6 .\" Common Development and Distribution License (the "License").
7 .\" You may not use this file except in compliance with the License.
8 .\"
9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 .\" or http://www.opensolaris.org/os/licensing.
11 .\" See the License for the specific language governing permissions
12 .\" and limitations under the License.
13 .\"
14 .\" When distributing Covered Code, include this CDDL HEADER in each
15 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 .\" If applicable, add the following below this CDDL HEADER, with the
17 .\" fields enclosed by brackets "[]" replaced with your own identifying
18 .\" information: Portions Copyright [yyyy] [name of copyright owner]
19 .\"
20 .\" CDDL HEADER END
21 .\"
22 .\"
23 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
24 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
25 .\" Copyright (c) 2013 by Delphix. All rights reserved.
26 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
27 .\" Copyright 2013 Nexenta Systems, Inc.  All Rights Reserved.
28 .\" Copyright (c) 2013, Joyent, Inc. All rights reserved.
29 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
30 .\"
31 .TH ZFS 1M "March 6, 2014"
32 .SH NAME
33 zfs \- configures ZFS file systems
34 .SH SYNOPSIS
35 .LP
36 .nf
37 \fBzfs\fR [\fB-?\fR]
38 .fi
40 .LP
41 .nf
42 \fBzfs\fR \fBcreate\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]... \fIfilesystem\fR
43 .fi
45 .LP
46 .nf
47 \fBzfs\fR \fBcreate\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]... \fB-V\fR \fIsize\fR \fIvolume\fR
48 .fi
50 .LP
51 .nf
52 \fBzfs\fR \fBdestroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
53 .fi
55 .LP
56 .nf
57 \fBzfs\fR \fBdestroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,\fIsnap\fR[%\fIsnap\fR]]...
58 .fi
60 .LP
61 .nf
62 \fBzfs\fR \fBdestroy\fR \fIfilesystem\fR|\fIvolume\fR#\fIbookmark\fR
63 .fi
65 .LP
66 .nf
67 \fBzfs\fR \fBsnapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
68       \fIfilesystem@snapname\fR|\fIvolume@snapname\fR...
69 .fi
71 .LP
72 .nf
73 \fBzfs\fR \fBrollback\fR [\fB-rRf\fR] \fIsnapshot\fR
74 .fi
76 .LP
77 .nf
78 \fBzfs\fR \fBclone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR
79 .fi
81 .LP
82 .nf
83 \fBzfs\fR \fBpromote\fR \fIclone-filesystem\fR
84 .fi
86 .LP
87 .nf
88 \fBzfs\fR \fBrename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
89      \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
90 .fi
92 .LP
93 .nf
94 \fBzfs\fR \fBrename\fR [\fB-fp\fR] \fIfilesystem\fR|\fIvolume\fR \fIfilesystem\fR|\fIvolume\fR
95 .fi
97 .LP
98 .nf
99 \fBzfs\fR \fBrename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR
104 \fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-Hp\fR][\fB-o\fR \fIproperty\fR[,\fIproperty\fR]...] [\fB-t\fR \fItype\fR[,\fItype\fR]...]
105      [\fB-s\fR \fIproperty\fR]... [\fB-S\fR \fIproperty\fR]... [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR]...
110 \fBzfs\fR \fBset\fR \fIproperty\fR=\fIvalue\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR...
115 \fBzfs\fR \fBget\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-Hp\fR][\fB-o\fR \fIfield\fR[,\fIfield\fR]...] [\fB-t\fR \fItype\fR[,\fItype\fR]...]
116     [\fB-s\fR \fIsource\fR[,\fIsource\fR]...] \fBall\fR | \fIproperty\fR[,\fIproperty\fR]...
117     \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR...
122 \fBzfs\fR \fBinherit\fR [\fB-r\fR] \fIproperty\fR \fIfilesystem\fR|\fIvolume|snapshot\fR...
127 \fBzfs\fR \fBupgrade\fR [\fB-v\fR]
132 \fBzfs\fR \fBupgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIfilesystem\fR
137 \fBzfs\fR \fBuserspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,\fIfield\fR]...] [\fB-s\fR \fIfield\fR]...
138     [\fB-S\fR \fIfield\fR]... [\fB-t\fR \fItype\fR[,\fItype\fR]...] \fIfilesystem\fR|\fIsnapshot\fR
143 \fBzfs\fR \fBgroupspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,\fIfield\fR]...] [\fB-s\fR \fIfield\fR]...
144     [\fB-S\fR \fIfield\fR]... [\fB-t\fR \fItype\fR[,\fItype\fR]...] \fIfilesystem\fR|\fIsnapshot\fR
149 \fBzfs\fR \fBmount\fR
154 \fBzfs\fR \fBmount\fR [\fB-vO\fR] [\fB-o \fIoptions\fR\fR] \fB-a\fR | \fIfilesystem\fR
159 \fBzfs\fR \fBunmount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR
164 \fBzfs\fR \fBshare\fR \fB-a\fR | \fIfilesystem\fR
169 \fBzfs\fR \fBunshare\fR \fB-a\fR \fIfilesystem\fR|\fImountpoint\fR
174 \fBzfs\fR \fBbookmark\fR \fIsnapshot\fR \fIbookmark\fR
179 \fBzfs\fR \fBsend\fR [\fB-DnPpRv\fR] [\fB-\fR[\fBiI\fR] \fIsnapshot\fR] \fIsnapshot\fR
184 \fBzfs\fR \fBsend\fR [\fB-i \fIsnapshot\fR|\fIbookmark\fR]\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
189 \fBzfs\fR \fBreceive\fR [\fB-vnFu\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
194 \fBzfs\fR \fBreceive\fR [\fB-vnFu\fR] [\fB-d\fR|\fB-e\fR] \fIfilesystem\fR
199 \fBzfs\fR \fBallow\fR \fIfilesystem\fR|\fIvolume\fR
204 \fBzfs\fR \fBallow\fR [\fB-ldug\fR] \fIuser\fR|\fIgroup\fR[,\fIuser\fR|\fIgroup\fR]...
205      \fIperm\fR|\fI@setname\fR[,\fIperm\fR|\fI@setname\fR]... \fIfilesystem\fR|\fIvolume\fR
210 \fBzfs\fR \fBallow\fR [\fB-ld\fR] \fB-e\fR|\fBeveryone\fR \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]...
211      \fIfilesystem\fR|\fIvolume\fR
216 \fBzfs\fR \fBallow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]... \fIfilesystem\fR|\fIvolume\fR
221 \fBzfs\fR \fBallow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]... \fIfilesystem\fR|\fIvolume\fR
226 \fBzfs\fR \fBunallow\fR [\fB-rldug\fR] \fIuser\fR|\fIgroup\fR[,\fIuser\fR|\fIgroup\fR]...
227      [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]...] \fIfilesystem\fR|\fIvolume\fR
232 \fBzfs\fR \fBunallow\fR [\fB-rld\fR] \fB-e\fR|\fBeveryone\fR [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]...]
233      \fIfilesystem\fR|\fIvolume\fR
238 \fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]...] \fIfilesystem\fR|\fIvolume\fR
243 \fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|\fI@setname\fR]...]
244      \fIfilesystem\fR|\fIvolume\fR
249 \fBzfs\fR \fBhold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
254 \fBzfs\fR \fBholds\fR [\fB-r\fR] \fIsnapshot\fR...
259 \fBzfs\fR \fBrelease\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
264 \fBzfs\fR \fBdiff\fR [\fB-FHt\fR] \fIsnapshot\fR \fIsnapshot|filesystem\fR
266 .SH DESCRIPTION
268 The \fBzfs\fR command configures \fBZFS\fR datasets within a \fBZFS\fR storage
269 pool, as described in \fBzpool\fR(1M). A dataset is identified by a unique path
270 within the \fBZFS\fR namespace. For example:
272 .in +2
274 pool/{filesystem,volume,snapshot}
276 .in -2
281 where the maximum length of a dataset name is \fBMAXNAMELEN\fR (256 bytes).
284 A dataset can be one of the following:
286 .ne 2
288 \fB\fIfile system\fR\fR
290 .sp .6
291 .RS 4n
292 A \fBZFS\fR dataset of type \fBfilesystem\fR can be mounted within the standard
293 system namespace and behaves like other file systems. While \fBZFS\fR file
294 systems are designed to be \fBPOSIX\fR compliant, known issues exist that
295 prevent compliance in some cases. Applications that depend on standards
296 conformance might fail due to nonstandard behavior when checking file system
297 free space.
301 .ne 2
303 \fB\fIvolume\fR\fR
305 .sp .6
306 .RS 4n
307 A logical volume exported as a raw or block device. This type of dataset should
308 only be used under special circumstances. File systems are typically used in
309 most environments.
313 .ne 2
315 \fB\fIsnapshot\fR\fR
317 .sp .6
318 .RS 4n
319 A read-only version of a file system or volume at a given point in time. It is
320 specified as \fIfilesystem@name\fR or \fIvolume@name\fR.
323 .SS "ZFS File System Hierarchy"
325 A \fBZFS\fR storage pool is a logical collection of devices that provide space
326 for datasets. A storage pool is also the root of the \fBZFS\fR file system
327 hierarchy.
330 The root of the pool can be accessed as a file system, such as mounting and
331 unmounting, taking snapshots, and setting properties. The physical storage
332 characteristics, however, are managed by the \fBzpool\fR(1M) command.
335 See \fBzpool\fR(1M) for more information on creating and administering pools.
336 .SS "Snapshots"
338 A snapshot is a read-only copy of a file system or volume. Snapshots can be
339 created extremely quickly, and initially consume no additional space within the
340 pool. As data within the active dataset changes, the snapshot consumes more
341 data than would otherwise be shared with the active dataset.
344 Snapshots can have arbitrary names. Snapshots of volumes can be cloned or
345 rolled back, but cannot be accessed independently.
348 File system snapshots can be accessed under the \fB\&.zfs/snapshot\fR directory
349 in the root of the file system. Snapshots are automatically mounted on demand
350 and may be unmounted at regular intervals. The visibility of the \fB\&.zfs\fR
351 directory can be controlled by the \fBsnapdir\fR property.
352 .SS "Clones"
354 A clone is a writable volume or file system whose initial contents are the same
355 as another dataset. As with snapshots, creating a clone is nearly
356 instantaneous, and initially consumes no additional space.
359 Clones can only be created from a snapshot. When a snapshot is cloned, it
360 creates an implicit dependency between the parent and child. Even though the
361 clone is created somewhere else in the dataset hierarchy, the original snapshot
362 cannot be destroyed as long as a clone exists. The \fBorigin\fR property
363 exposes this dependency, and the \fBdestroy\fR command lists any such
364 dependencies, if they exist.
367 The clone parent-child dependency relationship can be reversed by using the
368 \fBpromote\fR subcommand. This causes the "origin" file system to become a
369 clone of the specified file system, which makes it possible to destroy the file
370 system that the clone was created from.
371 .SS "Mount Points"
373 Creating a \fBZFS\fR file system is a simple operation, so the number of file
374 systems per system is likely to be numerous. To cope with this, \fBZFS\fR
375 automatically manages mounting and unmounting file systems without the need to
376 edit the \fB/etc/vfstab\fR file. All automatically managed file systems are
377 mounted by \fBZFS\fR at boot time.
380 By default, file systems are mounted under \fB/\fIpath\fR\fR, where \fIpath\fR
381 is the name of the file system in the \fBZFS\fR namespace. Directories are
382 created and destroyed as needed.
385 A file system can also have a mount point set in the \fBmountpoint\fR property.
386 This directory is created as needed, and \fBZFS\fR automatically mounts the
387 file system when the \fBzfs mount -a\fR command is invoked (without editing
388 \fB/etc/vfstab\fR). The \fBmountpoint\fR property can be inherited, so if
389 \fBpool/home\fR has a mount point of \fB/export/stuff\fR, then
390 \fBpool/home/user\fR automatically inherits a mount point of
391 \fB/export/stuff/user\fR.
394 A file system \fBmountpoint\fR property of \fBnone\fR prevents the file system
395 from being mounted.
398 If needed, \fBZFS\fR file systems can also be managed with traditional tools
399 (\fBmount\fR, \fBumount\fR, \fB/etc/vfstab\fR). If a file system's mount point
400 is set to \fBlegacy\fR, \fBZFS\fR makes no attempt to manage the file system,
401 and the administrator is responsible for mounting and unmounting the file
402 system.
403 .SS "Zones"
405 A \fBZFS\fR file system can be added to a non-global zone by using the
406 \fBzonecfg\fR \fBadd fs\fR subcommand. A \fBZFS\fR file system that is added to
407 a non-global zone must have its \fBmountpoint\fR property set to \fBlegacy\fR.
410 The physical properties of an added file system are controlled by the global
411 administrator. However, the zone administrator can create, modify, or destroy
412 files within the added file system, depending on how the file system is
413 mounted.
416 A dataset can also be delegated to a non-global zone by using the \fBzonecfg\fR
417 \fBadd dataset\fR subcommand. You cannot delegate a dataset to one zone and the
418 children of the same dataset to another zone. The zone administrator can change
419 properties of the dataset or any of its children. However, the \fBquota\fR
420 property is controlled by the global administrator.
423 A \fBZFS\fR volume can be added as a device to a non-global zone by using the
424 \fBzonecfg\fR \fBadd device\fR subcommand. However, its physical properties can
425 be modified only by the global administrator.
428 For more information about \fBzonecfg\fR syntax, see \fBzonecfg\fR(1M).
431 After a dataset is delegated to a non-global zone, the \fBzoned\fR property is
432 automatically set. A zoned file system cannot be mounted in the global zone,
433 since the zone administrator might have to set the mount point to an
434 unacceptable value.
437 The global administrator can forcibly clear the \fBzoned\fR property, though
438 this should be done with extreme care. The global administrator should verify
439 that all the mount points are acceptable before clearing the property.
440 .SS "Native Properties"
442 Properties are divided into two types, native properties and user-defined (or
443 "user") properties. Native properties either export internal statistics or
444 control \fBZFS\fR behavior. In addition, native properties are either editable
445 or read-only. User properties have no effect on \fBZFS\fR behavior, but you can
446 use them to annotate datasets in a way that is meaningful in your environment.
447 For more information about user properties, see the "User Properties" section,
448 below.
451 Every dataset has a set of properties that export statistics about the dataset
452 as well as control various behaviors. Properties are inherited from the parent
453 unless overridden by the child. Some properties apply only to certain types of
454 datasets (file systems, volumes, or snapshots).
457 The values of numeric properties can be specified using human-readable suffixes
458 (for example, \fBk\fR, \fBKB\fR, \fBM\fR, \fBGb\fR, and so forth, up to \fBZ\fR
459 for zettabyte). The following are all valid (and equal) specifications:
461 .in +2
463 1536M, 1.5g, 1.50GB
465 .in -2
470 The values of non-numeric properties are case sensitive and must be lowercase,
471 except for \fBmountpoint\fR, \fBsharenfs\fR, and \fBsharesmb\fR.
474 The following native properties consist of read-only statistics about the
475 dataset. These properties can be neither set, nor inherited. Native properties
476 apply to all dataset types unless otherwise noted.
478 .ne 2
480 \fB\fBavailable\fR\fR
482 .sp .6
483 .RS 4n
484 The amount of space available to the dataset and all its children, assuming
485 that there is no other activity in the pool. Because space is shared within a
486 pool, availability can be limited by any number of factors, including physical
487 pool size, quotas, reservations, or other datasets within the pool.
489 This property can also be referred to by its shortened column name,
490 \fBavail\fR.
494 .ne 2
496 \fB\fBcompressratio\fR\fR
498 .sp .6
499 .RS 4n
500 For non-snapshots, the compression ratio achieved for the \fBused\fR
501 space of this dataset, expressed as a multiplier.  The \fBused\fR
502 property includes descendant datasets, and, for clones, does not include
503 the space shared with the origin snapshot.  For snapshots, the
504 \fBcompressratio\fR is the same as the \fBrefcompressratio\fR property.
505 Compression can be turned on by running: \fBzfs set compression=on
506 \fIdataset\fR\fR. The default value is \fBoff\fR.
510 .ne 2
512 \fB\fBcreation\fR\fR
514 .sp .6
515 .RS 4n
516 The time this dataset was created.
520 .ne 2
522 \fB\fBclones\fR\fR
524 .sp .6
525 .RS 4n
526 For snapshots, this property is a comma-separated list of filesystems or
527 volumes which are clones of this snapshot.  The clones' \fBorigin\fR property
528 is this snapshot.  If the \fBclones\fR property is not empty, then this
529 snapshot can not be destroyed (even with the \fB-r\fR or \fB-f\fR options).
533 .ne 2
535 \fB\fBdefer_destroy\fR\fR
537 .sp .6
538 .RS 4n
539 This property is \fBon\fR if the snapshot has been marked for deferred destroy
540 by using the \fBzfs destroy\fR \fB-d\fR command. Otherwise, the property is
541 \fBoff\fR.
545 .ne 2
547 \fB\fBlogicalreferenced\fR\fR
549 .sp .6
550 .RS 4n
551 The amount of space that is "logically" accessible by this dataset.  See
552 the \fBreferenced\fR property.  The logical space ignores the effect of
553 the \fBcompression\fR and \fBcopies\fR properties, giving a quantity
554 closer to the amount of data that applications see.  However, it does
555 include space consumed by metadata.
557 This property can also be referred to by its shortened column name,
558 \fBlrefer\fR.
562 .ne 2
564 \fB\fBlogicalused\fR\fR
566 .sp .6
567 .RS 4n
568 The amount of space that is "logically" consumed by this dataset and all
569 its descendents.  See the \fBused\fR property.  The logical space
570 ignores the effect of the \fBcompression\fR and \fBcopies\fR properties,
571 giving a quantity closer to the amount of data that applications see.
572 However, it does include space consumed by metadata.
574 This property can also be referred to by its shortened column name,
575 \fBlused\fR.
579 .ne 2
581 \fB\fBmounted\fR\fR
583 .sp .6
584 .RS 4n
585 For file systems, indicates whether the file system is currently mounted. This
586 property can be either \fByes\fR or \fBno\fR.
590 .ne 2
592 \fB\fBorigin\fR\fR
594 .sp .6
595 .RS 4n
596 For cloned file systems or volumes, the snapshot from which the clone was
597 created.  See also the \fBclones\fR property.
601 .ne 2
603 \fB\fBreferenced\fR\fR
605 .sp .6
606 .RS 4n
607 The amount of data that is accessible by this dataset, which may or may not be
608 shared with other datasets in the pool. When a snapshot or clone is created, it
609 initially references the same amount of space as the file system or snapshot it
610 was created from, since its contents are identical.
612 This property can also be referred to by its shortened column name,
613 \fBrefer\fR.
617 .ne 2
619 \fB\fBrefcompressratio\fR\fR
621 .sp .6
622 .RS 4n
623 The compression ratio achieved for the \fBreferenced\fR space of this
624 dataset, expressed as a multiplier.  See also the \fBcompressratio\fR
625 property.
629 .ne 2
631 \fB\fBtype\fR\fR
633 .sp .6
634 .RS 4n
635 The type of dataset: \fBfilesystem\fR, \fBvolume\fR, or \fBsnapshot\fR.
639 .ne 2
641 \fB\fBused\fR\fR
643 .sp .6
644 .RS 4n
645 The amount of space consumed by this dataset and all its descendents. This is
646 the value that is checked against this dataset's quota and reservation. The
647 space used does not include this dataset's reservation, but does take into
648 account the reservations of any descendent datasets. The amount of space that a
649 dataset consumes from its parent, as well as the amount of space that are freed
650 if this dataset is recursively destroyed, is the greater of its space used and
651 its reservation.
653 When snapshots (see the "Snapshots" section) are created, their space is
654 initially shared between the snapshot and the file system, and possibly with
655 previous snapshots. As the file system changes, space that was previously
656 shared becomes unique to the snapshot, and counted in the snapshot's space
657 used. Additionally, deleting snapshots can increase the amount of space unique
658 to (and used by) other snapshots.
660 The amount of space used, available, or referenced does not take into account
661 pending changes. Pending changes are generally accounted for within a few
662 seconds. Committing a change to a disk using \fBfsync\fR(3c) or \fBO_SYNC\fR
663 does not necessarily guarantee that the space usage information is updated
664 immediately.
668 .ne 2
670 \fB\fBusedby*\fR\fR
672 .sp .6
673 .RS 4n
674 The \fBusedby*\fR properties decompose the \fBused\fR properties into the
675 various reasons that space is used. Specifically, \fBused\fR =
676 \fBusedbychildren\fR + \fBusedbydataset\fR + \fBusedbyrefreservation\fR +,
677 \fBusedbysnapshots\fR. These properties are only available for datasets created
678 on \fBzpool\fR "version 13" pools.
682 .ne 2
684 \fB\fBusedbychildren\fR\fR
686 .sp .6
687 .RS 4n
688 The amount of space used by children of this dataset, which would be freed if
689 all the dataset's children were destroyed.
693 .ne 2
695 \fB\fBusedbydataset\fR\fR
697 .sp .6
698 .RS 4n
699 The amount of space used by this dataset itself, which would be freed if the
700 dataset were destroyed (after first removing any \fBrefreservation\fR and
701 destroying any necessary snapshots or descendents).
705 .ne 2
707 \fB\fBusedbyrefreservation\fR\fR
709 .sp .6
710 .RS 4n
711 The amount of space used by a \fBrefreservation\fR set on this dataset, which
712 would be freed if the \fBrefreservation\fR was removed.
716 .ne 2
718 \fB\fBusedbysnapshots\fR\fR
720 .sp .6
721 .RS 4n
722 The amount of space consumed by snapshots of this dataset. In particular, it is
723 the amount of space that would be freed if all of this dataset's snapshots were
724 destroyed. Note that this is not simply the sum of the snapshots' \fBused\fR
725 properties because space can be shared by multiple snapshots.
729 .ne 2
731 \fB\fBuserused@\fR\fIuser\fR\fR
733 .sp .6
734 .RS 4n
735 The amount of space consumed by the specified user in this dataset. Space is
736 charged to the owner of each file, as displayed by \fBls\fR \fB-l\fR. The
737 amount of space charged is displayed by \fBdu\fR and \fBls\fR \fB-s\fR. See the
738 \fBzfs userspace\fR subcommand for more information.
740 Unprivileged users can access only their own space usage. The root user, or a
741 user who has been granted the \fBuserused\fR privilege with \fBzfs allow\fR,
742 can access everyone's usage.
744 The \fBuserused@\fR... properties are not displayed by \fBzfs get all\fR. The
745 user's name must be appended after the \fB@\fR symbol, using one of the
746 following forms:
747 .RS +4
749 .ie t \(bu
750 .el o
751 \fIPOSIX name\fR (for example, \fBjoe\fR)
753 .RS +4
755 .ie t \(bu
756 .el o
757 \fIPOSIX numeric ID\fR (for example, \fB789\fR)
759 .RS +4
761 .ie t \(bu
762 .el o
763 \fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
765 .RS +4
767 .ie t \(bu
768 .el o
769 \fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
774 .ne 2
776 \fB\fBuserrefs\fR\fR
778 .sp .6
779 .RS 4n
780 This property is set to the number of user holds on this snapshot. User holds
781 are set by using the \fBzfs hold\fR command.
785 .ne 2
787 \fB\fBgroupused@\fR\fIgroup\fR\fR
789 .sp .6
790 .RS 4n
791 The amount of space consumed by the specified group in this dataset. Space is
792 charged to the group of each file, as displayed by \fBls\fR \fB-l\fR. See the
793 \fBuserused@\fR\fIuser\fR property for more information.
795 Unprivileged users can only access their own groups' space usage. The root
796 user, or a user who has been granted the \fBgroupused\fR privilege with \fBzfs
797 allow\fR, can access all groups' usage.
801 .ne 2
803 \fB\fBvolblocksize\fR=\fIblocksize\fR\fR
805 .sp .6
806 .RS 4n
807 For volumes, specifies the block size of the volume. The \fBblocksize\fR cannot
808 be changed once the volume has been written, so it should be set at volume
809 creation time. The default \fBblocksize\fR for volumes is 8 Kbytes. Any power
810 of 2 from 512 bytes to 128 Kbytes is valid.
812 This property can also be referred to by its shortened column name,
813 \fBvolblock\fR.
817 .ne 2
819 \fB\fBwritten\fR\fR
821 .sp .6
822 .RS 4n
823 The amount of \fBreferenced\fR space written to this dataset since the
824 previous snapshot.
828 .ne 2
830 \fB\fBwritten@\fR\fIsnapshot\fR\fR
832 .sp .6
833 .RS 4n
834 The amount of \fBreferenced\fR space written to this dataset since the
835 specified snapshot.  This is the space that is referenced by this dataset
836 but was not referenced by the specified snapshot.
838 The \fIsnapshot\fR may be specified as a short snapshot name (just the part
839 after the \fB@\fR), in which case it will be interpreted as a snapshot in
840 the same filesystem as this dataset.
841 The \fIsnapshot\fR be a full snapshot name (\fIfilesystem\fR@\fIsnapshot\fR),
842 which for clones may be a snapshot in the origin's filesystem (or the origin
843 of the origin's filesystem, etc).
848 The following native properties can be used to change the behavior of a
849 \fBZFS\fR dataset.
851 .ne 2
853 \fB\fBaclinherit\fR=\fBdiscard\fR | \fBnoallow\fR | \fBrestricted\fR |
854 \fBpassthrough\fR | \fBpassthrough-x\fR\fR
856 .sp .6
857 .RS 4n
858 Controls how \fBACL\fR entries are inherited when files and directories are
859 created. A file system with an \fBaclinherit\fR property of \fBdiscard\fR does
860 not inherit any \fBACL\fR entries. A file system with an \fBaclinherit\fR
861 property value of \fBnoallow\fR only inherits inheritable \fBACL\fR entries
862 that specify "deny" permissions. The property value \fBrestricted\fR (the
863 default) removes the \fBwrite_acl\fR and \fBwrite_owner\fR permissions when the
864 \fBACL\fR entry is inherited. A file system with an \fBaclinherit\fR property
865 value of \fBpassthrough\fR inherits all inheritable \fBACL\fR entries without
866 any modifications made to the \fBACL\fR entries when they are inherited. A file
867 system with an \fBaclinherit\fR property value of \fBpassthrough-x\fR has the
868 same meaning as \fBpassthrough\fR, except that the \fBowner@\fR, \fBgroup@\fR,
869 and \fBeveryone@\fR \fBACE\fRs inherit the execute permission only if the file
870 creation mode also requests the execute bit.
872 When the property value is set to \fBpassthrough\fR, files are created with a
873 mode determined by the inheritable \fBACE\fRs. If no inheritable \fBACE\fRs
874 exist that affect the mode, then the mode is set in accordance to the requested
875 mode from the application.
879 .ne 2
881 \fB\fBaclmode\fR=\fBdiscard\fR | \fBgroupmask\fR | \fBpassthrough\fR\fR | \fBrestricted\fR\fR
883 .sp .6
884 .RS 4n
885 Controls how an \fBACL\fR is modified during \fBchmod\fR(2). A file system with
886 an \fBaclmode\fR property of \fBdiscard\fR (the default) deletes all \fBACL\fR
887 entries that do not represent the mode of the file. An \fBaclmode\fR property
888 of \fBgroupmask\fR reduces permissions granted in all \fBALLOW\fR entries found
889 in the \fBACL\fR such that they are no greater than the group permissions
890 specified by \fBchmod\fR(2).  A file system with an \fBaclmode\fR property of
891 \fBpassthrough\fR indicates that no changes are made to the \fBACL\fR other
892 than creating or updating the necessary \fBACL\fR entries to represent the new
893 mode of the file or directory. An \fBaclmode\fR property of \fBrestricted\fR
894 will cause the \fBchmod\fR(2) operation to return an error when used on any
895 file or directory which has a non-trivial \fBACL\fR whose entries can not be
896 represented by a mode. \fBchmod\fR(2) is required to change the set user ID,
897 set group ID, or sticky bits on a file or directory, as they do not have
898 equivalent \fBACL\fR entries. In order to use \fBchmod\fR(2) on a file or
899 directory with a non-trivial \fBACL\fR when \fBaclmode\fR is set to
900 \fBrestricted\fR, you must first remove all \fBACL\fR entries which do not
901 represent the current mode.
905 .ne 2
907 \fB\fBatime\fR=\fBon\fR | \fBoff\fR\fR
909 .sp .6
910 .RS 4n
911 Controls whether the access time for files is updated when they are read.
912 Turning this property off avoids producing write traffic when reading files and
913 can result in significant performance gains, though it might confuse mailers
914 and other similar utilities. The default value is \fBon\fR.
918 .ne 2
920 \fB\fBcanmount\fR=\fBon\fR | \fBoff\fR | \fBnoauto\fR\fR
922 .sp .6
923 .RS 4n
924 If this property is set to \fBoff\fR, the file system cannot be mounted, and is
925 ignored by \fBzfs mount -a\fR. Setting this property to \fBoff\fR is similar to
926 setting the \fBmountpoint\fR property to \fBnone\fR, except that the dataset
927 still has a normal \fBmountpoint\fR property, which can be inherited. Setting
928 this property to \fBoff\fR allows datasets to be used solely as a mechanism to
929 inherit properties. One example of setting \fBcanmount=\fR\fBoff\fR is to have
930 two datasets with the same \fBmountpoint\fR, so that the children of both
931 datasets appear in the same directory, but might have different inherited
932 characteristics.
934 When the \fBnoauto\fR option is set, a dataset can only be mounted and
935 unmounted explicitly. The dataset is not mounted automatically when the dataset
936 is created or imported, nor is it mounted by the \fBzfs mount -a\fR command or
937 unmounted by the \fBzfs unmount -a\fR command.
939 This property is not inherited.
943 .ne 2
945 \fB\fBchecksum\fR=\fBon\fR | \fBoff\fR | \fBfletcher2\fR | \fBfletcher4\fR |
946 \fBsha256\fR | \fBnoparity\fR \fR
948 .sp .6
949 .RS 4n
950 Controls the checksum used to verify data integrity. The default value is
951 \fBon\fR, which automatically selects an appropriate algorithm (currently,
952 \fBfletcher4\fR, but this may change in future releases). The value \fBoff\fR
953 disables integrity checking on user data. The value \fBnoparity\fR not only
954 disables integrity but also disables maintaining parity for user data.  This
955 setting is used internally by a dump device residing on a RAID-Z pool and should
956 not be used by any other dataset. Disabling checksums is \fBNOT\fR a recommended
957 practice.
959 Changing this property affects only newly-written data.
963 .ne 2
965 \fB\fBcompression\fR=\fBon\fR | \fBoff\fR | \fBlzjb\fR | \fBgzip\fR |
966 \fBgzip-\fR\fIN\fR | \fBzle\fR\fR | \fBlz4\fR
968 .sp .6
969 .RS 4n
970 Controls the compression algorithm used for this dataset. The \fBlzjb\fR
971 compression algorithm is optimized for performance while providing decent data
972 compression. Setting compression to \fBon\fR uses the \fBlzjb\fR compression
973 algorithm. The \fBgzip\fR compression algorithm uses the same compression as
974 the \fBgzip\fR(1) command. You can specify the \fBgzip\fR level by using the
975 value \fBgzip-\fR\fIN\fR where \fIN\fR is an integer from 1 (fastest) to 9
976 (best compression ratio). Currently, \fBgzip\fR is equivalent to \fBgzip-6\fR
977 (which is also the default for \fBgzip\fR(1)). The \fBzle\fR compression
978 algorithm compresses runs of zeros.
980 The \fBlz4\fR compression algorithm is a high-performance replacement
981 for the \fBlzjb\fR algorithm. It features significantly faster
982 compression and decompression, as well as a moderately higher
983 compression ratio than \fBlzjb\fR, but can only be used on pools with
984 the \fBlz4_compress\fR feature set to \fIenabled\fR. See
985 \fBzpool-features\fR(5) for details on ZFS feature flags and the
986 \fBlz4_compress\fR feature.
988 This property can also be referred to by its shortened column name
989 \fBcompress\fR. Changing this property affects only newly-written data.
993 .ne 2
995 \fB\fBcopies\fR=\fB1\fR | \fB2\fR | \fB3\fR\fR
997 .sp .6
998 .RS 4n
999 Controls the number of copies of data stored for this dataset. These copies are
1000 in addition to any redundancy provided by the pool, for example, mirroring or
1001 RAID-Z. The copies are stored on different disks, if possible. The space used
1002 by multiple copies is charged to the associated file and dataset, changing the
1003 \fBused\fR property and counting against quotas and reservations.
1005 Changing this property only affects newly-written data. Therefore, set this
1006 property at file system creation time by using the \fB-o\fR
1007 \fBcopies=\fR\fIN\fR option.
1011 .ne 2
1013 \fB\fBdevices\fR=\fBon\fR | \fBoff\fR\fR
1015 .sp .6
1016 .RS 4n
1017 Controls whether device nodes can be opened on this file system. The default
1018 value is \fBon\fR.
1022 .ne 2
1024 \fB\fBexec\fR=\fBon\fR | \fBoff\fR\fR
1026 .sp .6
1027 .RS 4n
1028 Controls whether processes can be executed from within this file system. The
1029 default value is \fBon\fR.
1033 .ne 2
1035 \fB\fBmountpoint\fR=\fIpath\fR | \fBnone\fR | \fBlegacy\fR\fR
1037 .sp .6
1038 .RS 4n
1039 Controls the mount point used for this file system. See the "Mount Points"
1040 section for more information on how this property is used.
1042 When the \fBmountpoint\fR property is changed for a file system, the file
1043 system and any children that inherit the mount point are unmounted. If the new
1044 value is \fBlegacy\fR, then they remain unmounted. Otherwise, they are
1045 automatically remounted in the new location if the property was previously
1046 \fBlegacy\fR or \fBnone\fR, or if they were mounted before the property was
1047 changed. In addition, any shared file systems are unshared and shared in the
1048 new location.
1052 .ne 2
1054 \fB\fBnbmand\fR=\fBon\fR | \fBoff\fR\fR
1056 .sp .6
1057 .RS 4n
1058 Controls whether the file system should be mounted with \fBnbmand\fR (Non
1059 Blocking mandatory locks). This is used for \fBCIFS\fR clients. Changes to this
1060 property only take effect when the file system is umounted and remounted. See
1061 \fBmount\fR(1M) for more information on \fBnbmand\fR mounts.
1065 .ne 2
1067 \fB\fBprimarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
1069 .sp .6
1070 .RS 4n
1071 Controls what is cached in the primary cache (ARC). If this property is set to
1072 \fBall\fR, then both user data and metadata is cached. If this property is set
1073 to \fBnone\fR, then neither user data nor metadata is cached. If this property
1074 is set to \fBmetadata\fR, then only metadata is cached. The default value is
1075 \fBall\fR.
1079 .ne 2
1081 \fB\fBquota\fR=\fIsize\fR | \fBnone\fR\fR
1083 .sp .6
1084 .RS 4n
1085 Limits the amount of space a dataset and its descendents can consume. This
1086 property enforces a hard limit on the amount of space used. This includes all
1087 space consumed by descendents, including file systems and snapshots. Setting a
1088 quota on a descendent of a dataset that already has a quota does not override
1089 the ancestor's quota, but rather imposes an additional limit.
1091 Quotas cannot be set on volumes, as the \fBvolsize\fR property acts as an
1092 implicit quota.
1096 .ne 2
1098 \fB\fBuserquota@\fR\fIuser\fR=\fIsize\fR | \fBnone\fR\fR
1100 .sp .6
1101 .RS 4n
1102 Limits the amount of space consumed by the specified user. User space
1103 consumption is identified by the \fBuserspace@\fR\fIuser\fR property.
1105 Enforcement of user quotas may be delayed by several seconds. This delay means
1106 that a user might exceed their quota before the system notices that they are
1107 over quota and begins to refuse additional writes with the \fBEDQUOT\fR error
1108 message . See the \fBzfs userspace\fR subcommand for more information.
1110 Unprivileged users can only access their own groups' space usage. The root
1111 user, or a user who has been granted the \fBuserquota\fR privilege with \fBzfs
1112 allow\fR, can get and set everyone's quota.
1114 This property is not available on volumes, on file systems before version 4, or
1115 on pools before version 15. The \fBuserquota@\fR... properties are not
1116 displayed by \fBzfs get all\fR. The user's name must be appended after the
1117 \fB@\fR symbol, using one of the following forms:
1118 .RS +4
1120 .ie t \(bu
1121 .el o
1122 \fIPOSIX name\fR (for example, \fBjoe\fR)
1124 .RS +4
1126 .ie t \(bu
1127 .el o
1128 \fIPOSIX numeric ID\fR (for example, \fB789\fR)
1130 .RS +4
1132 .ie t \(bu
1133 .el o
1134 \fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
1136 .RS +4
1138 .ie t \(bu
1139 .el o
1140 \fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
1145 .ne 2
1147 \fB\fBgroupquota@\fR\fIgroup\fR=\fIsize\fR | \fBnone\fR\fR
1149 .sp .6
1150 .RS 4n
1151 Limits the amount of space consumed by the specified group. Group space
1152 consumption is identified by the \fBuserquota@\fR\fIuser\fR property.
1154 Unprivileged users can access only their own groups' space usage. The root
1155 user, or a user who has been granted the \fBgroupquota\fR privilege with \fBzfs
1156 allow\fR, can get and set all groups' quotas.
1160 .ne 2
1162 \fB\fBreadonly\fR=\fBon\fR | \fBoff\fR\fR
1164 .sp .6
1165 .RS 4n
1166 Controls whether this dataset can be modified. The default value is \fBoff\fR.
1168 This property can also be referred to by its shortened column name,
1169 \fBrdonly\fR.
1173 .ne 2
1175 \fB\fBrecordsize\fR=\fIsize\fR\fR
1177 .sp .6
1178 .RS 4n
1179 Specifies a suggested block size for files in the file system. This property is
1180 designed solely for use with database workloads that access files in fixed-size
1181 records. \fBZFS\fR automatically tunes block sizes according to internal
1182 algorithms optimized for typical access patterns.
1184 For databases that create very large files but access them in small random
1185 chunks, these algorithms may be suboptimal. Specifying a \fBrecordsize\fR
1186 greater than or equal to the record size of the database can result in
1187 significant performance gains. Use of this property for general purpose file
1188 systems is strongly discouraged, and may adversely affect performance.
1190 The size specified must be a power of two greater than or equal to 512 and less
1191 than or equal to 128 Kbytes.
1193 Changing the file system's \fBrecordsize\fR affects only files created
1194 afterward; existing files are unaffected.
1196 This property can also be referred to by its shortened column name,
1197 \fBrecsize\fR.
1201 .ne 2
1203 \fB\fBrefquota\fR=\fIsize\fR | \fBnone\fR\fR
1205 .sp .6
1206 .RS 4n
1207 Limits the amount of space a dataset can consume. This property enforces a hard
1208 limit on the amount of space used. This hard limit does not include space used
1209 by descendents, including file systems and snapshots.
1213 .ne 2
1215 \fB\fBrefreservation\fR=\fIsize\fR | \fBnone\fR\fR
1217 .sp .6
1218 .RS 4n
1219 The minimum amount of space guaranteed to a dataset, not including its
1220 descendents. When the amount of space used is below this value, the dataset is
1221 treated as if it were taking up the amount of space specified by
1222 \fBrefreservation\fR. The \fBrefreservation\fR reservation is accounted for in
1223 the parent datasets' space used, and counts against the parent datasets' quotas
1224 and reservations.
1226 If \fBrefreservation\fR is set, a snapshot is only allowed if there is enough
1227 free pool space outside of this reservation to accommodate the current number
1228 of "referenced" bytes in the dataset.
1230 This property can also be referred to by its shortened column name,
1231 \fBrefreserv\fR.
1235 .ne 2
1237 \fB\fBreservation\fR=\fIsize\fR | \fBnone\fR\fR
1239 .sp .6
1240 .RS 4n
1241 The minimum amount of space guaranteed to a dataset and its descendents. When
1242 the amount of space used is below this value, the dataset is treated as if it
1243 were taking up the amount of space specified by its reservation. Reservations
1244 are accounted for in the parent datasets' space used, and count against the
1245 parent datasets' quotas and reservations.
1247 This property can also be referred to by its shortened column name,
1248 \fBreserv\fR.
1252 .ne 2
1254 \fB\fBsecondarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
1256 .sp .6
1257 .RS 4n
1258 Controls what is cached in the secondary cache (L2ARC). If this property is set
1259 to \fBall\fR, then both user data and metadata is cached. If this property is
1260 set to \fBnone\fR, then neither user data nor metadata is cached. If this
1261 property is set to \fBmetadata\fR, then only metadata is cached. The default
1262 value is \fBall\fR.
1266 .ne 2
1268 \fB\fBsetuid\fR=\fBon\fR | \fBoff\fR\fR
1270 .sp .6
1271 .RS 4n
1272 Controls whether the set-\fBUID\fR bit is respected for the file system. The
1273 default value is \fBon\fR.
1277 .ne 2
1279 \fB\fBshareiscsi\fR=\fBon\fR | \fBoff\fR\fR
1281 .sp .6
1282 .RS 4n
1283 Like the \fBsharenfs\fR property, \fBshareiscsi\fR indicates whether a
1284 \fBZFS\fR volume is exported as an \fBiSCSI\fR target. The acceptable values
1285 for this property are \fBon\fR, \fBoff\fR, and \fBtype=disk\fR. The default
1286 value is \fBoff\fR. In the future, other target types might be supported. For
1287 example, \fBtape\fR.
1289 You might want to set \fBshareiscsi=on\fR for a file system so that all
1290 \fBZFS\fR volumes within the file system are shared by default. However,
1291 setting this property on a file system has no direct effect.
1295 .ne 2
1297 \fB\fBsharesmb\fR=\fBon\fR | \fBoff\fR | \fIopts\fR\fR
1299 .sp .6
1300 .RS 4n
1301 Controls whether the file system is shared by using the Solaris \fBCIFS\fR
1302 service, and what options are to be used. A file system with the \fBsharesmb\fR
1303 property set to \fBoff\fR is managed through traditional tools such as
1304 \fBsharemgr\fR(1M). Otherwise, the file system is automatically shared and
1305 unshared with the \fBzfs share\fR and \fBzfs unshare\fR commands. If the
1306 property is set to \fBon\fR, the \fBsharemgr\fR(1M) command is invoked with no
1307 options. Otherwise, the \fBsharemgr\fR(1M) command is invoked with options
1308 equivalent to the contents of this property.
1310 Because \fBSMB\fR shares requires a resource name, a unique resource name is
1311 constructed from the dataset name. The constructed name is a copy of the
1312 dataset name except that the characters in the dataset name, which would be
1313 illegal in the resource name, are replaced with underscore (\fB_\fR)
1314 characters. A pseudo property "name" is also supported that allows you to
1315 replace the data set name with a specified name. The specified name is then
1316 used to replace the prefix dataset in the case of inheritance. For example, if
1317 the dataset \fBdata/home/john\fR is set to \fBname=john\fR, then
1318 \fBdata/home/john\fR has a resource name of \fBjohn\fR. If a child dataset of
1319 \fBdata/home/john/backups\fR, it has a resource name of \fBjohn_backups\fR.
1321 When SMB shares are created, the SMB share name appears as an entry in the
1322 \fB\&.zfs/shares\fR directory. You can use the \fBls\fR or \fBchmod\fR command
1323 to display the share-level ACLs on the entries in this directory.
1325 When the \fBsharesmb\fR property is changed for a dataset, the dataset and any
1326 children inheriting the property are re-shared with the new options, only if
1327 the property was previously set to \fBoff\fR, or if they were shared before the
1328 property was changed. If the new property is set to \fBoff\fR, the file systems
1329 are unshared.
1333 .ne 2
1335 \fB\fBsharenfs\fR=\fBon\fR | \fBoff\fR | \fIopts\fR\fR
1337 .sp .6
1338 .RS 4n
1339 Controls whether the file system is shared via \fBNFS\fR, and what options are
1340 used. A file system with a \fBsharenfs\fR property of \fBoff\fR is managed
1341 through traditional tools such as \fBshare\fR(1M), \fBunshare\fR(1M), and
1342 \fBdfstab\fR(4). Otherwise, the file system is automatically shared and
1343 unshared with the \fBzfs share\fR and \fBzfs unshare\fR commands. If the
1344 property is set to \fBon\fR, the \fBshare\fR(1M) command is invoked with no
1345 options. Otherwise, the \fBshare\fR(1M) command is invoked with options
1346 equivalent to the contents of this property.
1348 When the \fBsharenfs\fR property is changed for a dataset, the dataset and any
1349 children inheriting the property are re-shared with the new options, only if
1350 the property was previously \fBoff\fR, or if they were shared before the
1351 property was changed. If the new property is \fBoff\fR, the file systems are
1352 unshared.
1356 .ne 2
1358 \fB\fBlogbias\fR = \fBlatency\fR | \fBthroughput\fR\fR
1360 .sp .6
1361 .RS 4n
1362 Provide a hint to ZFS about handling of synchronous requests in this dataset.
1363 If \fBlogbias\fR is set to \fBlatency\fR (the default), ZFS will use pool log
1364 devices (if configured) to handle the requests at low latency. If \fBlogbias\fR
1365 is set to \fBthroughput\fR, ZFS will not use configured pool log devices. ZFS
1366 will instead optimize synchronous operations for global pool throughput and
1367 efficient use of resources.
1371 .ne 2
1373 \fB\fBsnapdir\fR=\fBhidden\fR | \fBvisible\fR\fR
1375 .sp .6
1376 .RS 4n
1377 Controls whether the \fB\&.zfs\fR directory is hidden or visible in the root of
1378 the file system as discussed in the "Snapshots" section. The default value is
1379 \fBhidden\fR.
1383 .ne 2
1385 \fB\fBsync\fR=\fBstandard\fR | \fBalways\fR | \fBdisabled\fR\fR
1387 .sp .6
1388 .RS 4n
1389 Controls the behavior of synchronous requests (e.g. fsync, O_DSYNC).
1390 \fBstandard\fR is the POSIX specified behavior of ensuring all synchronous
1391 requests are written to stable storage and all devices are flushed to ensure
1392 data is not cached by device controllers (this is the default). \fBalways\fR
1393 causes every file system transaction to be written and flushed before its
1394 system call returns. This has a large performance penalty. \fBdisabled\fR
1395 disables synchronous requests. File system transactions are only committed to
1396 stable storage periodically. This option will give the highest performance.
1397 However, it is very dangerous as ZFS would be ignoring the synchronous
1398 transaction demands of applications such as databases or NFS.  Administrators
1399 should only use this option when the risks are understood.
1403 .ne 2
1405 \fB\fBversion\fR=\fB1\fR | \fB2\fR | \fBcurrent\fR\fR
1407 .sp .6
1408 .RS 4n
1409 The on-disk version of this file system, which is independent of the pool
1410 version. This property can only be set to later supported versions. See the
1411 \fBzfs upgrade\fR command.
1415 .ne 2
1417 \fB\fBvolsize\fR=\fIsize\fR\fR
1419 .sp .6
1420 .RS 4n
1421 For volumes, specifies the logical size of the volume. By default, creating a
1422 volume establishes a reservation of equal size. For storage pools with a
1423 version number of 9 or higher, a \fBrefreservation\fR is set instead. Any
1424 changes to \fBvolsize\fR are reflected in an equivalent change to the
1425 reservation (or \fBrefreservation\fR). The \fBvolsize\fR can only be set to a
1426 multiple of \fBvolblocksize\fR, and cannot be zero.
1428 The reservation is kept equal to the volume's logical size to prevent
1429 unexpected behavior for consumers. Without the reservation, the volume could
1430 run out of space, resulting in undefined behavior or data corruption, depending
1431 on how the volume is used. These effects can also occur when the volume size is
1432 changed while it is in use (particularly when shrinking the size). Extreme care
1433 should be used when adjusting the volume size.
1435 Though not recommended, a "sparse volume" (also known as "thin provisioning")
1436 can be created by specifying the \fB-s\fR option to the \fBzfs create -V\fR
1437 command, or by changing the reservation after the volume has been created. A
1438 "sparse volume" is a volume where the reservation is less then the volume size.
1439 Consequently, writes to a sparse volume can fail with \fBENOSPC\fR when the
1440 pool is low on space. For a sparse volume, changes to \fBvolsize\fR are not
1441 reflected in the reservation.
1445 .ne 2
1447 \fB\fBvscan\fR=\fBon\fR | \fBoff\fR\fR
1449 .sp .6
1450 .RS 4n
1451 Controls whether regular files should be scanned for viruses when a file is
1452 opened and closed. In addition to enabling this property, the virus scan
1453 service must also be enabled for virus scanning to occur. The default value is
1454 \fBoff\fR.
1458 .ne 2
1460 \fB\fBxattr\fR=\fBon\fR | \fBoff\fR\fR
1462 .sp .6
1463 .RS 4n
1464 Controls whether extended attributes are enabled for this file system. The
1465 default value is \fBon\fR.
1469 .ne 2
1471 \fB\fBzoned\fR=\fBon\fR | \fBoff\fR\fR
1473 .sp .6
1474 .RS 4n
1475 Controls whether the dataset is managed from a non-global zone. See the "Zones"
1476 section for more information. The default value is \fBoff\fR.
1481 The following three properties cannot be changed after the file system is
1482 created, and therefore, should be set when the file system is created. If the
1483 properties are not set with the \fBzfs create\fR or \fBzpool create\fR
1484 commands, these properties are inherited from the parent dataset. If the parent
1485 dataset lacks these properties due to having been created prior to these
1486 features being supported, the new file system will have the default values for
1487 these properties.
1489 .ne 2
1491 \fB\fBcasesensitivity\fR=\fBsensitive\fR | \fBinsensitive\fR | \fBmixed\fR\fR
1493 .sp .6
1494 .RS 4n
1495 Indicates whether the file name matching algorithm used by the file system
1496 should be case-sensitive, case-insensitive, or allow a combination of both
1497 styles of matching. The default value for the \fBcasesensitivity\fR property is
1498 \fBsensitive\fR. Traditionally, UNIX and POSIX file systems have case-sensitive
1499 file names.
1501 The \fBmixed\fR value for the \fBcasesensitivity\fR property indicates that the
1502 file system can support requests for both case-sensitive and case-insensitive
1503 matching behavior. Currently, case-insensitive matching behavior on a file
1504 system that supports mixed behavior is limited to the Solaris CIFS server
1505 product. For more information about the \fBmixed\fR value behavior, see the
1506 \fISolaris ZFS Administration Guide\fR.
1510 .ne 2
1512 \fB\fBnormalization\fR = \fBnone\fR | \fBformC\fR | \fBformD\fR | \fBformKC\fR
1513 | \fBformKD\fR\fR
1515 .sp .6
1516 .RS 4n
1517 Indicates whether the file system should perform a \fBunicode\fR normalization
1518 of file names whenever two file names are compared, and which normalization
1519 algorithm should be used. File names are always stored unmodified, names are
1520 normalized as part of any comparison process. If this property is set to a
1521 legal value other than \fBnone\fR, and the \fButf8only\fR property was left
1522 unspecified, the \fButf8only\fR property is automatically set to \fBon\fR. The
1523 default value of the \fBnormalization\fR property is \fBnone\fR. This property
1524 cannot be changed after the file system is created.
1528 .ne 2
1530 \fB\fButf8only\fR=\fBon\fR | \fBoff\fR\fR
1532 .sp .6
1533 .RS 4n
1534 Indicates whether the file system should reject file names that include
1535 characters that are not present in the \fBUTF-8\fR character code set. If this
1536 property is explicitly set to \fBoff\fR, the normalization property must either
1537 not be explicitly set or be set to \fBnone\fR. The default value for the
1538 \fButf8only\fR property is \fBoff\fR. This property cannot be changed after the
1539 file system is created.
1544 The \fBcasesensitivity\fR, \fBnormalization\fR, and \fButf8only\fR properties
1545 are also new permissions that can be assigned to non-privileged users by using
1546 the \fBZFS\fR delegated administration feature.
1547 .SS "Temporary Mount Point Properties"
1549 When a file system is mounted, either through \fBmount\fR(1M) for legacy mounts
1550 or the \fBzfs mount\fR command for normal file systems, its mount options are
1551 set according to its properties. The correlation between properties and mount
1552 options is as follows:
1554 .in +2
1556     PROPERTY                MOUNT OPTION
1557      devices                 devices/nodevices
1558      exec                    exec/noexec
1559      readonly                ro/rw
1560      setuid                  setuid/nosetuid
1561      xattr                   xattr/noxattr
1563 .in -2
1568 In addition, these options can be set on a per-mount basis using the \fB-o\fR
1569 option, without affecting the property that is stored on disk. The values
1570 specified on the command line override the values stored in the dataset. The
1571 \fB-nosuid\fR option is an alias for \fBnodevices,nosetuid\fR. These properties
1572 are reported as "temporary" by the \fBzfs get\fR command. If the properties are
1573 changed while the dataset is mounted, the new setting overrides any temporary
1574 settings.
1575 .SS "User Properties"
1577 In addition to the standard native properties, \fBZFS\fR supports arbitrary
1578 user properties. User properties have no effect on \fBZFS\fR behavior, but
1579 applications or administrators can use them to annotate datasets (file systems,
1580 volumes, and snapshots).
1583 User property names must contain a colon (\fB:\fR) character to distinguish
1584 them from native properties. They may contain lowercase letters, numbers, and
1585 the following punctuation characters: colon (\fB:\fR), dash (\fB-\fR), period
1586 (\fB\&.\fR), and underscore (\fB_\fR). The expected convention is that the
1587 property name is divided into two portions such as
1588 \fImodule\fR\fB:\fR\fIproperty\fR, but this namespace is not enforced by
1589 \fBZFS\fR. User property names can be at most 256 characters, and cannot begin
1590 with a dash (\fB-\fR).
1593 When making programmatic use of user properties, it is strongly suggested to
1594 use a reversed \fBDNS\fR domain name for the \fImodule\fR component of property
1595 names to reduce the chance that two independently-developed packages use the
1596 same property name for different purposes. Property names beginning with
1597 \fBcom.sun\fR. are reserved for use by Sun Microsystems.
1600 The values of user properties are arbitrary strings, are always inherited, and
1601 are never validated. All of the commands that operate on properties (\fBzfs
1602 list\fR, \fBzfs get\fR, \fBzfs set\fR, and so forth) can be used to manipulate
1603 both native properties and user properties. Use the \fBzfs inherit\fR command
1604 to clear a user property . If the property is not defined in any parent
1605 dataset, it is removed entirely. Property values are limited to 1024
1606 characters.
1607 .SS "ZFS Volumes as Swap or Dump Devices"
1609 During an initial installation a swap device and dump device are created on
1610 \fBZFS\fR volumes in the \fBZFS\fR root pool. By default, the swap area size is
1611 based on 1/2 the size of physical memory up to 2 Gbytes. The size of the dump
1612 device depends on the kernel's requirements at installation time. Separate
1613 \fBZFS\fR volumes must be used for the swap area and dump devices. Do not swap
1614 to a file on a \fBZFS\fR file system. A \fBZFS\fR swap file configuration is
1615 not supported.
1618 If you need to change your swap area or dump device after the system is
1619 installed or upgraded, use the \fBswap\fR(1M) and \fBdumpadm\fR(1M) commands.
1620 If you need to change the size of your swap area or dump device, see the
1621 \fISolaris ZFS Administration Guide\fR.
1622 .SH SUBCOMMANDS
1624 All subcommands that modify state are logged persistently to the pool in their
1625 original form.
1627 .ne 2
1629 \fB\fBzfs ?\fR\fR
1631 .sp .6
1632 .RS 4n
1633 Displays a help message.
1637 .ne 2
1639 \fB\fBzfs create\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
1640 \fIfilesystem\fR\fR
1642 .sp .6
1643 .RS 4n
1644 Creates a new \fBZFS\fR file system. The file system is automatically mounted
1645 according to the \fBmountpoint\fR property inherited from the parent.
1647 .ne 2
1649 \fB\fB-p\fR\fR
1651 .sp .6
1652 .RS 4n
1653 Creates all the non-existing parent datasets. Datasets created in this manner
1654 are automatically mounted according to the \fBmountpoint\fR property inherited
1655 from their parent. Any property specified on the command line using the
1656 \fB-o\fR option is ignored. If the target filesystem already exists, the
1657 operation completes successfully.
1661 .ne 2
1663 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1665 .sp .6
1666 .RS 4n
1667 Sets the specified property as if the command \fBzfs set\fR
1668 \fIproperty\fR=\fIvalue\fR was invoked at the same time the dataset was
1669 created. Any editable \fBZFS\fR property can also be set at creation time.
1670 Multiple \fB-o\fR options can be specified. An error results if the same
1671 property is specified in multiple \fB-o\fR options.
1677 .ne 2
1679 \fB\fBzfs create\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR
1680 \fIproperty\fR=\fIvalue\fR]... \fB-V\fR \fIsize\fR \fIvolume\fR\fR
1682 .sp .6
1683 .RS 4n
1684 Creates a volume of the given size. The volume is exported as a block device in
1685 \fB/dev/zvol/{dsk,rdsk}/\fR\fIpath\fR, where \fIpath\fR is the name of the
1686 volume in the \fBZFS\fR namespace. The size represents the logical size as
1687 exported by the device. By default, a reservation of equal size is created.
1689 \fIsize\fR is automatically rounded up to the nearest 128 Kbytes to ensure that
1690 the volume has an integral number of blocks regardless of \fIblocksize\fR.
1692 .ne 2
1694 \fB\fB-p\fR\fR
1696 .sp .6
1697 .RS 4n
1698 Creates all the non-existing parent datasets. Datasets created in this manner
1699 are automatically mounted according to the \fBmountpoint\fR property inherited
1700 from their parent. Any property specified on the command line using the
1701 \fB-o\fR option is ignored. If the target filesystem already exists, the
1702 operation completes successfully.
1706 .ne 2
1708 \fB\fB-s\fR\fR
1710 .sp .6
1711 .RS 4n
1712 Creates a sparse volume with no reservation. See \fBvolsize\fR in the Native
1713 Properties section for more information about sparse volumes.
1717 .ne 2
1719 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1721 .sp .6
1722 .RS 4n
1723 Sets the specified property as if the \fBzfs set\fR \fIproperty\fR=\fIvalue\fR
1724 command was invoked at the same time the dataset was created. Any editable
1725 \fBZFS\fR property can also be set at creation time. Multiple \fB-o\fR options
1726 can be specified. An error results if the same property is specified in
1727 multiple \fB-o\fR options.
1731 .ne 2
1733 \fB\fB-b\fR \fIblocksize\fR\fR
1735 .sp .6
1736 .RS 4n
1737 Equivalent to \fB-o\fR \fBvolblocksize\fR=\fIblocksize\fR. If this option is
1738 specified in conjunction with \fB-o\fR \fBvolblocksize\fR, the resulting
1739 behavior is undefined.
1745 .ne 2
1747 \fBzfs destroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
1749 .sp .6
1750 .RS 4n
1751 Destroys the given dataset. By default, the command unshares any file systems
1752 that are currently shared, unmounts any file systems that are currently
1753 mounted, and refuses to destroy a dataset that has active dependents (children
1754 or clones).
1756 .ne 2
1758 \fB\fB-r\fR\fR
1760 .sp .6
1761 .RS 4n
1762 Recursively destroy all children.
1766 .ne 2
1768 \fB\fB-R\fR\fR
1770 .sp .6
1771 .RS 4n
1772 Recursively destroy all dependents, including cloned file systems outside the
1773 target hierarchy.
1777 .ne 2
1779 \fB\fB-f\fR\fR
1781 .sp .6
1782 .RS 4n
1783 Force an unmount of any file systems using the \fBunmount -f\fR command. This
1784 option has no effect on non-file systems or unmounted file systems.
1788 .ne 2
1790 \fB\fB-n\fR\fR
1792 .sp .6
1793 .RS 4n
1794 Do a dry-run ("No-op") deletion.  No data will be deleted.  This is
1795 useful in conjunction with the \fB-v\fR or \fB-p\fR flags to determine what
1796 data would be deleted.
1800 .ne 2
1802 \fB\fB-p\fR\fR
1804 .sp .6
1805 .RS 4n
1806 Print machine-parsable verbose information about the deleted data.
1810 .ne 2
1812 \fB\fB-v\fR\fR
1814 .sp .6
1815 .RS 4n
1816 Print verbose information about the deleted data.
1819 Extreme care should be taken when applying either the \fB-r\fR or the \fB-R\fR
1820 options, as they can destroy large portions of a pool and cause unexpected
1821 behavior for mounted file systems in use.
1825 .ne 2
1827 \fBzfs destroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,\fIsnap\fR[%\fIsnap\fR]]...
1829 .sp .6
1830 .RS 4n
1831 The given snapshots are destroyed immediately if and only if the \fBzfs
1832 destroy\fR command without the \fB-d\fR option would have destroyed it. Such
1833 immediate destruction would occur, for example, if the snapshot had no clones
1834 and the user-initiated reference count were zero.
1836 If a snapshot does not qualify for immediate destruction, it is marked for
1837 deferred deletion. In this state, it exists as a usable, visible snapshot until
1838 both of the preconditions listed above are met, at which point it is destroyed.
1840 An inclusive range of snapshots may be specified by separating the
1841 first and last snapshots with a percent sign.
1842 The first and/or last snapshots may be left blank, in which case the
1843 filesystem's oldest or newest snapshot will be implied.
1845 Multiple snapshots
1846 (or ranges of snapshots) of the same filesystem or volume may be specified
1847 in a comma-separated list of snapshots.
1848 Only the snapshot's short name (the
1849 part after the \fB@\fR) should be specified when using a range or
1850 comma-separated list to identify multiple snapshots.
1852 .ne 2
1854 \fB\fB-d\fR\fR
1856 .sp .6
1857 .RS 4n
1858 Defer snapshot deletion.
1862 .ne 2
1864 \fB\fB-r\fR\fR
1866 .sp .6
1867 .RS 4n
1868 Destroy (or mark for deferred deletion) all snapshots with this name in
1869 descendent file systems.
1873 .ne 2
1875 \fB\fB-R\fR\fR
1877 .sp .6
1878 .RS 4n
1879 Recursively destroy all clones of these snapshots, including the clones,
1880 snapshots, and children.  If this flag is specified, the \fB-d\fR flag will
1881 have no effect.
1885 .ne 2
1887 \fB\fB-n\fR\fR
1889 .sp .6
1890 .RS 4n
1891 Do a dry-run ("No-op") deletion.  No data will be deleted.  This is
1892 useful in conjunction with the \fB-v\fR or \fB-p\fR flags to determine what
1893 data would be deleted.
1897 .ne 2
1899 \fB\fB-p\fR\fR
1901 .sp .6
1902 .RS 4n
1903 Print machine-parsable verbose information about the deleted data.
1907 .ne 2
1909 \fB\fB-v\fR\fR
1911 .sp .6
1912 .RS 4n
1913 Print verbose information about the deleted data.
1917 Extreme care should be taken when applying either the \fB-r\fR or the \fB-R\fR
1918 options, as they can destroy large portions of a pool and cause unexpected
1919 behavior for mounted file systems in use.
1923 .ne 2
1925 \fBzfs destroy\fR \fIfilesystem\fR|\fIvolume\fR#\fIbookmark\fR
1927 .sp .6
1928 .RS 4n
1929 The given bookmark is destroyed.
1934 .ne 2
1936 \fB\fBzfs snapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
1937 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR\fR...
1939 .sp .6
1940 .RS 4n
1941 Creates snapshots with the given names. All previous modifications by
1942 successful system calls to the file system are part of the snapshots.
1943 Snapshots are taken atomically, so that all snapshots correspond to the same
1944 moment in time. See the "Snapshots" section for details.
1946 .ne 2
1948 \fB\fB-r\fR\fR
1950 .sp .6
1951 .RS 4n
1952 Recursively create snapshots of all descendent datasets
1956 .ne 2
1958 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1960 .sp .6
1961 .RS 4n
1962 Sets the specified property; see \fBzfs create\fR for details.
1968 .ne 2
1970 \fB\fBzfs rollback\fR [\fB-rRf\fR] \fIsnapshot\fR\fR
1972 .sp .6
1973 .RS 4n
1974 Roll back the given dataset to a previous snapshot. When a dataset is rolled
1975 back, all data that has changed since the snapshot is discarded, and the
1976 dataset reverts to the state at the time of the snapshot. By default, the
1977 command refuses to roll back to a snapshot other than the most recent one. In
1978 order to do so, all intermediate snapshots and bookmarks must be destroyed
1979 by specifying the \fB-r\fR option.
1981 The \fB-rR\fR options do not recursively destroy the child snapshots of a
1982 recursive snapshot. Only direct snapshots of the specified filesystem
1983 are destroyed by either of these options. To completely roll back a
1984 recursive snapshot, you must rollback the individual child snapshots.
1986 .ne 2
1988 \fB\fB-r\fR\fR
1990 .sp .6
1991 .RS 4n
1992 Destroy any snapshots and bookmarks more recent than the one specified.
1996 .ne 2
1998 \fB\fB-R\fR\fR
2000 .sp .6
2001 .RS 4n
2002 Destroy any more recent snapshots and bookmarks, as well as any clones of those
2003 snapshots.
2007 .ne 2
2009 \fB\fB-f\fR\fR
2011 .sp .6
2012 .RS 4n
2013 Used with the \fB-R\fR option to force an unmount of any clone file systems
2014 that are to be destroyed.
2020 .ne 2
2022 \fB\fBzfs clone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
2023 \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR\fR
2025 .sp .6
2026 .RS 4n
2027 Creates a clone of the given snapshot. See the "Clones" section for details.
2028 The target dataset can be located anywhere in the \fBZFS\fR hierarchy, and is
2029 created as the same type as the original.
2031 .ne 2
2033 \fB\fB-p\fR\fR
2035 .sp .6
2036 .RS 4n
2037 Creates all the non-existing parent datasets. Datasets created in this manner
2038 are automatically mounted according to the \fBmountpoint\fR property inherited
2039 from their parent. If the target filesystem or volume already exists, the
2040 operation completes successfully.
2044 .ne 2
2046 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
2048 .sp .6
2049 .RS 4n
2050 Sets the specified property; see \fBzfs create\fR for details.
2056 .ne 2
2058 \fB\fBzfs promote\fR \fIclone-filesystem\fR\fR
2060 .sp .6
2061 .RS 4n
2062 Promotes a clone file system to no longer be dependent on its "origin"
2063 snapshot. This makes it possible to destroy the file system that the clone was
2064 created from. The clone parent-child dependency relationship is reversed, so
2065 that the origin file system becomes a clone of the specified file system.
2067 The snapshot that was cloned, and any snapshots previous to this snapshot, are
2068 now owned by the promoted clone. The space they use moves from the origin file
2069 system to the promoted clone, so enough space must be available to accommodate
2070 these snapshots. No new space is consumed by this operation, but the space
2071 accounting is adjusted. The promoted clone must not have any conflicting
2072 snapshot names of its own. The \fBrename\fR subcommand can be used to rename
2073 any conflicting snapshots.
2077 .ne 2
2079 \fB\fBzfs rename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2083 \fB\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2087 \fB\fBzfs rename\fR [\fB-fp\fR] \fIfilesystem\fR|\fIvolume\fR
2088 \fIfilesystem\fR|\fIvolume\fR\fR
2090 .sp .6
2091 .RS 4n
2092 Renames the given dataset. The new target can be located anywhere in the
2093 \fBZFS\fR hierarchy, with the exception of snapshots. Snapshots can only be
2094 renamed within the parent file system or volume. When renaming a snapshot, the
2095 parent file system of the snapshot does not need to be specified as part of the
2096 second argument. Renamed file systems can inherit new mount points, in which
2097 case they are unmounted and remounted at the new mount point.
2099 .ne 2
2101 \fB\fB-p\fR\fR
2103 .sp .6
2104 .RS 4n
2105 Creates all the nonexistent parent datasets. Datasets created in this manner
2106 are automatically mounted according to the \fBmountpoint\fR property inherited
2107 from their parent.
2111 .ne 2
2113 \fB\fB-f\fR\fR
2115 .sp .6
2116 .RS 4n
2117 Force unmount any filesystems that need to be unmounted in the process.
2123 .ne 2
2125 \fB\fBzfs rename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR\fR
2127 .sp .6
2128 .RS 4n
2129 Recursively rename the snapshots of all descendent datasets. Snapshots are the
2130 only dataset that can be renamed recursively.
2134 .ne 2
2136 \fB\fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-Hp\fR] [\fB-o\fR
2137 \fIproperty\fR[,\fIproperty\fR]...] [ \fB-t\fR \fItype\fR[,\fItype\fR]...] [ \fB-s\fR
2138 \fIproperty\fR ]... [ \fB-S\fR \fIproperty\fR ]...
2139 [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR]...\fR
2141 .sp .6
2142 .RS 4n
2143 Lists the property information for the given datasets in tabular form. If
2144 specified, you can list property information by the absolute pathname or the
2145 relative pathname. By default, all file systems and volumes are displayed.
2146 Snapshots are displayed if the \fBlistsnaps\fR property is \fBon\fR (the
2147 default is \fBoff\fR) . The following fields are displayed,
2148 \fBname,used,available,referenced,mountpoint\fR.
2150 .ne 2
2152 \fB\fB-H\fR\fR
2154 .sp .6
2155 .RS 4n
2156 Used for scripting mode. Do not print headers and separate fields by a single
2157 tab instead of arbitrary white space.
2161 .ne 2
2163 \fB\fB-p\fR\fR
2165 .sp .6
2166 .RS 4n
2167 Display numbers in parsable (exact) values.
2171 .ne 2
2173 \fB\fB-r\fR\fR
2175 .sp .6
2176 .RS 4n
2177 Recursively display any children of the dataset on the command line.
2181 .ne 2
2183 \fB\fB-d\fR \fIdepth\fR\fR
2185 .sp .6
2186 .RS 4n
2187 Recursively display any children of the dataset, limiting the recursion to
2188 \fIdepth\fR. A depth of \fB1\fR will display only the dataset and its direct
2189 children.
2193 .ne 2
2195 \fB\fB-o\fR \fIproperty\fR\fR
2197 .sp .6
2198 .RS 4n
2199 A comma-separated list of properties to display. The property must be:
2200 .RS +4
2202 .ie t \(bu
2203 .el o
2204 One of the properties described in the "Native Properties" section
2206 .RS +4
2208 .ie t \(bu
2209 .el o
2210 A user property
2212 .RS +4
2214 .ie t \(bu
2215 .el o
2216 The value \fBname\fR to display the dataset name
2218 .RS +4
2220 .ie t \(bu
2221 .el o
2222 The value \fBspace\fR to display space usage properties on file systems and
2223 volumes. This is a shortcut for specifying \fB-o
2224 name,avail,used,usedsnap,usedds,usedrefreserv,usedchild\fR \fB-t
2225 filesystem,volume\fR syntax.
2230 .ne 2
2232 \fB\fB-s\fR \fIproperty\fR\fR
2234 .sp .6
2235 .RS 4n
2236 A property for sorting the output by column in ascending order based on the
2237 value of the property. The property must be one of the properties described in
2238 the "Properties" section, or the special value \fBname\fR to sort by the
2239 dataset name. Multiple properties can be specified at one time using multiple
2240 \fB-s\fR property options. Multiple \fB-s\fR options are evaluated from left to
2241 right in decreasing order of importance.
2243 The following is a list of sorting criteria:
2244 .RS +4
2246 .ie t \(bu
2247 .el o
2248 Numeric types sort in numeric order.
2250 .RS +4
2252 .ie t \(bu
2253 .el o
2254 String types sort in alphabetical order.
2256 .RS +4
2258 .ie t \(bu
2259 .el o
2260 Types inappropriate for a row sort that row to the literal bottom, regardless
2261 of the specified ordering.
2263 .RS +4
2265 .ie t \(bu
2266 .el o
2267 If no sorting options are specified the existing behavior of \fBzfs list\fR is
2268 preserved.
2273 .ne 2
2275 \fB\fB-S\fR \fIproperty\fR\fR
2277 .sp .6
2278 .RS 4n
2279 Same as the \fB-s\fR option, but sorts by property in descending order.
2283 .ne 2
2285 \fB\fB-t\fR \fItype\fR\fR
2287 .sp .6
2288 .RS 4n
2289 A comma-separated list of types to display, where \fItype\fR is one of
2290 \fBfilesystem\fR, \fBsnapshot\fR , \fBvolume\fR, \fBbookmark\fR, or \fBall\fR.
2291 For example, specifying \fB-t snapshot\fR displays only snapshots.
2297 .ne 2
2299 \fB\fBzfs set\fR \fIproperty\fR=\fIvalue\fR
2300 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR...\fR
2302 .sp .6
2303 .RS 4n
2304 Sets the property to the given value for each dataset. Only some properties can
2305 be edited. See the "Properties" section for more information on what properties
2306 can be set and acceptable values. Numeric values can be specified as exact
2307 values, or in a human-readable form with a suffix of \fBB\fR, \fBK\fR, \fBM\fR,
2308 \fBG\fR, \fBT\fR, \fBP\fR, \fBE\fR, \fBZ\fR (for bytes, kilobytes, megabytes,
2309 gigabytes, terabytes, petabytes, exabytes, or zettabytes, respectively). User
2310 properties can be set on snapshots. For more information, see the "User
2311 Properties" section.
2315 .ne 2
2317 \fB\fBzfs get\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-Hp\fR] [\fB-o\fR
2318 \fIfield\fR[,\fIfield\fR]... [\fB-t\fR \fItype\fR[,\fItype\fR]...] [\fB-s\fR \fIsource\fR[,\fIsource\fR]... \fBall\fR |
2319 \fIproperty\fR[,\fIproperty\fR]... \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR...\fR
2321 .sp .6
2322 .RS 4n
2323 Displays properties for the given datasets. If no datasets are specified, then
2324 the command displays properties for all datasets on the system. For each
2325 property, the following columns are displayed:
2327 .in +2
2329     name      Dataset name
2330      property  Property name
2331      value     Property value
2332      source    Property source. Can either be local, default,
2333                temporary, inherited, or none (-).
2335 .in -2
2338 All columns are displayed by default, though this can be controlled by using
2339 the \fB-o\fR option. This command takes a comma-separated list of properties as
2340 described in the "Native Properties" and "User Properties" sections.
2342 The special value \fBall\fR can be used to display all properties that apply to
2343 the given dataset's type (filesystem, volume, snapshot, or bookmark).
2345 .ne 2
2347 \fB\fB-r\fR\fR
2349 .sp .6
2350 .RS 4n
2351 Recursively display properties for any children.
2355 .ne 2
2357 \fB\fB-d\fR \fIdepth\fR\fR
2359 .sp .6
2360 .RS 4n
2361 Recursively display any children of the dataset, limiting the recursion to
2362 \fIdepth\fR. A depth of \fB1\fR will display only the dataset and its direct
2363 children.
2367 .ne 2
2369 \fB\fB-H\fR\fR
2371 .sp .6
2372 .RS 4n
2373 Display output in a form more easily parsed by scripts. Any headers are
2374 omitted, and fields are explicitly separated by a single tab instead of an
2375 arbitrary amount of space.
2379 .ne 2
2381 \fB\fB-o\fR \fIfield\fR\fR
2383 .sp .6
2384 .RS 4n
2385 A comma-separated list of columns to display. \fBname,property,value,source\fR
2386 is the default value.
2390 .ne 2
2392 \fB\fB-s\fR \fIsource\fR\fR
2394 .sp .6
2395 .RS 4n
2396 A comma-separated list of sources to display. Those properties coming from a
2397 source other than those in this list are ignored. Each source must be one of
2398 the following: \fBlocal,default,inherited,temporary,none\fR. The default value
2399 is all sources.
2403 .ne 2
2405 \fB\fB-p\fR\fR
2407 .sp .6
2408 .RS 4n
2409 Display numbers in parsable (exact) values.
2415 .ne 2
2417 \fB\fBzfs inherit\fR [\fB-r\fR] \fIproperty\fR
2418 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR...\fR
2420 .sp .6
2421 .RS 4n
2422 Clears the specified property, causing it to be inherited from an ancestor. If
2423 no ancestor has the property set, then the default value is used. See the
2424 "Properties" section for a listing of default values, and details on which
2425 properties can be inherited.
2427 .ne 2
2429 \fB\fB-r\fR\fR
2431 .sp .6
2432 .RS 4n
2433 Recursively inherit the given property for all children.
2439 .ne 2
2441 \fB\fBzfs upgrade\fR [\fB-v\fR]\fR
2443 .sp .6
2444 .RS 4n
2445 Displays a list of file systems that are not the most recent version.
2449 .ne 2
2451 \fB\fBzfs upgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] [\fB-a\fR |
2452 \fIfilesystem\fR]\fR
2454 .sp .6
2455 .RS 4n
2456 Upgrades file systems to a new on-disk version. Once this is done, the file
2457 systems will no longer be accessible on systems running older versions of the
2458 software. \fBzfs send\fR streams generated from new snapshots of these file
2459 systems cannot be accessed on systems running older versions of the software.
2461 In general, the file system version is independent of the pool version. See
2462 \fBzpool\fR(1M) for information on the \fBzpool upgrade\fR command.
2464 In some cases, the file system version and the pool version are interrelated
2465 and the pool version must be upgraded before the file system version can be
2466 upgraded.
2468 .ne 2
2470 \fB\fB-a\fR\fR
2472 .sp .6
2473 .RS 4n
2474 Upgrade all file systems on all imported pools.
2478 .ne 2
2480 \fB\fIfilesystem\fR\fR
2482 .sp .6
2483 .RS 4n
2484 Upgrade the specified file system.
2488 .ne 2
2490 \fB\fB-r\fR\fR
2492 .sp .6
2493 .RS 4n
2494 Upgrade the specified file system and all descendent file systems
2498 .ne 2
2500 \fB\fB-V\fR \fIversion\fR\fR
2502 .sp .6
2503 .RS 4n
2504 Upgrade to the specified \fIversion\fR. If the \fB-V\fR flag is not specified,
2505 this command upgrades to the most recent version. This option can only be used
2506 to increase the version number, and only up to the most recent version
2507 supported by this software.
2513 .ne 2
2515 \fBzfs\fR \fBuserspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,\fIfield\fR]...]
2516 [\fB-s\fR \fIfield\fR]...
2517 [\fB-S\fR \fIfield\fR]...
2518 [\fB-t\fR \fItype\fR[,\fItype\fR]...] \fIfilesystem\fR|\fIsnapshot\fR
2520 .sp .6
2521 .RS 4n
2522 Displays space consumed by, and quotas on, each user in the specified
2523 filesystem or snapshot. This corresponds to the \fBuserused@\fR\fIuser\fR and
2524 \fBuserquota@\fR\fIuser\fR properties.
2526 .ne 2
2528 \fB\fB-n\fR\fR
2530 .sp .6
2531 .RS 4n
2532 Print numeric ID instead of user/group name.
2536 .ne 2
2538 \fB\fB-H\fR\fR
2540 .sp .6
2541 .RS 4n
2542 Do not print headers, use tab-delimited output.
2546 .ne 2
2548 \fB\fB-p\fR\fR
2550 .sp .6
2551 .RS 4n
2552 Use exact (parsable) numeric output.
2556 .ne 2
2558 \fB\fB-o\fR \fIfield\fR[,\fIfield\fR]...\fR
2560 .sp .6
2561 .RS 4n
2562 Display only the specified fields from the following
2563 set: \fBtype, name, used, quota\fR. The default is to display all fields.
2567 .ne 2
2569 \fB\fB-s\fR \fIfield\fR\fR
2571 .sp .6
2572 .RS 4n
2573 Sort output by this field. The \fIs\fR and \fIS\fR flags may be specified
2574 multiple times to sort first by one field, then by another. The default is
2575 \fB-s type\fR \fB-s name\fR.
2579 .ne 2
2581 \fB\fB-S\fR \fIfield\fR\fR
2583 .sp .6
2584 .RS 4n
2585 Sort by this field in reverse order. See \fB-s\fR.
2589 .ne 2
2591 \fB\fB-t\fR \fItype\fR[,\fItype\fR]...\fR
2593 .sp .6
2594 .RS 4n
2595 Print only the specified types from the following
2596 set: \fBall, posixuser, smbuser, posixgroup, smbgroup\fR. The default
2597 is \fB-t posixuser,smbuser\fR. The default can be changed to include group
2598 types.
2602 .ne 2
2604 \fB\fB-i\fR\fR
2606 .sp .6
2607 .RS 4n
2608 Translate SID to POSIX ID. The POSIX ID may be ephemeral if no mapping exists.
2609 Normal POSIX interfaces (for example, \fBstat\fR(2), \fBls\fR \fB-l\fR) perform
2610 this translation, so the \fB-i\fR option allows the output from \fBzfs
2611 userspace\fR to be compared directly with those utilities. However, \fB-i\fR
2612 may lead to confusion if some files were created by an SMB user before a
2613 SMB-to-POSIX name mapping was established. In such a case, some files will be owned
2614 by the SMB entity and some by the POSIX entity. However, the \fB-i\fR option
2615 will report that the POSIX entity has the total usage and quota for both.
2621 .ne 2
2623 \fBzfs\fR \fBgroupspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,\fIfield\fR]...]
2624 [\fB-s\fR \fIfield\fR]...
2625 [\fB-S\fR \fIfield\fR]...
2626 [\fB-t\fR \fItype\fR[,\fItype\fR]...] \fIfilesystem\fR|\fIsnapshot\fR
2628 .sp .6
2629 .RS 4n
2630 Displays space consumed by, and quotas on, each group in the specified
2631 filesystem or snapshot. This subcommand is identical to \fBzfs userspace\fR,
2632 except that the default types to display are \fB-t posixgroup,smbgroup\fR.
2636 .ne 2
2638 \fB\fBzfs mount\fR\fR
2640 .sp .6
2641 .RS 4n
2642 Displays all \fBZFS\fR file systems currently mounted.
2646 .ne 2
2648 \fB\fBzfs mount\fR [\fB-vO\fR] [\fB-o\fR \fIoptions\fR] \fB-a\fR |
2649 \fIfilesystem\fR\fR
2651 .sp .6
2652 .RS 4n
2653 Mounts \fBZFS\fR file systems. Invoked automatically as part of the boot
2654 process.
2656 .ne 2
2658 \fB\fB-o\fR \fIoptions\fR\fR
2660 .sp .6
2661 .RS 4n
2662 An optional, comma-separated list of mount options to use temporarily for the
2663 duration of the mount. See the "Temporary Mount Point Properties" section for
2664 details.
2668 .ne 2
2670 \fB\fB-O\fR\fR
2672 .sp .6
2673 .RS 4n
2674 Perform an overlay mount. See \fBmount\fR(1M) for more information.
2678 .ne 2
2680 \fB\fB-v\fR\fR
2682 .sp .6
2683 .RS 4n
2684 Report mount progress.
2688 .ne 2
2690 \fB\fB-a\fR\fR
2692 .sp .6
2693 .RS 4n
2694 Mount all available \fBZFS\fR file systems. Invoked automatically as part of
2695 the boot process.
2699 .ne 2
2701 \fB\fIfilesystem\fR\fR
2703 .sp .6
2704 .RS 4n
2705 Mount the specified filesystem.
2711 .ne 2
2713 \fB\fBzfs unmount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2715 .sp .6
2716 .RS 4n
2717 Unmounts currently mounted \fBZFS\fR file systems. Invoked automatically as
2718 part of the shutdown process.
2720 .ne 2
2722 \fB\fB-f\fR\fR
2724 .sp .6
2725 .RS 4n
2726 Forcefully unmount the file system, even if it is currently in use.
2730 .ne 2
2732 \fB\fB-a\fR\fR
2734 .sp .6
2735 .RS 4n
2736 Unmount all available \fBZFS\fR file systems. Invoked automatically as part of
2737 the boot process.
2741 .ne 2
2743 \fB\fIfilesystem\fR|\fImountpoint\fR\fR
2745 .sp .6
2746 .RS 4n
2747 Unmount the specified filesystem. The command can also be given a path to a
2748 \fBZFS\fR file system mount point on the system.
2754 .ne 2
2756 \fB\fBzfs share\fR \fB-a\fR | \fIfilesystem\fR\fR
2758 .sp .6
2759 .RS 4n
2760 Shares available \fBZFS\fR file systems.
2762 .ne 2
2764 \fB\fB-a\fR\fR
2766 .sp .6
2767 .RS 4n
2768 Share all available \fBZFS\fR file systems. Invoked automatically as part of
2769 the boot process.
2773 .ne 2
2775 \fB\fIfilesystem\fR\fR
2777 .sp .6
2778 .RS 4n
2779 Share the specified filesystem according to the \fBsharenfs\fR and
2780 \fBsharesmb\fR properties. File systems are shared when the \fBsharenfs\fR or
2781 \fBsharesmb\fR property is set.
2787 .ne 2
2789 \fB\fBzfs unshare\fR \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2791 .sp .6
2792 .RS 4n
2793 Unshares currently shared \fBZFS\fR file systems. This is invoked automatically
2794 as part of the shutdown process.
2796 .ne 2
2798 \fB\fB-a\fR\fR
2800 .sp .6
2801 .RS 4n
2802 Unshare all available \fBZFS\fR file systems. Invoked automatically as part of
2803 the boot process.
2807 .ne 2
2809 \fB\fIfilesystem\fR|\fImountpoint\fR\fR
2811 .sp .6
2812 .RS 4n
2813 Unshare the specified filesystem. The command can also be given a path to a
2814 \fBZFS\fR file system shared on the system.
2820 .ne 2
2822 \fB\fBzfs bookmark\fR \fIsnapshot\fR \fIbookmark\fR\fR
2824 .sp .6
2825 .RS 4n
2826 Creates a bookmark of the given snapshot.  Bookmarks mark the point in time
2827 when the snapshot was created, and can be used as the incremental source for
2828 a \fBzfs send\fR command.
2830 This feature must be enabled to be used.
2831 See \fBzpool-features\fR(5) for details on ZFS feature flags and the
2832 \fBbookmarks\fR feature.
2837 .ne 2
2839 \fBzfs send\fR [\fB-DnPpRv\fR] [\fB-\fR[\fBiI\fR] \fIsnapshot\fR] \fIsnapshot\fR
2841 .sp .6
2842 .RS 4n
2843 Creates a stream representation of the second \fIsnapshot\fR, which is written
2844 to standard output. The output can be redirected to a file or to a different
2845 system (for example, using \fBssh\fR(1). By default, a full stream is
2846 generated.
2848 .ne 2
2850 \fB\fB-i\fR \fIsnapshot\fR\fR
2852 .sp .6
2853 .RS 4n
2854 Generate an incremental stream from the first \fIsnapshot\fR
2855 (the incremental source) to the second \fIsnapshot\fR (the incremental target).
2856 The incremental source can be specified as the last component of the
2857 snapshot name (the \fB@\fR character and following) and
2858 it is assumed to be from the same file system as the incremental target.
2860 If the destination is a clone, the source may be the origin snapshot, which
2861 must be fully specified (for example, \fBpool/fs@origin\fR, not just
2862 \fB@origin\fR).
2866 .ne 2
2868 \fB\fB-I\fR \fIsnapshot\fR\fR
2870 .sp .6
2871 .RS 4n
2872 Generate a stream package that sends all intermediary snapshots from the first
2873 snapshot to the second snapshot. For example, \fB-I @a fs@d\fR is
2874 similar to \fB-i @a fs@b; -i @b fs@c; -i @c fs@d\fR. The incremental
2875 source may be specified as with the \fB-i\fR option.
2879 .ne 2
2881 \fB\fB-R\fR\fR
2883 .sp .6
2884 .RS 4n
2885 Generate a replication stream package, which will replicate the specified
2886 filesystem, and all descendent file systems, up to the named snapshot. When
2887 received, all properties, snapshots, descendent file systems, and clones are
2888 preserved.
2890 If the \fB-i\fR or \fB-I\fR flags are used in conjunction with the \fB-R\fR
2891 flag, an incremental replication stream is generated. The current values of
2892 properties, and current snapshot and file system names are set when the stream
2893 is received. If the \fB-F\fR flag is specified when this stream is received,
2894 snapshots and file systems that do not exist on the sending side are destroyed.
2898 .ne 2
2900 \fB\fB-D\fR\fR
2902 .sp .6
2903 .RS 4n
2904 Generate a deduplicated stream.  Blocks which would have been sent multiple
2905 times in the send stream will only be sent once.  The receiving system must
2906 also support this feature to recieve a deduplicated stream.  This flag can
2907 be used regardless of the dataset's \fBdedup\fR property, but performance
2908 will be much better if the filesystem uses a dedup-capable checksum (eg.
2909 \fBsha256\fR).
2913 .ne 2
2915 \fB\fB-p\fR\fR
2917 .sp .6
2918 .RS 4n
2919 Include the dataset's properties in the stream.  This flag is implicit when
2920 \fB-R\fR is specified.  The receiving system must also support this feature.
2924 .ne 2
2926 \fB\fB-n\fR\fR
2928 .sp .6
2929 .RS 4n
2930 Do a dry-run ("No-op") send.  Do not generate any actual send data.  This is
2931 useful in conjunction with the \fB-v\fR or \fB-P\fR flags to determine what
2932 data will be sent.
2936 .ne 2
2938 \fB\fB-P\fR\fR
2940 .sp .6
2941 .RS 4n
2942 Print machine-parsable verbose information about the stream package generated.
2946 .ne 2
2948 \fB\fB-v\fR\fR
2950 .sp .6
2951 .RS 4n
2952 Print verbose information about the stream package generated.  This information
2953 includes a per-second report of how much data has been sent.
2956 The format of the stream is committed. You will be able to receive your streams
2957 on future versions of \fBZFS\fR.
2961 .ne 2
2963 \fBzfs send\fR [\fB-i\fR \fIsnapshot\fR|\fIbookmark\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
2965 .sp .6
2966 .RS 4n
2967 Generate a send stream, which may be of a filesystem, and may be
2968 incremental from a bookmark.  If the destination is a filesystem or volume,
2969 the pool must be read-only, or the filesystem must not be mounted.  When the
2970 stream generated from a filesystem or volume is received, the default snapshot
2971 name will be "--head--".
2974 .ne 2
2976 \fB-i\fR \fIsnapshot\fR|\fIbookmark\fR
2978 .sp .6
2979 .RS 4n
2980 Generate an incremental send stream.  The incremental source must be an earlier
2981 snapshot in the destination's history. It will commonly be an earlier
2982 snapshot in the destination's filesystem, in which case it can be
2983 specified as the last component of the name (the \fB#\fR or \fB@\fR character
2984 and following).
2986 If the incremental target is a clone, the incremental source can
2987 be the origin snapshot, or an earlier snapshot in the origin's filesystem,
2988 or the origin's origin, etc.
2994 .ne 2
2996 \fB\fBzfs receive\fR [\fB-vnFu\fR]
2997 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
3001 \fB\fBzfs receive\fR [\fB-vnFu\fR] [\fB-d\fR|\fB-e\fR] \fIfilesystem\fR\fR
3003 .sp .6
3004 .RS 4n
3005 Creates a snapshot whose contents are as specified in the stream provided on
3006 standard input. If a full stream is received, then a new file system is created
3007 as well. Streams are created using the \fBzfs send\fR subcommand, which by
3008 default creates a full stream. \fBzfs recv\fR can be used as an alias for
3009 \fBzfs receive\fR.
3011 If an incremental stream is received, then the destination file system must
3012 already exist, and its most recent snapshot must match the incremental stream's
3013 source. For \fBzvols\fR, the destination device link is destroyed and
3014 recreated, which means the \fBzvol\fR cannot be accessed during the
3015 \fBreceive\fR operation.
3017 When a snapshot replication package stream that is generated by using the
3018 \fBzfs send\fR \fB-R\fR command is  received, any snapshots that do not exist
3019 on the sending location are destroyed by using the \fBzfs destroy\fR \fB-d\fR
3020 command.
3022 The name of the snapshot (and file system, if a full stream is received) that
3023 this subcommand creates depends on the argument type and the use of the
3024 \fB-d\fR or \fB-e\fR options.
3026 If the argument is a snapshot name, the specified \fIsnapshot\fR is created. If
3027 the argument is a file system or volume name, a snapshot with the same name as
3028 the sent snapshot is created within the specified \fIfilesystem\fR or
3029 \fIvolume\fR.  If neither of the \fB-d\fR or \fB-e\fR options are specified,
3030 the provided target snapshot name is used exactly as provided.
3032 The \fB-d\fR and \fB-e\fR options cause the file system name of the target
3033 snapshot to be determined by appending a portion of the sent snapshot's name to
3034 the specified target \fIfilesystem\fR. If the \fB-d\fR option is specified, all
3035 but the first element of the sent snapshot's file system path (usually the
3036 pool name) is used and any required intermediate file systems within the
3037 specified one are created.  If the \fB-e\fR option is specified, then only the
3038 last element of the sent snapshot's file system name (i.e. the name of the
3039 source file system itself) is used as the target file system name.
3041 .ne 2
3043 \fB\fB-d\fR\fR
3045 .sp .6
3046 .RS 4n
3047 Discard the first element of the sent snapshot's file system name, using
3048 the remaining elements to determine the name of the target file system for
3049 the new snapshot as described in the paragraph above.
3053 .ne 2
3055 \fB\fB-e\fR\fR
3057 .sp .6
3058 .RS 4n
3059 Discard all but the last element of the sent snapshot's file system name,
3060 using that element to determine the name of the target file system for
3061 the new snapshot as described in the paragraph above.
3065 .ne 2
3067 \fB\fB-u\fR\fR
3069 .sp .6
3070 .RS 4n
3071 File system that is associated with the received stream is not mounted.
3075 .ne 2
3077 \fB\fB-v\fR\fR
3079 .sp .6
3080 .RS 4n
3081 Print verbose information about the stream and the time required to perform the
3082 receive operation.
3086 .ne 2
3088 \fB\fB-n\fR\fR
3090 .sp .6
3091 .RS 4n
3092 Do not actually receive the stream. This can be useful in conjunction with the
3093 \fB-v\fR option to verify the name the receive operation would use.
3097 .ne 2
3099 \fB\fB-F\fR\fR
3101 .sp .6
3102 .RS 4n
3103 Force a rollback of the file system to the most recent snapshot before
3104 performing the receive operation. If receiving an incremental replication
3105 stream (for example, one generated by \fBzfs send -R -[iI]\fR), destroy
3106 snapshots and file systems that do not exist on the sending side.
3112 .ne 2
3114 \fB\fBzfs allow\fR \fIfilesystem\fR | \fIvolume\fR\fR
3116 .sp .6
3117 .RS 4n
3118 Displays permissions that have been delegated on the specified filesystem or
3119 volume. See the other forms of \fBzfs allow\fR for more information.
3123 .ne 2
3125 \fB\fBzfs allow\fR [\fB-ldug\fR] \fIuser\fR|\fIgroup\fR[,\fIuser\fR|\fIgroup\fR]...
3126 \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]... \fIfilesystem\fR|\fIvolume\fR\fR
3130 \fB\fBzfs allow\fR [\fB-ld\fR] \fB-e\fR|\fBeveryone\fR \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...
3131 \fIfilesystem\fR|\fIvolume\fR\fR
3133 .sp .6
3134 .RS 4n
3135 Delegates \fBZFS\fR administration permission for the file systems to
3136 non-privileged users.
3138 .ne 2
3140 [\fB-ug\fR] \fIuser\fR|\fIgroup\fR[,\fIuser\fR|\fIgroup\fR]...
3142 .sp .6
3143 .RS 4n
3144 Specifies to whom the permissions are delegated. Multiple entities can be
3145 specified as a comma-separated list. If neither of the \fB-ug\fR options are
3146 specified, then the argument is interpreted preferentially as the keyword
3147 \fBeveryone,\fR then as a user name, and lastly as a group name. To specify a user
3148 or group named "everyone", use the \fB-u\fR or \fB-g\fR options. To specify a
3149 group with the same name as a user, use the \fB-g\fR options.
3153 .ne 2
3155 \fB-e\fR|\fBeveryone\fR
3157 .sp .6
3158 .RS 4n
3159 Specifies that the permissions be delegated to everyone.
3163 .ne 2
3165 \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...
3167 .sp .6
3168 .RS 4n
3169 The permissions to delegate. Multiple permissions
3170 may be specified as a comma-separated list. Permission names are the same as
3171 \fBZFS\fR subcommand and property names. See the property list below. Property
3172 set names, which begin with an at sign (\fB@\fR) , may be specified. See the
3173 \fB-s\fR form below for details.
3177 .ne 2
3179 [\fB-ld\fR] \fIfilesystem\fR|\fIvolume\fR
3181 .sp .6
3182 .RS 4n
3183 Specifies where the permissions are delegated. If neither of the \fB-ld\fR
3184 options are specified, or both are, then the permissions are allowed for the
3185 file system or volume, and all of its descendents. If only the \fB-l\fR option
3186 is used, then is allowed "locally" only for the specified file system. If only
3187 the \fB-d\fR option is used, then is allowed only for the descendent file
3188 systems.
3195 Permissions are generally the ability to use a \fBZFS\fR subcommand or change a
3196 \fBZFS\fR property. The following permissions are available:
3198 .in +2
3200 NAME             TYPE           NOTES
3201 allow            subcommand     Must also have the permission that is being
3202                                 allowed
3203 clone            subcommand     Must also have the 'create' ability and 'mount'
3204                                 ability in the origin file system
3205 create           subcommand     Must also have the 'mount' ability
3206 destroy          subcommand     Must also have the 'mount' ability
3207 diff             subcommand     Allows lookup of paths within a dataset
3208                                 given an object number, and the ability to
3209                                 create snapshots necessary to 'zfs diff'.
3210 mount            subcommand     Allows mount/umount of ZFS datasets
3211 promote          subcommand     Must also have the 'mount'
3212                                 and 'promote' ability in the origin file system
3213 receive          subcommand     Must also have the 'mount' and 'create' ability
3214 rename           subcommand     Must also have the 'mount' and 'create'
3215                                 ability in the new parent
3216 rollback         subcommand     Must also have the 'mount' ability
3217 send             subcommand
3218 share            subcommand     Allows sharing file systems over NFS or SMB
3219                                 protocols
3220 snapshot         subcommand     Must also have the 'mount' ability
3221 groupquota       other          Allows accessing any groupquota@... property
3222 groupused        other          Allows reading any groupused@... property
3223 userprop         other          Allows changing any user property
3224 userquota        other          Allows accessing any userquota@... property
3225 userused         other          Allows reading any userused@... property
3227 aclinherit       property
3228 aclmode          property
3229 atime            property
3230 canmount         property
3231 casesensitivity  property
3232 checksum         property
3233 compression      property
3234 copies           property
3235 devices          property
3236 exec             property
3237 mountpoint       property
3238 nbmand           property
3239 normalization    property
3240 primarycache     property
3241 quota            property
3242 readonly         property
3243 recordsize       property
3244 refquota         property
3245 refreservation   property
3246 reservation      property
3247 secondarycache   property
3248 setuid           property
3249 shareiscsi       property
3250 sharenfs         property
3251 sharesmb         property
3252 snapdir          property
3253 utf8only         property
3254 version          property
3255 volblocksize     property
3256 volsize          property
3257 vscan            property
3258 xattr            property
3259 zoned            property
3261 .in -2
3265 .ne 2
3267 \fB\fBzfs allow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...
3268 \fIfilesystem\fR|\fIvolume\fR\fR
3270 .sp .6
3271 .RS 4n
3272 Sets "create time" permissions. These permissions are granted (locally) to the
3273 creator of any newly-created descendent file system.
3277 .ne 2
3279 \fB\fBzfs allow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...
3280 \fIfilesystem\fR|\fIvolume\fR\fR
3282 .sp .6
3283 .RS 4n
3284 Defines or adds permissions to a permission set. The set can be used by other
3285 \fBzfs allow\fR commands for the specified file system and its descendents.
3286 Sets are evaluated dynamically, so changes to a set are immediately reflected.
3287 Permission sets follow the same naming restrictions as ZFS file systems, but
3288 the name must begin with an "at sign" (\fB@\fR), and can be no more than 64
3289 characters long.
3293 .ne 2
3295 \fB\fBzfs unallow\fR [\fB-rldug\fR] \fIuser\fR|\fIgroup\fR[,\fIuser\fR|\fIgroup\fR]...
3296 [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...] \fIfilesystem\fR|\fIvolume\fR\fR
3300 \fB\fBzfs unallow\fR [\fB-rld\fR] \fB-e\fR|\fBeveryone\fR [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...]
3301 \fIfilesystem\fR|\fIvolume\fR\fR
3305 \fB\fBzfs unallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...]\fR
3309 \fB\fIfilesystem\fR|\fIvolume\fR\fR
3311 .sp .6
3312 .RS 4n
3313 Removes permissions that were granted with the \fBzfs allow\fR command. No
3314 permissions are explicitly denied, so other permissions granted are still in
3315 effect. For example, if the permission is granted by an ancestor. If no
3316 permissions are specified, then all permissions for the specified \fIuser\fR,
3317 \fIgroup\fR, or everyone are removed. Specifying \fBeveryone\fR (or using the
3318 \fB-e\fR option) only removes the permissions that were granted to everyone,
3319 not all permissions for every user and group. See the \fBzfs allow\fR command
3320 for a description of the \fB-ldugec\fR options.
3322 .ne 2
3324 \fB\fB-r\fR\fR
3326 .sp .6
3327 .RS 4n
3328 Recursively remove the permissions from this file system and all descendents.
3334 .ne 2
3336 \fB\fBzfs unallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR
3337 [\fIperm\fR|@\fIsetname\fR[,\fIperm\fR|@\fIsetname\fR]...]\fR
3341 \fB\fIfilesystem\fR|\fIvolume\fR\fR
3343 .sp .6
3344 .RS 4n
3345 Removes permissions from a permission set. If no permissions are specified,
3346 then all permissions are removed, thus removing the set entirely.
3350 .ne 2
3352 \fB\fBzfs hold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
3354 .sp .6
3355 .RS 4n
3356 Adds a single reference, named with the \fItag\fR argument, to the specified
3357 snapshot or snapshots. Each snapshot has its own tag namespace, and tags must
3358 be unique within that space.
3360 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
3361 \fBzfs destroy\fR command return \fBEBUSY\fR.
3363 .ne 2
3365 \fB\fB-r\fR\fR
3367 .sp .6
3368 .RS 4n
3369 Specifies that a hold with the given tag is applied recursively to the
3370 snapshots of all descendent file systems.
3376 .ne 2
3378 \fB\fBzfs holds\fR [\fB-r\fR] \fIsnapshot\fR...\fR
3380 .sp .6
3381 .RS 4n
3382 Lists all existing user references for the given snapshot or snapshots.
3384 .ne 2
3386 \fB\fB-r\fR\fR
3388 .sp .6
3389 .RS 4n
3390 Lists the holds that are set on the named descendent snapshots, in addition to
3391 listing the holds on the named snapshot.
3397 .ne 2
3399 \fB\fBzfs release\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
3401 .sp .6
3402 .RS 4n
3403 Removes a single reference, named with the \fItag\fR argument, from the
3404 specified snapshot or snapshots. The tag must already exist for each snapshot.
3406 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
3407 \fBzfs destroy\fR command return \fBEBUSY\fR.
3409 .ne 2
3411 \fB\fB-r\fR\fR
3413 .sp .6
3414 .RS 4n
3415 Recursively releases a hold with the given tag on the snapshots of all
3416 descendent file systems.
3420 .ne 2
3422 \fBzfs diff\fR [\fB-FHt\fR] \fIsnapshot\fR \fIsnapshot|filesystem\fR
3424 .sp .6
3425 .RS 4n
3426 Display the difference between a snapshot of a given filesystem and another
3427 snapshot of that filesystem from a later time or the current contents of the
3428 filesystem.  The first column is a character indicating the type of change,
3429 the other columns indicate pathname, new pathname (in case of rename), change
3430 in link count, and optionally file type and/or change time.
3432 The types of change are:
3433 .in +2
3435 -       The path has been removed
3436 +       The path has been created
3437 M       The path has been modified
3438 R       The path has been renamed
3440 .in -2
3442 .ne 2
3444 \fB-F\fR
3446 .sp .6
3447 .RS 4n
3448 Display an indication of the type of file, in a manner similar to the \fB-F\fR
3449 option of \fBls\fR(1).
3450 .in +2
3452 B       Block device
3453 C       Character device
3454 /       Directory
3455 >       Door
3456 |       Named pipe
3457 @       Symbolic link
3458 P       Event port
3459 =       Socket
3460 F       Regular file
3462 .in -2
3465 .ne 2
3467 \fB-H\fR
3469 .sp .6
3470 .RS 4n
3471 Give more parsable tab-separated output, without header lines and without arrows.
3474 .ne 2
3476 \fB-t\fR
3478 .sp .6
3479 .RS 4n
3480 Display the path's inode change time as the first column of output.
3483 .SH EXAMPLES
3485 \fBExample 1 \fRCreating a ZFS File System Hierarchy
3488 The following commands create a file system named \fBpool/home\fR and a file
3489 system named \fBpool/home/bob\fR. The mount point \fB/export/home\fR is set for
3490 the parent file system, and is automatically inherited by the child file
3491 system.
3494 .in +2
3496 # \fBzfs create pool/home\fR
3497 # \fBzfs set mountpoint=/export/home pool/home\fR
3498 # \fBzfs create pool/home/bob\fR
3500 .in -2
3504 \fBExample 2 \fRCreating a ZFS Snapshot
3507 The following command creates a snapshot named \fByesterday\fR. This snapshot
3508 is mounted on demand in the \fB\&.zfs/snapshot\fR directory at the root of the
3509 \fBpool/home/bob\fR file system.
3512 .in +2
3514 # \fBzfs snapshot pool/home/bob@yesterday\fR
3516 .in -2
3520 \fBExample 3 \fRCreating and Destroying Multiple Snapshots
3523 The following command creates snapshots named \fByesterday\fR of
3524 \fBpool/home\fR and all of its descendent file systems. Each snapshot is
3525 mounted on demand in the \fB\&.zfs/snapshot\fR directory at the root of its
3526 file system. The second command destroys the newly created snapshots.
3529 .in +2
3531 # \fBzfs snapshot -r pool/home@yesterday\fR
3532 # \fBzfs destroy -r pool/home@yesterday\fR
3534 .in -2
3538 \fBExample 4 \fRDisabling and Enabling File System Compression
3541 The following command disables the \fBcompression\fR property for all file
3542 systems under \fBpool/home\fR. The next command explicitly enables
3543 \fBcompression\fR for \fBpool/home/anne\fR.
3546 .in +2
3548 # \fBzfs set compression=off pool/home\fR
3549 # \fBzfs set compression=on pool/home/anne\fR
3551 .in -2
3555 \fBExample 5 \fRListing ZFS Datasets
3558 The following command lists all active file systems and volumes in the system.
3559 Snapshots are displayed if the \fBlistsnaps\fR property is \fBon\fR. The
3560 default is \fBoff\fR. See \fBzpool\fR(1M) for more information on pool
3561 properties.
3564 .in +2
3566 # \fBzfs list\fR
3567    NAME                      USED  AVAIL  REFER  MOUNTPOINT
3568    pool                      450K   457G    18K  /pool
3569    pool/home                 315K   457G    21K  /export/home
3570    pool/home/anne             18K   457G    18K  /export/home/anne
3571    pool/home/bob             276K   457G   276K  /export/home/bob
3573 .in -2
3577 \fBExample 6 \fRSetting a Quota on a ZFS File System
3580 The following command sets a quota of 50 Gbytes for \fBpool/home/bob\fR.
3583 .in +2
3585 # \fBzfs set quota=50G pool/home/bob\fR
3587 .in -2
3591 \fBExample 7 \fRListing ZFS Properties
3594 The following command lists all properties for \fBpool/home/bob\fR.
3597 .in +2
3599 # \fBzfs get all pool/home/bob\fR
3600 NAME           PROPERTY              VALUE                  SOURCE
3601 pool/home/bob  type                  filesystem             -
3602 pool/home/bob  creation              Tue Jul 21 15:53 2009  -
3603 pool/home/bob  used                  21K                    -
3604 pool/home/bob  available             20.0G                  -
3605 pool/home/bob  referenced            21K                    -
3606 pool/home/bob  compressratio         1.00x                  -
3607 pool/home/bob  mounted               yes                    -
3608 pool/home/bob  quota                 20G                    local
3609 pool/home/bob  reservation           none                   default
3610 pool/home/bob  recordsize            128K                   default
3611 pool/home/bob  mountpoint            /pool/home/bob         default
3612 pool/home/bob  sharenfs              off                    default
3613 pool/home/bob  checksum              on                     default
3614 pool/home/bob  compression           on                     local
3615 pool/home/bob  atime                 on                     default
3616 pool/home/bob  devices               on                     default
3617 pool/home/bob  exec                  on                     default
3618 pool/home/bob  setuid                on                     default
3619 pool/home/bob  readonly              off                    default
3620 pool/home/bob  zoned                 off                    default
3621 pool/home/bob  snapdir               hidden                 default
3622 pool/home/bob  aclmode               discard                default
3623 pool/home/bob  aclinherit            restricted             default
3624 pool/home/bob  canmount              on                     default
3625 pool/home/bob  shareiscsi            off                    default
3626 pool/home/bob  xattr                 on                     default
3627 pool/home/bob  copies                1                      default
3628 pool/home/bob  version               4                      -
3629 pool/home/bob  utf8only              off                    -
3630 pool/home/bob  normalization         none                   -
3631 pool/home/bob  casesensitivity       sensitive              -
3632 pool/home/bob  vscan                 off                    default
3633 pool/home/bob  nbmand                off                    default
3634 pool/home/bob  sharesmb              off                    default
3635 pool/home/bob  refquota              none                   default
3636 pool/home/bob  refreservation        none                   default
3637 pool/home/bob  primarycache          all                    default
3638 pool/home/bob  secondarycache        all                    default
3639 pool/home/bob  usedbysnapshots       0                      -
3640 pool/home/bob  usedbydataset         21K                    -
3641 pool/home/bob  usedbychildren        0                      -
3642 pool/home/bob  usedbyrefreservation  0                      -
3644 .in -2
3649 The following command gets a single property value.
3652 .in +2
3654 # \fBzfs get -H -o value compression pool/home/bob\fR
3657 .in -2
3662 The following command lists all properties with local settings for
3663 \fBpool/home/bob\fR.
3666 .in +2
3668 # \fBzfs get -r -s local -o name,property,value all pool/home/bob\fR
3669 NAME           PROPERTY              VALUE
3670 pool/home/bob  quota                 20G
3671 pool/home/bob  compression           on
3673 .in -2
3677 \fBExample 8 \fRRolling Back a ZFS File System
3680 The following command reverts the contents of \fBpool/home/anne\fR to the
3681 snapshot named \fByesterday\fR, deleting all intermediate snapshots.
3684 .in +2
3686 # \fBzfs rollback -r pool/home/anne@yesterday\fR
3688 .in -2
3692 \fBExample 9 \fRCreating a ZFS Clone
3695 The following command creates a writable file system whose initial contents are
3696 the same as \fBpool/home/bob@yesterday\fR.
3699 .in +2
3701 # \fBzfs clone pool/home/bob@yesterday pool/clone\fR
3703 .in -2
3707 \fBExample 10 \fRPromoting a ZFS Clone
3710 The following commands illustrate how to test out changes to a file system, and
3711 then replace the original file system with the changed one, using clones, clone
3712 promotion, and renaming:
3715 .in +2
3717 # \fBzfs create pool/project/production\fR
3718   populate /pool/project/production with data
3719 # \fBzfs snapshot pool/project/production@today\fR
3720 # \fBzfs clone pool/project/production@today pool/project/beta\fR
3721 make changes to /pool/project/beta and test them
3722 # \fBzfs promote pool/project/beta\fR
3723 # \fBzfs rename pool/project/production pool/project/legacy\fR
3724 # \fBzfs rename pool/project/beta pool/project/production\fR
3725 once the legacy version is no longer needed, it can be destroyed
3726 # \fBzfs destroy pool/project/legacy\fR
3728 .in -2
3732 \fBExample 11 \fRInheriting ZFS Properties
3735 The following command causes \fBpool/home/bob\fR and \fBpool/home/anne\fR to
3736 inherit the \fBchecksum\fR property from their parent.
3739 .in +2
3741 # \fBzfs inherit checksum pool/home/bob pool/home/anne\fR
3743 .in -2
3747 \fBExample 12 \fRRemotely Replicating ZFS Data
3750 The following commands send a full stream and then an incremental stream to a
3751 remote machine, restoring them into \fBpoolB/received/fs@a\fRand
3752 \fBpoolB/received/fs@b\fR, respectively. \fBpoolB\fR must contain the file
3753 system \fBpoolB/received\fR, and must not initially contain
3754 \fBpoolB/received/fs\fR.
3757 .in +2
3759 # \fBzfs send pool/fs@a | \e\fR
3760    \fBssh host zfs receive poolB/received/fs@a\fR
3761 # \fBzfs send -i a pool/fs@b | ssh host \e\fR
3762    \fBzfs receive poolB/received/fs\fR
3764 .in -2
3768 \fBExample 13 \fRUsing the \fBzfs receive\fR \fB-d\fR Option
3771 The following command sends a full stream of \fBpoolA/fsA/fsB@snap\fR to a
3772 remote machine, receiving it into \fBpoolB/received/fsA/fsB@snap\fR. The
3773 \fBfsA/fsB@snap\fR portion of the received snapshot's name is determined from
3774 the name of the sent snapshot. \fBpoolB\fR must contain the file system
3775 \fBpoolB/received\fR. If \fBpoolB/received/fsA\fR does not exist, it is created
3776 as an empty file system.
3779 .in +2
3781 # \fBzfs send poolA/fsA/fsB@snap | \e
3782    ssh host zfs receive -d poolB/received\fR
3784 .in -2
3788 \fBExample 14 \fRSetting User Properties
3791 The following example sets the user-defined \fBcom.example:department\fR
3792 property for a dataset.
3795 .in +2
3797 # \fBzfs set com.example:department=12345 tank/accounting\fR
3799 .in -2
3803 \fBExample 15 \fRCreating a ZFS Volume as an iSCSI Target Device
3806 The following example shows how to create a \fBZFS\fR volume as an \fBiSCSI\fR
3807 target.
3810 .in +2
3812 # \fBzfs create -V 2g pool/volumes/vol1\fR
3813 # \fBzfs set shareiscsi=on pool/volumes/vol1\fR
3814 # \fBiscsitadm list target\fR
3815 Target: pool/volumes/vol1
3816  iSCSI Name:
3817  iqn.1986-03.com.sun:02:7b4b02a6-3277-eb1b-e686-a24762c52a8c
3818  Connections: 0
3820 .in -2
3825 After the \fBiSCSI\fR target is created, set up the \fBiSCSI\fR initiator. For
3826 more information about the Solaris \fBiSCSI\fR initiator, see
3827 \fBiscsitadm\fR(1M).
3829 \fBExample 16 \fRPerforming a Rolling Snapshot
3832 The following example shows how to maintain a history of snapshots with a
3833 consistent naming scheme. To keep a week's worth of snapshots, the user
3834 destroys the oldest snapshot, renames the remaining snapshots, and then creates
3835 a new snapshot, as follows:
3838 .in +2
3840 # \fBzfs destroy -r pool/users@7daysago\fR
3841 # \fBzfs rename -r pool/users@6daysago @7daysago\fR
3842 # \fBzfs rename -r pool/users@5daysago @6daysago\fR
3843 # \fBzfs rename -r pool/users@yesterday @5daysago\fR
3844 # \fBzfs rename -r pool/users@yesterday @4daysago\fR
3845 # \fBzfs rename -r pool/users@yesterday @3daysago\fR
3846 # \fBzfs rename -r pool/users@yesterday @2daysago\fR
3847 # \fBzfs rename -r pool/users@today @yesterday\fR
3848 # \fBzfs snapshot -r pool/users@today\fR
3850 .in -2
3854 \fBExample 17 \fRSetting \fBsharenfs\fR Property Options on a ZFS File System
3857 The following commands show how to set \fBsharenfs\fR property options to
3858 enable \fBrw\fR access for a set of \fBIP\fR addresses and to enable root
3859 access for system \fBneo\fR on the \fBtank/home\fR file system.
3862 .in +2
3864 # \fBzfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home\fR
3866 .in -2
3871 If you are using \fBDNS\fR for host name resolution, specify the fully
3872 qualified hostname.
3875 \fBExample 18 \fRDelegating ZFS Administration Permissions on a ZFS Dataset
3878 The following example shows how to set permissions so that user \fBcindys\fR
3879 can create, destroy, mount, and take snapshots on \fBtank/cindys\fR. The
3880 permissions on \fBtank/cindys\fR are also displayed.
3883 .in +2
3885 # \fBzfs allow cindys create,destroy,mount,snapshot tank/cindys\fR
3886 # \fBzfs allow tank/cindys\fR
3887 -------------------------------------------------------------
3888 Local+Descendent permissions on (tank/cindys)
3889           user cindys create,destroy,mount,snapshot
3890 -------------------------------------------------------------
3892 .in -2
3897 Because the \fBtank/cindys\fR mount point permission is set to 755 by default,
3898 user \fBcindys\fR will be unable to mount file systems under \fBtank/cindys\fR.
3899 Set an \fBACL\fR similar to the following syntax to provide mount point access:
3901 .in +2
3903 # \fBchmod A+user:cindys:add_subdirectory:allow /tank/cindys\fR
3905 .in -2
3909 \fBExample 19 \fRDelegating Create Time Permissions on a ZFS Dataset
3912 The following example shows how to grant anyone in the group \fBstaff\fR to
3913 create file systems in \fBtank/users\fR. This syntax also allows staff members
3914 to destroy their own file systems, but not destroy anyone else's file system.
3915 The permissions on \fBtank/users\fR are also displayed.
3918 .in +2
3920 # \fBzfs allow staff create,mount tank/users\fR
3921 # \fBzfs allow -c destroy tank/users\fR
3922 # \fBzfs allow tank/users\fR
3923 -------------------------------------------------------------
3924 Create time permissions on (tank/users)
3925           create,destroy
3926 Local+Descendent permissions on (tank/users)
3927           group staff create,mount
3928 -------------------------------------------------------------
3930 .in -2
3934 \fBExample 20 \fRDefining and Granting a Permission Set on a ZFS Dataset
3937 The following example shows how to define and grant a permission set on the
3938 \fBtank/users\fR file system. The permissions on \fBtank/users\fR are also
3939 displayed.
3942 .in +2
3944 # \fBzfs allow -s @pset create,destroy,snapshot,mount tank/users\fR
3945 # \fBzfs allow staff @pset tank/users\fR
3946 # \fBzfs allow tank/users\fR
3947 -------------------------------------------------------------
3948 Permission sets on (tank/users)
3949         @pset create,destroy,mount,snapshot
3950 Create time permissions on (tank/users)
3951         create,destroy
3952 Local+Descendent permissions on (tank/users)
3953         group staff @pset,create,mount
3954 -------------------------------------------------------------
3956 .in -2
3960 \fBExample 21 \fRDelegating Property Permissions on a ZFS Dataset
3963 The following example shows to grant the ability to set quotas and reservations
3964 on the \fBusers/home\fR file system. The permissions on \fBusers/home\fR are
3965 also displayed.
3968 .in +2
3970 # \fBzfs allow cindys quota,reservation users/home\fR
3971 # \fBzfs allow users/home\fR
3972 -------------------------------------------------------------
3973 Local+Descendent permissions on (users/home)
3974         user cindys quota,reservation
3975 -------------------------------------------------------------
3976 cindys% \fBzfs set quota=10G users/home/marks\fR
3977 cindys% \fBzfs get quota users/home/marks\fR
3978 NAME              PROPERTY  VALUE             SOURCE
3979 users/home/marks  quota     10G               local
3981 .in -2
3985 \fBExample 22 \fRRemoving ZFS Delegated Permissions on a ZFS Dataset
3988 The following example shows how to remove the snapshot permission from the
3989 \fBstaff\fR group on the \fBtank/users\fR file system. The permissions on
3990 \fBtank/users\fR are also displayed.
3993 .in +2
3995 # \fBzfs unallow staff snapshot tank/users\fR
3996 # \fBzfs allow tank/users\fR
3997 -------------------------------------------------------------
3998 Permission sets on (tank/users)
3999         @pset create,destroy,mount,snapshot
4000 Create time permissions on (tank/users)
4001         create,destroy
4002 Local+Descendent permissions on (tank/users)
4003         group staff @pset,create,mount
4004 -------------------------------------------------------------
4006 .in -2
4010 \fBExample 23\fR Showing the differences between a snapshot and a ZFS Dataset
4013 The following example shows how to see what has changed between a prior
4014 snapshot of a ZFS Dataset and its current state.  The \fB-F\fR option is used
4015 to indicate type information for the files affected.
4018 .in +2
4020 # zfs diff -F tank/test@before tank/test
4021 M       /       /tank/test/
4022 M       F       /tank/test/linked      (+1)
4023 R       F       /tank/test/oldname -> /tank/test/newname
4024 -       F       /tank/test/deleted
4025 +       F       /tank/test/created
4026 M       F       /tank/test/modified
4028 .in -2
4031 .SH EXIT STATUS
4033 The following exit values are returned:
4035 .ne 2
4037 \fB\fB0\fR\fR
4039 .sp .6
4040 .RS 4n
4041 Successful completion.
4045 .ne 2
4047 \fB\fB1\fR\fR
4049 .sp .6
4050 .RS 4n
4051 An error occurred.
4055 .ne 2
4057 \fB\fB2\fR\fR
4059 .sp .6
4060 .RS 4n
4061 Invalid command line options were specified.
4064 .SH ATTRIBUTES
4066 See \fBattributes\fR(5) for descriptions of the following attributes:
4071 box;
4072 c | c
4073 l | l .
4074 ATTRIBUTE TYPE  ATTRIBUTE VALUE
4076 Interface Stability     Committed
4079 .SH SEE ALSO
4081 \fBssh\fR(1), \fBiscsitadm\fR(1M), \fBmount\fR(1M), \fBshare\fR(1M),
4082 \fBsharemgr\fR(1M), \fBunshare\fR(1M), \fBzonecfg\fR(1M), \fBzpool\fR(1M),
4083 \fBchmod\fR(2), \fBstat\fR(2), \fBwrite\fR(2), \fBfsync\fR(3C),
4084 \fBdfstab\fR(4), \fBacl\fR(5), \fBattributes\fR(5)
4087 See the \fBgzip\fR(1) man page, which is not part of the SunOS man page
4088 collection.
4091 For information about using the \fBZFS\fR web-based management tool and other
4092 \fBZFS\fR features, see the \fISolaris ZFS Administration Guide\fR.