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.
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.
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]
23 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
24 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
25 .\" Copyright (c) 2012 by Delphix. All rights reserved.
26 .\" Copyright (c) 2012, Joyent, Inc. All rights reserved.
27 .\" Copyright 2012 Nexenta Systems, Inc. All Rights Reserved.
29 .TH ZFS 1M "Aug 16, 2012"
31 zfs \- configures ZFS file systems
40 \fBzfs\fR \fBcreate\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem\fR
45 \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
50 \fBzfs\fR \fBdestroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
55 \fBzfs\fR \fBdestroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,...]
60 \fBzfs\fR \fBsnapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
61 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR...
66 \fBzfs\fR \fBrollback\fR [\fB-rRf\fR] \fIsnapshot\fR
71 \fBzfs\fR \fBclone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR
76 \fBzfs\fR \fBpromote\fR \fIclone-filesystem\fR
81 \fBzfs\fR \fBrename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
82 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
87 \fBzfs\fR \fBrename\fR [\fB-fp\fR] \fIfilesystem\fR|\fIvolume\fR \fIfilesystem\fR|\fIvolume\fR
92 \fBzfs\fR \fBrename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR
97 \fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-H\fR][\fB-o\fR \fIproperty\fR[,...]] [\fB-t\fR \fItype\fR[,...]]
98 [\fB-s\fR \fIproperty\fR] ... [\fB-S\fR \fIproperty\fR] ... [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR] ...
103 \fBzfs\fR \fBset\fR \fIproperty\fR=\fIvalue\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...
108 \fBzfs\fR \fBget\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-Hp\fR][\fB-o\fR \fIfield\fR[,...]] [\fB-t\fR \fItype\fR[,...]]
109 [\fB-s\fR \fIsource\fR[,...]] "\fIall\fR" | \fIproperty\fR[,...] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...
114 \fBzfs\fR \fBinherit\fR [\fB-r\fR] \fIproperty\fR \fIfilesystem\fR|\fIvolume|snapshot\fR ...
119 \fBzfs\fR \fBupgrade\fR [\fB-v\fR]
124 \fBzfs\fR \fBupgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIfilesystem\fR
129 \fBzfs\fR \fBuserspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-s\fR \fIfield\fR] ...
130 [\fB-S\fR \fIfield\fR] ... [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
135 \fBzfs\fR \fBgroupspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-s\fR \fIfield\fR] ...
136 [\fB-S\fR \fIfield\fR] ... [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
141 \fBzfs\fR \fBmount\fR
146 \fBzfs\fR \fBmount\fR [\fB-vO\fR] [\fB-o \fIoptions\fR\fR] \fB-a\fR | \fIfilesystem\fR
151 \fBzfs\fR \fBunmount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR
156 \fBzfs\fR \fBshare\fR \fB-a\fR | \fIfilesystem\fR
161 \fBzfs\fR \fBunshare\fR \fB-a\fR \fIfilesystem\fR|\fImountpoint\fR
166 \fBzfs\fR \fBsend\fR [\fB-DnPpRrv\fR] [\fB-\fR[\fBiI\fR] \fIsnapshot\fR] \fIsnapshot\fR
171 \fBzfs\fR \fBreceive\fR [\fB-vnFu\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
176 \fBzfs\fR \fBreceive\fR [\fB-vnFu\fR] [\fB-d\fR|\fB-e\fR] \fIfilesystem\fR
181 \fBzfs\fR \fBallow\fR \fIfilesystem\fR|\fIvolume\fR
186 \fBzfs\fR \fBallow\fR [\fB-ldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] \fIperm\fR|\fI@setname\fR[,...]
187 \fIfilesystem\fR|\fIvolume\fR
192 \fBzfs\fR \fBallow\fR [\fB-ld\fR] \fB-e\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
197 \fBzfs\fR \fBallow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
202 \fBzfs\fR \fBallow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
207 \fBzfs\fR \fBunallow\fR [\fB-rldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] [\fIperm\fR|@\fIsetname\fR[,... ]]
208 \fIfilesystem\fR|\fIvolume\fR
213 \fBzfs\fR \fBunallow\fR [\fB-rld\fR] \fB-e\fR [\fIperm\fR|@\fIsetname\fR[,... ]] \fIfilesystem\fR|\fIvolume\fR
218 \fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[ ... ]] \fIfilesystem\fR|\fIvolume\fR
223 \fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR [\fIperm\fR|@\fIsetname\fR[,... ]] \fIfilesystem\fR|\fIvolume\fR
228 \fBzfs\fR \fBhold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
233 \fBzfs\fR \fBholds\fR [\fB-r\fR] \fIsnapshot\fR...
238 \fBzfs\fR \fBrelease\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
243 \fBzfs\fR \fBdiff\fR [\fB-FHt\fR] \fIsnapshot\fR \fIsnapshot|filesystem\fR
248 The \fBzfs\fR command configures \fBZFS\fR datasets within a \fBZFS\fR storage
249 pool, as described in \fBzpool\fR(1M). A dataset is identified by a unique path
250 within the \fBZFS\fR namespace. For example:
254 pool/{filesystem,volume,snapshot}
261 where the maximum length of a dataset name is \fBMAXNAMELEN\fR (256 bytes).
264 A dataset can be one of the following:
268 \fB\fIfile system\fR\fR
272 A \fBZFS\fR dataset of type \fBfilesystem\fR can be mounted within the standard
273 system namespace and behaves like other file systems. While \fBZFS\fR file
274 systems are designed to be \fBPOSIX\fR compliant, known issues exist that
275 prevent compliance in some cases. Applications that depend on standards
276 conformance might fail due to nonstandard behavior when checking file system
287 A logical volume exported as a raw or block device. This type of dataset should
288 only be used under special circumstances. File systems are typically used in
299 A read-only version of a file system or volume at a given point in time. It is
300 specified as \fIfilesystem@name\fR or \fIvolume@name\fR.
303 .SS "ZFS File System Hierarchy"
306 A \fBZFS\fR storage pool is a logical collection of devices that provide space
307 for datasets. A storage pool is also the root of the \fBZFS\fR file system
311 The root of the pool can be accessed as a file system, such as mounting and
312 unmounting, taking snapshots, and setting properties. The physical storage
313 characteristics, however, are managed by the \fBzpool\fR(1M) command.
316 See \fBzpool\fR(1M) for more information on creating and administering pools.
320 A snapshot is a read-only copy of a file system or volume. Snapshots can be
321 created extremely quickly, and initially consume no additional space within the
322 pool. As data within the active dataset changes, the snapshot consumes more
323 data than would otherwise be shared with the active dataset.
326 Snapshots can have arbitrary names. Snapshots of volumes can be cloned or
327 rolled back, but cannot be accessed independently.
330 File system snapshots can be accessed under the \fB\&.zfs/snapshot\fR directory
331 in the root of the file system. Snapshots are automatically mounted on demand
332 and may be unmounted at regular intervals. The visibility of the \fB\&.zfs\fR
333 directory can be controlled by the \fBsnapdir\fR property.
337 A clone is a writable volume or file system whose initial contents are the same
338 as another dataset. As with snapshots, creating a clone is nearly
339 instantaneous, and initially consumes no additional space.
342 Clones can only be created from a snapshot. When a snapshot is cloned, it
343 creates an implicit dependency between the parent and child. Even though the
344 clone is created somewhere else in the dataset hierarchy, the original snapshot
345 cannot be destroyed as long as a clone exists. The \fBorigin\fR property
346 exposes this dependency, and the \fBdestroy\fR command lists any such
347 dependencies, if they exist.
350 The clone parent-child dependency relationship can be reversed by using the
351 \fBpromote\fR subcommand. This causes the "origin" file system to become a
352 clone of the specified file system, which makes it possible to destroy the file
353 system that the clone was created from.
357 Creating a \fBZFS\fR file system is a simple operation, so the number of file
358 systems per system is likely to be numerous. To cope with this, \fBZFS\fR
359 automatically manages mounting and unmounting file systems without the need to
360 edit the \fB/etc/vfstab\fR file. All automatically managed file systems are
361 mounted by \fBZFS\fR at boot time.
364 By default, file systems are mounted under \fB/\fIpath\fR\fR, where \fIpath\fR
365 is the name of the file system in the \fBZFS\fR namespace. Directories are
366 created and destroyed as needed.
369 A file system can also have a mount point set in the \fBmountpoint\fR property.
370 This directory is created as needed, and \fBZFS\fR automatically mounts the
371 file system when the \fBzfs mount -a\fR command is invoked (without editing
372 \fB/etc/vfstab\fR). The \fBmountpoint\fR property can be inherited, so if
373 \fBpool/home\fR has a mount point of \fB/export/stuff\fR, then
374 \fBpool/home/user\fR automatically inherits a mount point of
375 \fB/export/stuff/user\fR.
378 A file system \fBmountpoint\fR property of \fBnone\fR prevents the file system
382 If needed, \fBZFS\fR file systems can also be managed with traditional tools
383 (\fBmount\fR, \fBumount\fR, \fB/etc/vfstab\fR). If a file system's mount point
384 is set to \fBlegacy\fR, \fBZFS\fR makes no attempt to manage the file system,
385 and the administrator is responsible for mounting and unmounting the file
390 A \fBZFS\fR file system can be added to a non-global zone by using the
391 \fBzonecfg\fR \fBadd fs\fR subcommand. A \fBZFS\fR file system that is added to
392 a non-global zone must have its \fBmountpoint\fR property set to \fBlegacy\fR.
395 The physical properties of an added file system are controlled by the global
396 administrator. However, the zone administrator can create, modify, or destroy
397 files within the added file system, depending on how the file system is
401 A dataset can also be delegated to a non-global zone by using the \fBzonecfg\fR
402 \fBadd dataset\fR subcommand. You cannot delegate a dataset to one zone and the
403 children of the same dataset to another zone. The zone administrator can change
404 properties of the dataset or any of its children. However, the \fBquota\fR
405 property is controlled by the global administrator.
408 A \fBZFS\fR volume can be added as a device to a non-global zone by using the
409 \fBzonecfg\fR \fBadd device\fR subcommand. However, its physical properties can
410 be modified only by the global administrator.
413 For more information about \fBzonecfg\fR syntax, see \fBzonecfg\fR(1M).
416 After a dataset is delegated to a non-global zone, the \fBzoned\fR property is
417 automatically set. A zoned file system cannot be mounted in the global zone,
418 since the zone administrator might have to set the mount point to an
422 The global administrator can forcibly clear the \fBzoned\fR property, though
423 this should be done with extreme care. The global administrator should verify
424 that all the mount points are acceptable before clearing the property.
425 .SS "Native Properties"
428 Properties are divided into two types, native properties and user-defined (or
429 "user") properties. Native properties either export internal statistics or
430 control \fBZFS\fR behavior. In addition, native properties are either editable
431 or read-only. User properties have no effect on \fBZFS\fR behavior, but you can
432 use them to annotate datasets in a way that is meaningful in your environment.
433 For more information about user properties, see the "User Properties" section,
437 Every dataset has a set of properties that export statistics about the dataset
438 as well as control various behaviors. Properties are inherited from the parent
439 unless overridden by the child. Some properties apply only to certain types of
440 datasets (file systems, volumes, or snapshots).
443 The values of numeric properties can be specified using human-readable suffixes
444 (for example, \fBk\fR, \fBKB\fR, \fBM\fR, \fBGb\fR, and so forth, up to \fBZ\fR
445 for zettabyte). The following are all valid (and equal) specifications:
456 The values of non-numeric properties are case sensitive and must be lowercase,
457 except for \fBmountpoint\fR, \fBsharenfs\fR, and \fBsharesmb\fR.
460 The following native properties consist of read-only statistics about the
461 dataset. These properties can be neither set, nor inherited. Native properties
462 apply to all dataset types unless otherwise noted.
466 \fB\fBavailable\fR\fR
470 The amount of space available to the dataset and all its children, assuming
471 that there is no other activity in the pool. Because space is shared within a
472 pool, availability can be limited by any number of factors, including physical
473 pool size, quotas, reservations, or other datasets within the pool.
475 This property can also be referred to by its shortened column name,
482 \fB\fBcompressratio\fR\fR
486 For non-snapshots, the compression ratio achieved for the \fBused\fR
487 space of this dataset, expressed as a multiplier. The \fBused\fR
488 property includes descendant datasets, and, for clones, does not include
489 the space shared with the origin snapshot. For snapshots, the
490 \fBcompressratio\fR is the same as the \fBrefcompressratio\fR property.
491 Compression can be turned on by running: \fBzfs set compression=on
492 \fIdataset\fR\fR. The default value is \fBoff\fR.
502 The time this dataset was created.
512 For snapshots, this property is a comma-separated list of filesystems or
513 volumes which are clones of this snapshot. The clones' \fBorigin\fR property
514 is this snapshot. If the \fBclones\fR property is not empty, then this
515 snapshot can not be destroyed (even with the \fB-r\fR or \fB-f\fR options).
521 \fB\fBdefer_destroy\fR\fR
525 This property is \fBon\fR if the snapshot has been marked for deferred destroy
526 by using the \fBzfs destroy\fR \fB-d\fR command. Otherwise, the property is
537 For file systems, indicates whether the file system is currently mounted. This
538 property can be either \fByes\fR or \fBno\fR.
548 For cloned file systems or volumes, the snapshot from which the clone was
549 created. See also the \fBclones\fR property.
555 \fB\fBreferenced\fR\fR
559 The amount of data that is accessible by this dataset, which may or may not be
560 shared with other datasets in the pool. When a snapshot or clone is created, it
561 initially references the same amount of space as the file system or snapshot it
562 was created from, since its contents are identical.
564 This property can also be referred to by its shortened column name,
571 \fB\fBrefcompressratio\fR\fR
575 The compression ratio achieved for the \fBreferenced\fR space of this
576 dataset, expressed as a multiplier. See also the \fBcompressratio\fR
587 The type of dataset: \fBfilesystem\fR, \fBvolume\fR, or \fBsnapshot\fR.
597 The amount of space consumed by this dataset and all its descendents. This is
598 the value that is checked against this dataset's quota and reservation. The
599 space used does not include this dataset's reservation, but does take into
600 account the reservations of any descendent datasets. The amount of space that a
601 dataset consumes from its parent, as well as the amount of space that are freed
602 if this dataset is recursively destroyed, is the greater of its space used and
605 When snapshots (see the "Snapshots" section) are created, their space is
606 initially shared between the snapshot and the file system, and possibly with
607 previous snapshots. As the file system changes, space that was previously
608 shared becomes unique to the snapshot, and counted in the snapshot's space
609 used. Additionally, deleting snapshots can increase the amount of space unique
610 to (and used by) other snapshots.
612 The amount of space used, available, or referenced does not take into account
613 pending changes. Pending changes are generally accounted for within a few
614 seconds. Committing a change to a disk using \fBfsync\fR(3c) or \fBO_SYNC\fR
615 does not necessarily guarantee that the space usage information is updated
626 The \fBusedby*\fR properties decompose the \fBused\fR properties into the
627 various reasons that space is used. Specifically, \fBused\fR =
628 \fBusedbychildren\fR + \fBusedbydataset\fR + \fBusedbyrefreservation\fR +,
629 \fBusedbysnapshots\fR. These properties are only available for datasets created
630 on \fBzpool\fR "version 13" pools.
636 \fB\fBusedbychildren\fR\fR
640 The amount of space used by children of this dataset, which would be freed if
641 all the dataset's children were destroyed.
647 \fB\fBusedbydataset\fR\fR
651 The amount of space used by this dataset itself, which would be freed if the
652 dataset were destroyed (after first removing any \fBrefreservation\fR and
653 destroying any necessary snapshots or descendents).
659 \fB\fBusedbyrefreservation\fR\fR
663 The amount of space used by a \fBrefreservation\fR set on this dataset, which
664 would be freed if the \fBrefreservation\fR was removed.
670 \fB\fBusedbysnapshots\fR\fR
674 The amount of space consumed by snapshots of this dataset. In particular, it is
675 the amount of space that would be freed if all of this dataset's snapshots were
676 destroyed. Note that this is not simply the sum of the snapshots' \fBused\fR
677 properties because space can be shared by multiple snapshots.
683 \fB\fBuserused@\fR\fIuser\fR\fR
687 The amount of space consumed by the specified user in this dataset. Space is
688 charged to the owner of each file, as displayed by \fBls\fR \fB-l\fR. The
689 amount of space charged is displayed by \fBdu\fR and \fBls\fR \fB-s\fR. See the
690 \fBzfs userspace\fR subcommand for more information.
692 Unprivileged users can access only their own space usage. The root user, or a
693 user who has been granted the \fBuserused\fR privilege with \fBzfs allow\fR,
694 can access everyone's usage.
696 The \fBuserused@\fR... properties are not displayed by \fBzfs get all\fR. The
697 user's name must be appended after the \fB@\fR symbol, using one of the
703 \fIPOSIX name\fR (for example, \fBjoe\fR)
709 \fIPOSIX numeric ID\fR (for example, \fB789\fR)
715 \fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
721 \fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
732 This property is set to the number of user holds on this snapshot. User holds
733 are set by using the \fBzfs hold\fR command.
739 \fB\fBgroupused@\fR\fIgroup\fR\fR
743 The amount of space consumed by the specified group in this dataset. Space is
744 charged to the group of each file, as displayed by \fBls\fR \fB-l\fR. See the
745 \fBuserused@\fR\fIuser\fR property for more information.
747 Unprivileged users can only access their own groups' space usage. The root
748 user, or a user who has been granted the \fBgroupused\fR privilege with \fBzfs
749 allow\fR, can access all groups' usage.
755 \fB\fBvolblocksize\fR=\fIblocksize\fR\fR
759 For volumes, specifies the block size of the volume. The \fBblocksize\fR cannot
760 be changed once the volume has been written, so it should be set at volume
761 creation time. The default \fBblocksize\fR for volumes is 8 Kbytes. Any power
762 of 2 from 512 bytes to 128 Kbytes is valid.
764 This property can also be referred to by its shortened column name,
775 The amount of \fBreferenced\fR space written to this dataset since the
782 \fB\fBwritten@\fR\fIsnapshot\fR\fR
786 The amount of \fBreferenced\fR space written to this dataset since the
787 specified snapshot. This is the space that is referenced by this dataset
788 but was not referenced by the specified snapshot.
790 The \fIsnapshot\fR may be specified as a short snapshot name (just the part
791 after the \fB@\fR), in which case it will be interpreted as a snapshot in
792 the same filesystem as this dataset.
793 The \fIsnapshot\fR be a full snapshot name (\fIfilesystem\fR@\fIsnapshot\fR),
794 which for clones may be a snapshot in the origin's filesystem (or the origin
795 of the origin's filesystem, etc).
800 The following native properties can be used to change the behavior of a
805 \fB\fBaclinherit\fR=\fBdiscard\fR | \fBnoallow\fR | \fBrestricted\fR |
806 \fBpassthrough\fR | \fBpassthrough-x\fR\fR
810 Controls how \fBACL\fR entries are inherited when files and directories are
811 created. A file system with an \fBaclinherit\fR property of \fBdiscard\fR does
812 not inherit any \fBACL\fR entries. A file system with an \fBaclinherit\fR
813 property value of \fBnoallow\fR only inherits inheritable \fBACL\fR entries
814 that specify "deny" permissions. The property value \fBrestricted\fR (the
815 default) removes the \fBwrite_acl\fR and \fBwrite_owner\fR permissions when the
816 \fBACL\fR entry is inherited. A file system with an \fBaclinherit\fR property
817 value of \fBpassthrough\fR inherits all inheritable \fBACL\fR entries without
818 any modifications made to the \fBACL\fR entries when they are inherited. A file
819 system with an \fBaclinherit\fR property value of \fBpassthrough-x\fR has the
820 same meaning as \fBpassthrough\fR, except that the \fBowner@\fR, \fBgroup@\fR,
821 and \fBeveryone@\fR \fBACE\fRs inherit the execute permission only if the file
822 creation mode also requests the execute bit.
824 When the property value is set to \fBpassthrough\fR, files are created with a
825 mode determined by the inheritable \fBACE\fRs. If no inheritable \fBACE\fRs
826 exist that affect the mode, then the mode is set in accordance to the requested
827 mode from the application.
833 \fB\fBaclmode\fR=\fBdiscard\fR | \fBgroupmask\fR | \fBpassthrough\fR\fR
837 Controls how an \fBACL\fR is modified during \fBchmod\fR(2). A file system with
838 an \fBaclmode\fR property of \fBdiscard\fR (the default) deletes all \fBACL\fR
839 entries that do not represent the mode of the file. An \fBaclmode\fR property
840 of \fBgroupmask\fR reduces permissions granted in all \fBALLOW\fR entries found
841 in the \fBACL\fR such that they are no greater than the group permissions
842 specified by \fBchmod\fR. A file system with an \fBaclmode\fR property of
843 \fBpassthrough\fR indicates that no changes are made to the \fBACL\fR other
844 than creating or updating the necessary \fBACL\fR entries to
845 represent the new mode of the file or directory.
851 \fB\fBatime\fR=\fBon\fR | \fBoff\fR\fR
855 Controls whether the access time for files is updated when they are read.
856 Turning this property off avoids producing write traffic when reading files and
857 can result in significant performance gains, though it might confuse mailers
858 and other similar utilities. The default value is \fBon\fR.
864 \fB\fBcanmount\fR=\fBon\fR | \fBoff\fR | \fBnoauto\fR\fR
868 If this property is set to \fBoff\fR, the file system cannot be mounted, and is
869 ignored by \fBzfs mount -a\fR. Setting this property to \fBoff\fR is similar to
870 setting the \fBmountpoint\fR property to \fBnone\fR, except that the dataset
871 still has a normal \fBmountpoint\fR property, which can be inherited. Setting
872 this property to \fBoff\fR allows datasets to be used solely as a mechanism to
873 inherit properties. One example of setting \fBcanmount=\fR\fBoff\fR is to have
874 two datasets with the same \fBmountpoint\fR, so that the children of both
875 datasets appear in the same directory, but might have different inherited
878 When the \fBnoauto\fR option is set, a dataset can only be mounted and
879 unmounted explicitly. The dataset is not mounted automatically when the dataset
880 is created or imported, nor is it mounted by the \fBzfs mount -a\fR command or
881 unmounted by the \fBzfs unmount -a\fR command.
883 This property is not inherited.
889 \fB\fBchecksum\fR=\fBon\fR | \fBoff\fR | \fBfletcher2,\fR| \fBfletcher4\fR |
894 Controls the checksum used to verify data integrity. The default value is
895 \fBon\fR, which automatically selects an appropriate algorithm (currently,
896 \fBfletcher2\fR, but this may change in future releases). The value \fBoff\fR
897 disables integrity checking on user data. Disabling checksums is \fBNOT\fR a
898 recommended practice.
900 Changing this property affects only newly-written data.
906 \fB\fBcompression\fR=\fBon\fR | \fBoff\fR | \fBlzjb\fR | \fBgzip\fR |
907 \fBgzip-\fR\fIN\fR | \fBzle\fR\fR
911 Controls the compression algorithm used for this dataset. The \fBlzjb\fR
912 compression algorithm is optimized for performance while providing decent data
913 compression. Setting compression to \fBon\fR uses the \fBlzjb\fR compression
914 algorithm. The \fBgzip\fR compression algorithm uses the same compression as
915 the \fBgzip\fR(1) command. You can specify the \fBgzip\fR level by using the
916 value \fBgzip-\fR\fIN\fR where \fIN\fR is an integer from 1 (fastest) to 9
917 (best compression ratio). Currently, \fBgzip\fR is equivalent to \fBgzip-6\fR
918 (which is also the default for \fBgzip\fR(1)). The \fBzle\fR compression
919 algorithm compresses runs of zeros.
921 This property can also be referred to by its shortened column name
922 \fBcompress\fR. Changing this property affects only newly-written data.
928 \fB\fBcopies\fR=\fB1\fR | \fB2\fR | \fB3\fR\fR
932 Controls the number of copies of data stored for this dataset. These copies are
933 in addition to any redundancy provided by the pool, for example, mirroring or
934 RAID-Z. The copies are stored on different disks, if possible. The space used
935 by multiple copies is charged to the associated file and dataset, changing the
936 \fBused\fR property and counting against quotas and reservations.
938 Changing this property only affects newly-written data. Therefore, set this
939 property at file system creation time by using the \fB-o\fR
940 \fBcopies=\fR\fIN\fR option.
946 \fB\fBdevices\fR=\fBon\fR | \fBoff\fR\fR
950 Controls whether device nodes can be opened on this file system. The default
957 \fB\fBexec\fR=\fBon\fR | \fBoff\fR\fR
961 Controls whether processes can be executed from within this file system. The
962 default value is \fBon\fR.
968 \fB\fBmountpoint\fR=\fIpath\fR | \fBnone\fR | \fBlegacy\fR\fR
972 Controls the mount point used for this file system. See the "Mount Points"
973 section for more information on how this property is used.
975 When the \fBmountpoint\fR property is changed for a file system, the file
976 system and any children that inherit the mount point are unmounted. If the new
977 value is \fBlegacy\fR, then they remain unmounted. Otherwise, they are
978 automatically remounted in the new location if the property was previously
979 \fBlegacy\fR or \fBnone\fR, or if they were mounted before the property was
980 changed. In addition, any shared file systems are unshared and shared in the
987 \fB\fBnbmand\fR=\fBon\fR | \fBoff\fR\fR
991 Controls whether the file system should be mounted with \fBnbmand\fR (Non
992 Blocking mandatory locks). This is used for \fBCIFS\fR clients. Changes to this
993 property only take effect when the file system is umounted and remounted. See
994 \fBmount\fR(1M) for more information on \fBnbmand\fR mounts.
1000 \fB\fBprimarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
1004 Controls what is cached in the primary cache (ARC). If this property is set to
1005 \fBall\fR, then both user data and metadata is cached. If this property is set
1006 to \fBnone\fR, then neither user data nor metadata is cached. If this property
1007 is set to \fBmetadata\fR, then only metadata is cached. The default value is
1014 \fB\fBquota\fR=\fIsize\fR | \fBnone\fR\fR
1018 Limits the amount of space a dataset and its descendents can consume. This
1019 property enforces a hard limit on the amount of space used. This includes all
1020 space consumed by descendents, including file systems and snapshots. Setting a
1021 quota on a descendent of a dataset that already has a quota does not override
1022 the ancestor's quota, but rather imposes an additional limit.
1024 Quotas cannot be set on volumes, as the \fBvolsize\fR property acts as an
1031 \fB\fBuserquota@\fR\fIuser\fR=\fIsize\fR | \fBnone\fR\fR
1035 Limits the amount of space consumed by the specified user. User space
1036 consumption is identified by the \fBuserspace@\fR\fIuser\fR property.
1038 Enforcement of user quotas may be delayed by several seconds. This delay means
1039 that a user might exceed their quota before the system notices that they are
1040 over quota and begins to refuse additional writes with the \fBEDQUOT\fR error
1041 message . See the \fBzfs userspace\fR subcommand for more information.
1043 Unprivileged users can only access their own groups' space usage. The root
1044 user, or a user who has been granted the \fBuserquota\fR privilege with \fBzfs
1045 allow\fR, can get and set everyone's quota.
1047 This property is not available on volumes, on file systems before version 4, or
1048 on pools before version 15. The \fBuserquota@\fR... properties are not
1049 displayed by \fBzfs get all\fR. The user's name must be appended after the
1050 \fB@\fR symbol, using one of the following forms:
1055 \fIPOSIX name\fR (for example, \fBjoe\fR)
1061 \fIPOSIX numeric ID\fR (for example, \fB789\fR)
1067 \fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
1073 \fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
1080 \fB\fBgroupquota@\fR\fIgroup\fR=\fIsize\fR | \fBnone\fR\fR
1084 Limits the amount of space consumed by the specified group. Group space
1085 consumption is identified by the \fBuserquota@\fR\fIuser\fR property.
1087 Unprivileged users can access only their own groups' space usage. The root
1088 user, or a user who has been granted the \fBgroupquota\fR privilege with \fBzfs
1089 allow\fR, can get and set all groups' quotas.
1095 \fB\fBreadonly\fR=\fBon\fR | \fBoff\fR\fR
1099 Controls whether this dataset can be modified. The default value is \fBoff\fR.
1101 This property can also be referred to by its shortened column name,
1108 \fB\fBrecordsize\fR=\fIsize\fR\fR
1112 Specifies a suggested block size for files in the file system. This property is
1113 designed solely for use with database workloads that access files in fixed-size
1114 records. \fBZFS\fR automatically tunes block sizes according to internal
1115 algorithms optimized for typical access patterns.
1117 For databases that create very large files but access them in small random
1118 chunks, these algorithms may be suboptimal. Specifying a \fBrecordsize\fR
1119 greater than or equal to the record size of the database can result in
1120 significant performance gains. Use of this property for general purpose file
1121 systems is strongly discouraged, and may adversely affect performance.
1123 The size specified must be a power of two greater than or equal to 512 and less
1124 than or equal to 128 Kbytes.
1126 Changing the file system's \fBrecordsize\fR affects only files created
1127 afterward; existing files are unaffected.
1129 This property can also be referred to by its shortened column name,
1136 \fB\fBrefquota\fR=\fIsize\fR | \fBnone\fR\fR
1140 Limits the amount of space a dataset can consume. This property enforces a hard
1141 limit on the amount of space used. This hard limit does not include space used
1142 by descendents, including file systems and snapshots.
1148 \fB\fBrefreservation\fR=\fIsize\fR | \fBnone\fR\fR
1152 The minimum amount of space guaranteed to a dataset, not including its
1153 descendents. When the amount of space used is below this value, the dataset is
1154 treated as if it were taking up the amount of space specified by
1155 \fBrefreservation\fR. The \fBrefreservation\fR reservation is accounted for in
1156 the parent datasets' space used, and counts against the parent datasets' quotas
1159 If \fBrefreservation\fR is set, a snapshot is only allowed if there is enough
1160 free pool space outside of this reservation to accommodate the current number
1161 of "referenced" bytes in the dataset.
1163 This property can also be referred to by its shortened column name,
1170 \fB\fBreservation\fR=\fIsize\fR | \fBnone\fR\fR
1174 The minimum amount of space guaranteed to a dataset and its descendents. When
1175 the amount of space used is below this value, the dataset is treated as if it
1176 were taking up the amount of space specified by its reservation. Reservations
1177 are accounted for in the parent datasets' space used, and count against the
1178 parent datasets' quotas and reservations.
1180 This property can also be referred to by its shortened column name,
1187 \fB\fBsecondarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
1191 Controls what is cached in the secondary cache (L2ARC). If this property is set
1192 to \fBall\fR, then both user data and metadata is cached. If this property is
1193 set to \fBnone\fR, then neither user data nor metadata is cached. If this
1194 property is set to \fBmetadata\fR, then only metadata is cached. The default
1201 \fB\fBsetuid\fR=\fBon\fR | \fBoff\fR\fR
1205 Controls whether the set-\fBUID\fR bit is respected for the file system. The
1206 default value is \fBon\fR.
1212 \fB\fBshareiscsi\fR=\fBon\fR | \fBoff\fR\fR
1216 Like the \fBsharenfs\fR property, \fBshareiscsi\fR indicates whether a
1217 \fBZFS\fR volume is exported as an \fBiSCSI\fR target. The acceptable values
1218 for this property are \fBon\fR, \fBoff\fR, and \fBtype=disk\fR. The default
1219 value is \fBoff\fR. In the future, other target types might be supported. For
1220 example, \fBtape\fR.
1222 You might want to set \fBshareiscsi=on\fR for a file system so that all
1223 \fBZFS\fR volumes within the file system are shared by default. However,
1224 setting this property on a file system has no direct effect.
1230 \fB\fBsharesmb\fR=\fBon\fR | \fBoff\fR | \fIopts\fR\fR
1234 Controls whether the file system is shared by using the Solaris \fBCIFS\fR
1235 service, and what options are to be used. A file system with the \fBsharesmb\fR
1236 property set to \fBoff\fR is managed through traditional tools such as
1237 \fBsharemgr\fR(1M). Otherwise, the file system is automatically shared and
1238 unshared with the \fBzfs share\fR and \fBzfs unshare\fR commands. If the
1239 property is set to \fBon\fR, the \fBsharemgr\fR(1M) command is invoked with no
1240 options. Otherwise, the \fBsharemgr\fR(1M) command is invoked with options
1241 equivalent to the contents of this property.
1243 Because \fBSMB\fR shares requires a resource name, a unique resource name is
1244 constructed from the dataset name. The constructed name is a copy of the
1245 dataset name except that the characters in the dataset name, which would be
1246 illegal in the resource name, are replaced with underscore (\fB_\fR)
1247 characters. A pseudo property "name" is also supported that allows you to
1248 replace the data set name with a specified name. The specified name is then
1249 used to replace the prefix dataset in the case of inheritance. For example, if
1250 the dataset \fBdata/home/john\fR is set to \fBname=john\fR, then
1251 \fBdata/home/john\fR has a resource name of \fBjohn\fR. If a child dataset of
1252 \fBdata/home/john/backups\fR, it has a resource name of \fBjohn_backups\fR.
1254 When SMB shares are created, the SMB share name appears as an entry in the
1255 \fB\&.zfs/shares\fR directory. You can use the \fBls\fR or \fBchmod\fR command
1256 to display the share-level ACLs on the entries in this directory.
1258 When the \fBsharesmb\fR property is changed for a dataset, the dataset and any
1259 children inheriting the property are re-shared with the new options, only if
1260 the property was previously set to \fBoff\fR, or if they were shared before the
1261 property was changed. If the new property is set to \fBoff\fR, the file systems
1268 \fB\fBsharenfs\fR=\fBon\fR | \fBoff\fR | \fIopts\fR\fR
1272 Controls whether the file system is shared via \fBNFS\fR, and what options are
1273 used. A file system with a \fBsharenfs\fR property of \fBoff\fR is managed
1274 through traditional tools such as \fBshare\fR(1M), \fBunshare\fR(1M), and
1275 \fBdfstab\fR(4). Otherwise, the file system is automatically shared and
1276 unshared with the \fBzfs share\fR and \fBzfs unshare\fR commands. If the
1277 property is set to \fBon\fR, the \fBshare\fR(1M) command is invoked with no
1278 options. Otherwise, the \fBshare\fR(1M) command is invoked with options
1279 equivalent to the contents of this property.
1281 When the \fBsharenfs\fR property is changed for a dataset, the dataset and any
1282 children inheriting the property are re-shared with the new options, only if
1283 the property was previously \fBoff\fR, or if they were shared before the
1284 property was changed. If the new property is \fBoff\fR, the file systems are
1291 \fB\fBlogbias\fR = \fBlatency\fR | \fBthroughput\fR\fR
1295 Provide a hint to ZFS about handling of synchronous requests in this dataset.
1296 If \fBlogbias\fR is set to \fBlatency\fR (the default), ZFS will use pool log
1297 devices (if configured) to handle the requests at low latency. If \fBlogbias\fR
1298 is set to \fBthroughput\fR, ZFS will not use configured pool log devices. ZFS
1299 will instead optimize synchronous operations for global pool throughput and
1300 efficient use of resources.
1306 \fB\fBsnapdir\fR=\fBhidden\fR | \fBvisible\fR\fR
1310 Controls whether the \fB\&.zfs\fR directory is hidden or visible in the root of
1311 the file system as discussed in the "Snapshots" section. The default value is
1318 \fB\fBsync\fR=\fBdefault\fR | \fBalways\fR | \fBdisabled\fR\fR
1322 Controls the behavior of synchronous requests (e.g. fsync, O_DSYNC).
1323 \fBdefault\fR is the POSIX specified behavior of ensuring all synchronous
1324 requests are written to stable storage and all devices are flushed to ensure
1325 data is not cached by device controllers (this is the default). \fBalways\fR
1326 causes every file system transaction to be written and flushed before its
1327 system call returns. This has a large performance penalty. \fBdisabled\fR
1328 disables synchronous requests. File system transactions are only committed to
1329 stable storage periodically. This option will give the highest performance.
1330 However, it is very dangerous as ZFS would be ignoring the synchronous
1331 transaction demands of applications such as databases or NFS. Administrators
1332 should only use this option when the risks are understood.
1338 \fB\fBversion\fR=\fB1\fR | \fB2\fR | \fBcurrent\fR\fR
1342 The on-disk version of this file system, which is independent of the pool
1343 version. This property can only be set to later supported versions. See the
1344 \fBzfs upgrade\fR command.
1350 \fB\fBvolsize\fR=\fIsize\fR\fR
1354 For volumes, specifies the logical size of the volume. By default, creating a
1355 volume establishes a reservation of equal size. For storage pools with a
1356 version number of 9 or higher, a \fBrefreservation\fR is set instead. Any
1357 changes to \fBvolsize\fR are reflected in an equivalent change to the
1358 reservation (or \fBrefreservation\fR). The \fBvolsize\fR can only be set to a
1359 multiple of \fBvolblocksize\fR, and cannot be zero.
1361 The reservation is kept equal to the volume's logical size to prevent
1362 unexpected behavior for consumers. Without the reservation, the volume could
1363 run out of space, resulting in undefined behavior or data corruption, depending
1364 on how the volume is used. These effects can also occur when the volume size is
1365 changed while it is in use (particularly when shrinking the size). Extreme care
1366 should be used when adjusting the volume size.
1368 Though not recommended, a "sparse volume" (also known as "thin provisioning")
1369 can be created by specifying the \fB-s\fR option to the \fBzfs create -V\fR
1370 command, or by changing the reservation after the volume has been created. A
1371 "sparse volume" is a volume where the reservation is less then the volume size.
1372 Consequently, writes to a sparse volume can fail with \fBENOSPC\fR when the
1373 pool is low on space. For a sparse volume, changes to \fBvolsize\fR are not
1374 reflected in the reservation.
1380 \fB\fBvscan\fR=\fBon\fR | \fBoff\fR\fR
1384 Controls whether regular files should be scanned for viruses when a file is
1385 opened and closed. In addition to enabling this property, the virus scan
1386 service must also be enabled for virus scanning to occur. The default value is
1393 \fB\fBxattr\fR=\fBon\fR | \fBoff\fR\fR
1397 Controls whether extended attributes are enabled for this file system. The
1398 default value is \fBon\fR.
1404 \fB\fBzoned\fR=\fBon\fR | \fBoff\fR\fR
1408 Controls whether the dataset is managed from a non-global zone. See the "Zones"
1409 section for more information. The default value is \fBoff\fR.
1414 The following three properties cannot be changed after the file system is
1415 created, and therefore, should be set when the file system is created. If the
1416 properties are not set with the \fBzfs create\fR or \fBzpool create\fR
1417 commands, these properties are inherited from the parent dataset. If the parent
1418 dataset lacks these properties due to having been created prior to these
1419 features being supported, the new file system will have the default values for
1424 \fB\fBcasesensitivity\fR=\fBsensitive\fR | \fBinsensitive\fR | \fBmixed\fR\fR
1428 Indicates whether the file name matching algorithm used by the file system
1429 should be case-sensitive, case-insensitive, or allow a combination of both
1430 styles of matching. The default value for the \fBcasesensitivity\fR property is
1431 \fBsensitive\fR. Traditionally, UNIX and POSIX file systems have case-sensitive
1434 The \fBmixed\fR value for the \fBcasesensitivity\fR property indicates that the
1435 file system can support requests for both case-sensitive and case-insensitive
1436 matching behavior. Currently, case-insensitive matching behavior on a file
1437 system that supports mixed behavior is limited to the Solaris CIFS server
1438 product. For more information about the \fBmixed\fR value behavior, see the
1439 \fISolaris ZFS Administration Guide\fR.
1445 \fB\fBnormalization\fR = \fBnone\fR | \fBformC\fR | \fBformD\fR | \fBformKC\fR
1450 Indicates whether the file system should perform a \fBunicode\fR normalization
1451 of file names whenever two file names are compared, and which normalization
1452 algorithm should be used. File names are always stored unmodified, names are
1453 normalized as part of any comparison process. If this property is set to a
1454 legal value other than \fBnone\fR, and the \fButf8only\fR property was left
1455 unspecified, the \fButf8only\fR property is automatically set to \fBon\fR. The
1456 default value of the \fBnormalization\fR property is \fBnone\fR. This property
1457 cannot be changed after the file system is created.
1463 \fB\fButf8only\fR=\fBon\fR | \fBoff\fR\fR
1467 Indicates whether the file system should reject file names that include
1468 characters that are not present in the \fBUTF-8\fR character code set. If this
1469 property is explicitly set to \fBoff\fR, the normalization property must either
1470 not be explicitly set or be set to \fBnone\fR. The default value for the
1471 \fButf8only\fR property is \fBoff\fR. This property cannot be changed after the
1472 file system is created.
1477 The \fBcasesensitivity\fR, \fBnormalization\fR, and \fButf8only\fR properties
1478 are also new permissions that can be assigned to non-privileged users by using
1479 the \fBZFS\fR delegated administration feature.
1480 .SS "Temporary Mount Point Properties"
1483 When a file system is mounted, either through \fBmount\fR(1M) for legacy mounts
1484 or the \fBzfs mount\fR command for normal file systems, its mount options are
1485 set according to its properties. The correlation between properties and mount
1486 options is as follows:
1490 PROPERTY MOUNT OPTION
1491 devices devices/nodevices
1494 setuid setuid/nosetuid
1502 In addition, these options can be set on a per-mount basis using the \fB-o\fR
1503 option, without affecting the property that is stored on disk. The values
1504 specified on the command line override the values stored in the dataset. The
1505 \fB-nosuid\fR option is an alias for \fBnodevices,nosetuid\fR. These properties
1506 are reported as "temporary" by the \fBzfs get\fR command. If the properties are
1507 changed while the dataset is mounted, the new setting overrides any temporary
1509 .SS "User Properties"
1512 In addition to the standard native properties, \fBZFS\fR supports arbitrary
1513 user properties. User properties have no effect on \fBZFS\fR behavior, but
1514 applications or administrators can use them to annotate datasets (file systems,
1515 volumes, and snapshots).
1518 User property names must contain a colon (\fB:\fR) character to distinguish
1519 them from native properties. They may contain lowercase letters, numbers, and
1520 the following punctuation characters: colon (\fB:\fR), dash (\fB-\fR), period
1521 (\fB\&.\fR), and underscore (\fB_\fR). The expected convention is that the
1522 property name is divided into two portions such as
1523 \fImodule\fR\fB:\fR\fIproperty\fR, but this namespace is not enforced by
1524 \fBZFS\fR. User property names can be at most 256 characters, and cannot begin
1525 with a dash (\fB-\fR).
1528 When making programmatic use of user properties, it is strongly suggested to
1529 use a reversed \fBDNS\fR domain name for the \fImodule\fR component of property
1530 names to reduce the chance that two independently-developed packages use the
1531 same property name for different purposes. Property names beginning with
1532 \fBcom.sun\fR. are reserved for use by Sun Microsystems.
1535 The values of user properties are arbitrary strings, are always inherited, and
1536 are never validated. All of the commands that operate on properties (\fBzfs
1537 list\fR, \fBzfs get\fR, \fBzfs set\fR, and so forth) can be used to manipulate
1538 both native properties and user properties. Use the \fBzfs inherit\fR command
1539 to clear a user property . If the property is not defined in any parent
1540 dataset, it is removed entirely. Property values are limited to 1024
1542 .SS "ZFS Volumes as Swap or Dump Devices"
1545 During an initial installation a swap device and dump device are created on
1546 \fBZFS\fR volumes in the \fBZFS\fR root pool. By default, the swap area size is
1547 based on 1/2 the size of physical memory up to 2 Gbytes. The size of the dump
1548 device depends on the kernel's requirements at installation time. Separate
1549 \fBZFS\fR volumes must be used for the swap area and dump devices. Do not swap
1550 to a file on a \fBZFS\fR file system. A \fBZFS\fR swap file configuration is
1554 If you need to change your swap area or dump device after the system is
1555 installed or upgraded, use the \fBswap\fR(1M) and \fBdumpadm\fR(1M) commands.
1556 If you need to change the size of your swap area or dump device, see the
1557 \fISolaris ZFS Administration Guide\fR.
1561 All subcommands that modify state are logged persistently to the pool in their
1570 Displays a help message.
1576 \fB\fBzfs create\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ...
1581 Creates a new \fBZFS\fR file system. The file system is automatically mounted
1582 according to the \fBmountpoint\fR property inherited from the parent.
1590 Creates all the non-existing parent datasets. Datasets created in this manner
1591 are automatically mounted according to the \fBmountpoint\fR property inherited
1592 from their parent. Any property specified on the command line using the
1593 \fB-o\fR option is ignored. If the target filesystem already exists, the
1594 operation completes successfully.
1600 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1604 Sets the specified property as if the command \fBzfs set\fR
1605 \fIproperty\fR=\fIvalue\fR was invoked at the same time the dataset was
1606 created. Any editable \fBZFS\fR property can also be set at creation time.
1607 Multiple \fB-o\fR options can be specified. An error results if the same
1608 property is specified in multiple \fB-o\fR options.
1616 \fB\fBzfs create\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR
1617 \fIproperty\fR=\fIvalue\fR] ... \fB-V\fR \fIsize\fR \fIvolume\fR\fR
1621 Creates a volume of the given size. The volume is exported as a block device in
1622 \fB/dev/zvol/{dsk,rdsk}/\fR\fIpath\fR, where \fIpath\fR is the name of the
1623 volume in the \fBZFS\fR namespace. The size represents the logical size as
1624 exported by the device. By default, a reservation of equal size is created.
1626 \fIsize\fR is automatically rounded up to the nearest 128 Kbytes to ensure that
1627 the volume has an integral number of blocks regardless of \fIblocksize\fR.
1635 Creates all the non-existing parent datasets. Datasets created in this manner
1636 are automatically mounted according to the \fBmountpoint\fR property inherited
1637 from their parent. Any property specified on the command line using the
1638 \fB-o\fR option is ignored. If the target filesystem already exists, the
1639 operation completes successfully.
1649 Creates a sparse volume with no reservation. See \fBvolsize\fR in the Native
1650 Properties section for more information about sparse volumes.
1656 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1660 Sets the specified property as if the \fBzfs set\fR \fIproperty\fR=\fIvalue\fR
1661 command was invoked at the same time the dataset was created. Any editable
1662 \fBZFS\fR property can also be set at creation time. Multiple \fB-o\fR options
1663 can be specified. An error results if the same property is specified in
1664 multiple \fB-o\fR options.
1670 \fB\fB-b\fR \fIblocksize\fR\fR
1674 Equivalent to \fB-o\fR \fBvolblocksize\fR=\fIblocksize\fR. If this option is
1675 specified in conjunction with \fB-o\fR \fBvolblocksize\fR, the resulting
1676 behavior is undefined.
1684 \fBzfs destroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
1688 Destroys the given dataset. By default, the command unshares any file systems
1689 that are currently shared, unmounts any file systems that are currently
1690 mounted, and refuses to destroy a dataset that has active dependents (children
1699 Recursively destroy all children.
1709 Recursively destroy all dependents, including cloned file systems outside the
1720 Force an unmount of any file systems using the \fBunmount -f\fR command. This
1721 option has no effect on non-file systems or unmounted file systems.
1731 Do a dry-run ("No-op") deletion. No data will be deleted. This is
1732 useful in conjunction with the \fB-v\fR or \fB-p\fR flags to determine what
1733 data would be deleted.
1743 Print machine-parsable verbose information about the deleted data.
1753 Print verbose information about the deleted data.
1756 Extreme care should be taken when applying either the \fB-r\fR or the \fB-R\fR
1757 options, as they can destroy large portions of a pool and cause unexpected
1758 behavior for mounted file systems in use.
1764 \fBzfs destroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,...]
1768 The given snapshots are destroyed immediately if and only if the \fBzfs
1769 destroy\fR command without the \fB-d\fR option would have destroyed it. Such
1770 immediate destruction would occur, for example, if the snapshot had no clones
1771 and the user-initiated reference count were zero.
1773 If a snapshot does not qualify for immediate destruction, it is marked for
1774 deferred deletion. In this state, it exists as a usable, visible snapshot until
1775 both of the preconditions listed above are met, at which point it is destroyed.
1777 An inclusive range of snapshots may be specified by separating the
1778 first and last snapshots with a percent sign.
1779 The first and/or last snapshots may be left blank, in which case the
1780 filesystem's oldest or newest snapshot will be implied.
1783 (or ranges of snapshots) of the same filesystem or volume may be specified
1784 in a comma-separated list of snapshots.
1785 Only the snapshot's short name (the
1786 part after the \fB@\fR) should be specified when using a range or
1787 comma-separated list to identify multiple snapshots.
1795 Defer snapshot deletion.
1805 Destroy (or mark for deferred deletion) all snapshots with this name in
1806 descendent file systems.
1816 Recursively destroy all dependents.
1826 Do a dry-run ("No-op") deletion. No data will be deleted. This is
1827 useful in conjunction with the \fB-v\fR or \fB-p\fR flags to determine what
1828 data would be deleted.
1838 Print machine-parsable verbose information about the deleted data.
1848 Print verbose information about the deleted data.
1852 Extreme care should be taken when applying either the \fB-r\fR or the \fB-f\fR
1853 options, as they can destroy large portions of a pool and cause unexpected
1854 behavior for mounted file systems in use.
1860 \fB\fBzfs snapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ...
1861 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR\fR...
1865 Creates snapshots with the given names. All previous modifications by
1866 successful system calls to the file system are part of the snapshots.
1867 Snapshots are taken atomically, so that all snapshots correspond to the same
1868 moment in time. See the "Snapshots" section for details.
1876 Recursively create snapshots of all descendent datasets
1882 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1886 Sets the specified property; see \fBzfs create\fR for details.
1894 \fB\fBzfs rollback\fR [\fB-rRf\fR] \fIsnapshot\fR\fR
1898 Roll back the given dataset to a previous snapshot. When a dataset is rolled
1899 back, all data that has changed since the snapshot is discarded, and the
1900 dataset reverts to the state at the time of the snapshot. By default, the
1901 command refuses to roll back to a snapshot other than the most recent one. In
1902 order to do so, all intermediate snapshots must be destroyed by specifying the
1905 The \fB-rR\fR options do not recursively destroy the child snapshots of a
1906 recursive snapshot. Only the top-level recursive snapshot is destroyed by
1907 either of these options. To completely roll back a recursive snapshot, you must
1908 rollback the individual child snapshots.
1916 Recursively destroy any snapshots more recent than the one specified.
1926 Recursively destroy any more recent snapshots, as well as any clones of those
1937 Used with the \fB-R\fR option to force an unmount of any clone file systems
1938 that are to be destroyed.
1946 \fB\fBzfs clone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ...
1947 \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR\fR
1951 Creates a clone of the given snapshot. See the "Clones" section for details.
1952 The target dataset can be located anywhere in the \fBZFS\fR hierarchy, and is
1953 created as the same type as the original.
1961 Creates all the non-existing parent datasets. Datasets created in this manner
1962 are automatically mounted according to the \fBmountpoint\fR property inherited
1963 from their parent. If the target filesystem or volume already exists, the
1964 operation completes successfully.
1970 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1974 Sets the specified property; see \fBzfs create\fR for details.
1982 \fB\fBzfs promote\fR \fIclone-filesystem\fR\fR
1986 Promotes a clone file system to no longer be dependent on its "origin"
1987 snapshot. This makes it possible to destroy the file system that the clone was
1988 created from. The clone parent-child dependency relationship is reversed, so
1989 that the origin file system becomes a clone of the specified file system.
1991 The snapshot that was cloned, and any snapshots previous to this snapshot, are
1992 now owned by the promoted clone. The space they use moves from the origin file
1993 system to the promoted clone, so enough space must be available to accommodate
1994 these snapshots. No new space is consumed by this operation, but the space
1995 accounting is adjusted. The promoted clone must not have any conflicting
1996 snapshot names of its own. The \fBrename\fR subcommand can be used to rename
1997 any conflicting snapshots.
2003 \fB\fBzfs rename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2007 \fB\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2011 \fB\fBzfs rename\fR [\fB-fp\fR] \fIfilesystem\fR|\fIvolume\fR
2012 \fIfilesystem\fR|\fIvolume\fR\fR
2016 Renames the given dataset. The new target can be located anywhere in the
2017 \fBZFS\fR hierarchy, with the exception of snapshots. Snapshots can only be
2018 renamed within the parent file system or volume. When renaming a snapshot, the
2019 parent file system of the snapshot does not need to be specified as part of the
2020 second argument. Renamed file systems can inherit new mount points, in which
2021 case they are unmounted and remounted at the new mount point.
2029 Creates all the nonexistent parent datasets. Datasets created in this manner
2030 are automatically mounted according to the \fBmountpoint\fR property inherited
2041 Force unmount any filesystems that need to be unmounted in the process.
2049 \fB\fBzfs rename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR\fR
2053 Recursively rename the snapshots of all descendent datasets. Snapshots are the
2054 only dataset that can be renamed recursively.
2060 \fB\fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-H\fR] [\fB-o\fR
2061 \fIproperty\fR[,\fI\&...\fR]] [ \fB-t\fR \fItype\fR[,\fI\&...\fR]] [ \fB-s\fR
2062 \fIproperty\fR ] ... [ \fB-S\fR \fIproperty\fR ] ...
2063 [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR] ...\fR
2067 Lists the property information for the given datasets in tabular form. If
2068 specified, you can list property information by the absolute pathname or the
2069 relative pathname. By default, all file systems and volumes are displayed.
2070 Snapshots are displayed if the \fBlistsnaps\fR property is \fBon\fR (the
2071 default is \fBoff\fR) . The following fields are displayed,
2072 \fBname,used,available,referenced,mountpoint\fR.
2080 Used for scripting mode. Do not print headers and separate fields by a single
2081 tab instead of arbitrary white space.
2091 Recursively display any children of the dataset on the command line.
2097 \fB\fB-d\fR \fIdepth\fR\fR
2101 Recursively display any children of the dataset, limiting the recursion to
2102 \fIdepth\fR. A depth of \fB1\fR will display only the dataset and its direct
2109 \fB\fB-o\fR \fIproperty\fR\fR
2113 A comma-separated list of properties to display. The property must be:
2118 One of the properties described in the "Native Properties" section
2130 The value \fBname\fR to display the dataset name
2136 The value \fBspace\fR to display space usage properties on file systems and
2137 volumes. This is a shortcut for specifying \fB-o
2138 name,avail,used,usedsnap,usedds,usedrefreserv,usedchild\fR \fB-t
2139 filesystem,volume\fR syntax.
2146 \fB\fB-s\fR \fIproperty\fR\fR
2150 A property for sorting the output by column in ascending order based on the
2151 value of the property. The property must be one of the properties described in
2152 the "Properties" section, or the special value \fBname\fR to sort by the
2153 dataset name. Multiple properties can be specified at one time using multiple
2154 \fB-s\fR property options. Multiple \fB-s\fR options are evaluated from left to
2155 right in decreasing order of importance.
2157 The following is a list of sorting criteria:
2162 Numeric types sort in numeric order.
2168 String types sort in alphabetical order.
2174 Types inappropriate for a row sort that row to the literal bottom, regardless
2175 of the specified ordering.
2181 If no sorting options are specified the existing behavior of \fBzfs list\fR is
2189 \fB\fB-S\fR \fIproperty\fR\fR
2193 Same as the \fB-s\fR option, but sorts by property in descending order.
2199 \fB\fB-t\fR \fItype\fR\fR
2203 A comma-separated list of types to display, where \fItype\fR is one of
2204 \fBfilesystem\fR, \fBsnapshot\fR , \fBvolume\fR, or \fBall\fR. For example,
2205 specifying \fB-t snapshot\fR displays only snapshots.
2213 \fB\fBzfs set\fR \fIproperty\fR=\fIvalue\fR
2214 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
2218 Sets the property to the given value for each dataset. Only some properties can
2219 be edited. See the "Properties" section for more information on what properties
2220 can be set and acceptable values. Numeric values can be specified as exact
2221 values, or in a human-readable form with a suffix of \fBB\fR, \fBK\fR, \fBM\fR,
2222 \fBG\fR, \fBT\fR, \fBP\fR, \fBE\fR, \fBZ\fR (for bytes, kilobytes, megabytes,
2223 gigabytes, terabytes, petabytes, exabytes, or zettabytes, respectively). User
2224 properties can be set on snapshots. For more information, see the "User
2225 Properties" section.
2231 \fB\fBzfs get\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-Hp\fR] [\fB-o\fR
2232 \fIfield\fR[,...] [\fB-t\fR \fItype\fR[,...]] [\fB-s\fR \fIsource\fR[,...] "\fIall\fR" |
2233 \fIproperty\fR[,...] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
2237 Displays properties for the given datasets. If no datasets are specified, then
2238 the command displays properties for all datasets on the system. For each
2239 property, the following columns are displayed:
2244 property Property name
2245 value Property value
2246 source Property source. Can either be local, default,
2247 temporary, inherited, or none (-).
2252 All columns are displayed by default, though this can be controlled by using
2253 the \fB-o\fR option. This command takes a comma-separated list of properties as
2254 described in the "Native Properties" and "User Properties" sections.
2256 The special value \fBall\fR can be used to display all properties that apply to
2257 the given dataset's type (filesystem, volume, or snapshot).
2265 Recursively display properties for any children.
2271 \fB\fB-d\fR \fIdepth\fR\fR
2275 Recursively display any children of the dataset, limiting the recursion to
2276 \fIdepth\fR. A depth of \fB1\fR will display only the dataset and its direct
2287 Display output in a form more easily parsed by scripts. Any headers are
2288 omitted, and fields are explicitly separated by a single tab instead of an
2289 arbitrary amount of space.
2295 \fB\fB-o\fR \fIfield\fR\fR
2299 A comma-separated list of columns to display. \fBname,property,value,source\fR
2300 is the default value.
2306 \fB\fB-s\fR \fIsource\fR\fR
2310 A comma-separated list of sources to display. Those properties coming from a
2311 source other than those in this list are ignored. Each source must be one of
2312 the following: \fBlocal,default,inherited,temporary,none\fR. The default value
2323 Display numbers in parseable (exact) values.
2331 \fB\fBzfs inherit\fR [\fB-r\fR] \fIproperty\fR
2332 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
2336 Clears the specified property, causing it to be inherited from an ancestor. If
2337 no ancestor has the property set, then the default value is used. See the
2338 "Properties" section for a listing of default values, and details on which
2339 properties can be inherited.
2347 Recursively inherit the given property for all children.
2355 \fB\fBzfs upgrade\fR [\fB-v\fR]\fR
2359 Displays a list of file systems that are not the most recent version.
2365 \fB\fBzfs upgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] [\fB-a\fR |
2366 \fIfilesystem\fR]\fR
2370 Upgrades file systems to a new on-disk version. Once this is done, the file
2371 systems will no longer be accessible on systems running older versions of the
2372 software. \fBzfs send\fR streams generated from new snapshots of these file
2373 systems cannot be accessed on systems running older versions of the software.
2375 In general, the file system version is independent of the pool version. See
2376 \fBzpool\fR(1M) for information on the \fBzpool upgrade\fR command.
2378 In some cases, the file system version and the pool version are interrelated
2379 and the pool version must be upgraded before the file system version can be
2388 Upgrade all file systems on all imported pools.
2394 \fB\fIfilesystem\fR\fR
2398 Upgrade the specified file system.
2408 Upgrade the specified file system and all descendent file systems
2414 \fB\fB-V\fR \fIversion\fR\fR
2418 Upgrade to the specified \fIversion\fR. If the \fB-V\fR flag is not specified,
2419 this command upgrades to the most recent version. This option can only be used
2420 to increase the version number, and only up to the most recent version
2421 supported by this software.
2429 \fBzfs\fR \fBuserspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]]
2430 [\fB-s\fR \fIfield\fR] ...
2431 [\fB-S\fR \fIfield\fR] ...
2432 [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
2436 Displays space consumed by, and quotas on, each user in the specified
2437 filesystem or snapshot. This corresponds to the \fBuserused@\fR\fIuser\fR and
2438 \fBuserquota@\fR\fIuser\fR properties.
2446 Print numeric ID instead of user/group name.
2456 Do not print headers, use tab-delimited output.
2466 Use exact (parsable) numeric output.
2472 \fB\fB-o\fR \fIfield\fR[,...]\fR
2476 Display only the specified fields from the following
2477 set: \fBtype, name, used, quota\fR. The default is to display all fields.
2483 \fB\fB-s\fR \fIfield\fR\fR
2487 Sort output by this field. The \fIs\fR and \fIS\fR flags may be specified
2488 multiple times to sort first by one field, then by another. The default is
2489 \fB-s type\fR \fB-s name\fR.
2495 \fB\fB-S\fR \fIfield\fR\fR
2499 Sort by this field in reverse order. See \fB-s\fR.
2505 \fB\fB-t\fR \fItype\fR[,...]\fR
2509 Print only the specified types from the following
2510 set: \fBall, posixuser, smbuser, posixgroup, smbgroup\fR. The default
2511 is \fB-t posixuser,smbuser\fR. The default can be changed to include group
2522 Translate SID to POSIX ID. The POSIX ID may be ephemeral if no mapping exists.
2523 Normal POSIX interfaces (for example, \fBstat\fR(2), \fBls\fR \fB-l\fR) perform
2524 this translation, so the \fB-i\fR option allows the output from \fBzfs
2525 userspace\fR to be compared directly with those utilities. However, \fB-i\fR
2526 may lead to confusion if some files were created by an SMB user before a
2527 SMB-to-POSIX name mapping was established. In such a case, some files will be owned
2528 by the SMB entity and some by the POSIX entity. However, the \fB-i\fR option
2529 will report that the POSIX entity has the total usage and quota for both.
2537 \fBzfs\fR \fBgroupspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]]
2538 [\fB-s\fR \fIfield\fR] ...
2539 [\fB-S\fR \fIfield\fR] ...
2540 [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
2544 Displays space consumed by, and quotas on, each group in the specified
2545 filesystem or snapshot. This subcommand is identical to \fBzfs userspace\fR,
2546 except that the default types to display are \fB-t posixgroup,smbgroup\fR.
2552 \fB\fBzfs mount\fR\fR
2556 Displays all \fBZFS\fR file systems currently mounted.
2562 \fB\fBzfs mount\fR [\fB-vO\fR] [\fB-o\fR \fIoptions\fR] \fB-a\fR |
2567 Mounts \fBZFS\fR file systems. Invoked automatically as part of the boot
2572 \fB\fB-o\fR \fIoptions\fR\fR
2576 An optional, comma-separated list of mount options to use temporarily for the
2577 duration of the mount. See the "Temporary Mount Point Properties" section for
2588 Perform an overlay mount. See \fBmount\fR(1M) for more information.
2598 Report mount progress.
2608 Mount all available \fBZFS\fR file systems. Invoked automatically as part of
2615 \fB\fIfilesystem\fR\fR
2619 Mount the specified filesystem.
2627 \fB\fBzfs unmount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2631 Unmounts currently mounted \fBZFS\fR file systems. Invoked automatically as
2632 part of the shutdown process.
2640 Forcefully unmount the file system, even if it is currently in use.
2650 Unmount all available \fBZFS\fR file systems. Invoked automatically as part of
2657 \fB\fIfilesystem\fR|\fImountpoint\fR\fR
2661 Unmount the specified filesystem. The command can also be given a path to a
2662 \fBZFS\fR file system mount point on the system.
2670 \fB\fBzfs share\fR \fB-a\fR | \fIfilesystem\fR\fR
2674 Shares available \fBZFS\fR file systems.
2682 Share all available \fBZFS\fR file systems. Invoked automatically as part of
2689 \fB\fIfilesystem\fR\fR
2693 Share the specified filesystem according to the \fBsharenfs\fR and
2694 \fBsharesmb\fR properties. File systems are shared when the \fBsharenfs\fR or
2695 \fBsharesmb\fR property is set.
2703 \fB\fBzfs unshare\fR \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2707 Unshares currently shared \fBZFS\fR file systems. This is invoked automatically
2708 as part of the shutdown process.
2716 Unshare all available \fBZFS\fR file systems. Invoked automatically as part of
2723 \fB\fIfilesystem\fR|\fImountpoint\fR\fR
2727 Unshare the specified filesystem. The command can also be given a path to a
2728 \fBZFS\fR file system shared on the system.
2736 \fBzfs send\fR [\fB-DnPpRrv\fR] [\fB-\fR[\fBiI\fR] \fIsnapshot\fR] \fIsnapshot\fR
2740 Creates a stream representation of the second \fIsnapshot\fR, which is written
2741 to standard output. The output can be redirected to a file or to a different
2742 system (for example, using \fBssh\fR(1). By default, a full stream is
2747 \fB\fB-i\fR \fIsnapshot\fR\fR
2751 Generate an incremental stream from the first \fIsnapshot\fR to the second
2752 \fIsnapshot\fR. The incremental source (the first \fIsnapshot\fR) can be
2753 specified as the last component of the snapshot name (for example, the part
2754 after the \fB@\fR), and it is assumed to be from the same file system as the
2755 second \fIsnapshot\fR.
2757 If the destination is a clone, the source may be the origin snapshot, which
2758 must be fully specified (for example, \fBpool/fs@origin\fR, not just
2765 \fB\fB-I\fR \fIsnapshot\fR\fR
2769 Generate a stream package that sends all intermediary snapshots from the first
2770 snapshot to the second snapshot. For example, \fB-I @a fs@d\fR is similar to
2771 \fB-i @a fs@b; -i @b fs@c; -i @c fs@d\fR. The incremental source snapshot may
2772 be specified as with the \fB-i\fR option.
2782 Generate a replication stream package, which will replicate the specified
2783 filesystem, and all descendent file systems, up to the named snapshot. When
2784 received, all properties, snapshots, descendent file systems, and clones are
2787 If the \fB-i\fR or \fB-I\fR flags are used in conjunction with the \fB-R\fR
2788 flag, an incremental replication stream is generated. The current values of
2789 properties, and current snapshot and file system names are set when the stream
2790 is received. If the \fB-F\fR flag is specified when this stream is received,
2791 snapshots and file systems that do not exist on the sending side are destroyed.
2801 Generate a deduplicated stream. Blocks which would have been sent multiple
2802 times in the send stream will only be sent once. The receiving system must
2803 also support this feature to recieve a deduplicated stream. This flag can
2804 be used regardless of the dataset's \fBdedup\fR property, but performance
2805 will be much better if the filesystem uses a dedup-capable checksum (eg.
2816 Recursively send all descendant snapshots. This is similar to the \fB-R\fR
2817 flag, but information about deleted and renamed datasets is not included, and
2818 property information is only included if the \fB-p\fR flag is specified.
2828 Include the dataset's properties in the stream. This flag is implicit when
2829 \fB-R\fR is specified. The receiving system must also support this feature.
2839 Do a dry-run ("No-op") send. Do not generate any actual send data. This is
2840 useful in conjunction with the \fB-v\fR or \fB-P\fR flags to determine what
2851 Print machine-parsable verbose information about the stream package generated.
2861 Print verbose information about the stream package generated. This information
2862 includes a per-second report of how much data has been sent.
2865 The format of the stream is committed. You will be able to receive your streams
2866 on future versions of \fBZFS\fR.
2872 \fB\fBzfs receive\fR [\fB-vnFu\fR]
2873 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2877 \fB\fBzfs receive\fR [\fB-vnFu\fR] [\fB-d\fR|\fB-e\fR] \fIfilesystem\fR\fR
2881 Creates a snapshot whose contents are as specified in the stream provided on
2882 standard input. If a full stream is received, then a new file system is created
2883 as well. Streams are created using the \fBzfs send\fR subcommand, which by
2884 default creates a full stream. \fBzfs recv\fR can be used as an alias for
2887 If an incremental stream is received, then the destination file system must
2888 already exist, and its most recent snapshot must match the incremental stream's
2889 source. For \fBzvols\fR, the destination device link is destroyed and
2890 recreated, which means the \fBzvol\fR cannot be accessed during the
2891 \fBreceive\fR operation.
2893 When a snapshot replication package stream that is generated by using the
2894 \fBzfs send\fR \fB-R\fR command is received, any snapshots that do not exist
2895 on the sending location are destroyed by using the \fBzfs destroy\fR \fB-d\fR
2898 The name of the snapshot (and file system, if a full stream is received) that
2899 this subcommand creates depends on the argument type and the use of the
2900 \fB-d\fR or \fB-e\fR options.
2902 If the argument is a snapshot name, the specified \fIsnapshot\fR is created. If
2903 the argument is a file system or volume name, a snapshot with the same name as
2904 the sent snapshot is created within the specified \fIfilesystem\fR or
2905 \fIvolume\fR. If neither of the \fB-d\fR or \fB-e\fR options are specified,
2906 the provided target snapshot name is used exactly as provided.
2908 The \fB-d\fR and \fB-e\fR options cause the file system name of the target
2909 snapshot to be determined by appending a portion of the sent snapshot's name to
2910 the specified target \fIfilesystem\fR. If the \fB-d\fR option is specified, all
2911 but the first element of the sent snapshot's file system path (usually the
2912 pool name) is used and any required intermediate file systems within the
2913 specified one are created. If the \fB-e\fR option is specified, then only the
2914 last element of the sent snapshot's file system name (i.e. the name of the
2915 source file system itself) is used as the target file system name.
2923 Discard the first element of the sent snapshot's file system name, using
2924 the remaining elements to determine the name of the target file system for
2925 the new snapshot as described in the paragraph above.
2935 Discard all but the last element of the sent snapshot's file system name,
2936 using that element to determine the name of the target file system for
2937 the new snapshot as described in the paragraph above.
2947 File system that is associated with the received stream is not mounted.
2957 Print verbose information about the stream and the time required to perform the
2968 Do not actually receive the stream. This can be useful in conjunction with the
2969 \fB-v\fR option to verify the name the receive operation would use.
2979 Force a rollback of the file system to the most recent snapshot before
2980 performing the receive operation. If receiving an incremental replication
2981 stream (for example, one generated by \fBzfs send -R -[iI]\fR), destroy
2982 snapshots and file systems that do not exist on the sending side.
2990 \fB\fBzfs allow\fR \fIfilesystem\fR | \fIvolume\fR\fR
2994 Displays permissions that have been delegated on the specified filesystem or
2995 volume. See the other forms of \fBzfs allow\fR for more information.
3001 \fB\fBzfs allow\fR [\fB-ldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...]
3002 \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR| \fIvolume\fR\fR
3006 \fB\fBzfs allow\fR [\fB-ld\fR] \fB-e\fR \fIperm\fR|@\fIsetname\fR[,...]
3007 \fIfilesystem\fR | \fIvolume\fR\fR
3011 Delegates \fBZFS\fR administration permission for the file systems to
3012 non-privileged users.
3016 \fB[\fB-ug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...]\fR
3020 Specifies to whom the permissions are delegated. Multiple entities can be
3021 specified as a comma-separated list. If neither of the \fB-ug\fR options are
3022 specified, then the argument is interpreted preferentially as the keyword
3023 "everyone", then as a user name, and lastly as a group name. To specify a user
3024 or group named "everyone", use the \fB-u\fR or \fB-g\fR options. To specify a
3025 group with the same name as a user, use the \fB-g\fR options.
3031 \fB[\fB-e\fR] \fIperm\fR|@\fIsetname\fR[,...]\fR
3035 Specifies that the permissions be delegated to "everyone." Multiple permissions
3036 may be specified as a comma-separated list. Permission names are the same as
3037 \fBZFS\fR subcommand and property names. See the property list below. Property
3038 set names, which begin with an at sign (\fB@\fR) , may be specified. See the
3039 \fB-s\fR form below for details.
3045 \fB[\fB-ld\fR] \fIfilesystem\fR|\fIvolume\fR\fR
3049 Specifies where the permissions are delegated. If neither of the \fB-ld\fR
3050 options are specified, or both are, then the permissions are allowed for the
3051 file system or volume, and all of its descendents. If only the \fB-l\fR option
3052 is used, then is allowed "locally" only for the specified file system. If only
3053 the \fB-d\fR option is used, then is allowed only for the descendent file
3061 Permissions are generally the ability to use a \fBZFS\fR subcommand or change a
3062 \fBZFS\fR property. The following permissions are available:
3067 allow subcommand Must also have the permission that is being
3069 clone subcommand Must also have the 'create' ability and 'mount'
3070 ability in the origin file system
3071 create subcommand Must also have the 'mount' ability
3072 destroy subcommand Must also have the 'mount' ability
3073 diff subcommand Allows lookup of paths within a dataset
3074 given an object number, and the ability to
3075 create snapshots necessary to 'zfs diff'.
3076 mount subcommand Allows mount/umount of ZFS datasets
3077 promote subcommand Must also have the 'mount'
3078 and 'promote' ability in the origin file system
3079 receive subcommand Must also have the 'mount' and 'create' ability
3080 rename subcommand Must also have the 'mount' and 'create'
3081 ability in the new parent
3082 rollback subcommand Must also have the 'mount' ability
3084 share subcommand Allows sharing file systems over NFS or SMB
3086 snapshot subcommand Must also have the 'mount' ability
3087 groupquota other Allows accessing any groupquota@... property
3088 groupused other Allows reading any groupused@... property
3089 userprop other Allows changing any user property
3090 userquota other Allows accessing any userquota@... property
3091 userused other Allows reading any userused@... property
3097 casesensitivity property
3099 compression property
3105 normalization property
3106 primarycache property
3111 refreservation property
3112 reservation property
3113 secondarycache property
3121 volblocksize property
3133 \fB\fBzfs allow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,...]
3134 \fIfilesystem\fR|\fIvolume\fR\fR
3138 Sets "create time" permissions. These permissions are granted (locally) to the
3139 creator of any newly-created descendent file system.
3145 \fB\fBzfs allow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,...]
3146 \fIfilesystem\fR|\fIvolume\fR\fR
3150 Defines or adds permissions to a permission set. The set can be used by other
3151 \fBzfs allow\fR commands for the specified file system and its descendents.
3152 Sets are evaluated dynamically, so changes to a set are immediately reflected.
3153 Permission sets follow the same naming restrictions as ZFS file systems, but
3154 the name must begin with an "at sign" (\fB@\fR), and can be no more than 64
3161 \fB\fBzfs unallow\fR [\fB-rldug\fR]
3162 "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...]
3163 [\fIperm\fR|@\fIsetname\fR[, ...]] \fIfilesystem\fR|\fIvolume\fR\fR
3167 \fB\fBzfs unallow\fR [\fB-rld\fR] \fB-e\fR [\fIperm\fR|@\fIsetname\fR [,...]]
3168 \fIfilesystem\fR|\fIvolume\fR\fR
3172 \fB\fBzfs unallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[,...]]\fR
3176 \fB\fIfilesystem\fR|\fIvolume\fR\fR
3180 Removes permissions that were granted with the \fBzfs allow\fR command. No
3181 permissions are explicitly denied, so other permissions granted are still in
3182 effect. For example, if the permission is granted by an ancestor. If no
3183 permissions are specified, then all permissions for the specified \fIuser\fR,
3184 \fIgroup\fR, or \fIeveryone\fR are removed. Specifying "everyone" (or using the
3185 \fB-e\fR option) only removes the permissions that were granted to "everyone",
3186 not all permissions for every user and group. See the \fBzfs allow\fR command
3187 for a description of the \fB-ldugec\fR options.
3195 Recursively remove the permissions from this file system and all descendents.
3203 \fB\fBzfs unallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR
3204 [\fIperm\fR|@\fIsetname\fR[,...]]\fR
3208 \fB\fIfilesystem\fR|\fIvolume\fR\fR
3212 Removes permissions from a permission set. If no permissions are specified,
3213 then all permissions are removed, thus removing the set entirely.
3219 \fB\fBzfs hold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
3223 Adds a single reference, named with the \fItag\fR argument, to the specified
3224 snapshot or snapshots. Each snapshot has its own tag namespace, and tags must
3225 be unique within that space.
3227 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
3228 \fBzfs destroy\fR command return \fBEBUSY\fR.
3236 Specifies that a hold with the given tag is applied recursively to the
3237 snapshots of all descendent file systems.
3245 \fB\fBzfs holds\fR [\fB-r\fR] \fIsnapshot\fR...\fR
3249 Lists all existing user references for the given snapshot or snapshots.
3257 Lists the holds that are set on the named descendent snapshots, in addition to
3258 listing the holds on the named snapshot.
3266 \fB\fBzfs release\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
3270 Removes a single reference, named with the \fItag\fR argument, from the
3271 specified snapshot or snapshots. The tag must already exist for each snapshot.
3273 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
3274 \fBzfs destroy\fR command return \fBEBUSY\fR.
3282 Recursively releases a hold with the given tag on the snapshots of all
3283 descendent file systems.
3289 \fBzfs diff\fR [\fB-FHt\fR] \fIsnapshot\fR \fIsnapshot|filesystem\fR
3293 Display the difference between a snapshot of a given filesystem and another
3294 snapshot of that filesystem from a later time or the current contents of the
3295 filesystem. The first column is a character indicating the type of change,
3296 the other columns indicate pathname, new pathname (in case of rename), change
3297 in link count, and optionally file type and/or change time.
3299 The types of change are:
3302 - The path has been removed
3303 + The path has been created
3304 M The path has been modified
3305 R The path has been renamed
3315 Display an indication of the type of file, in a manner similar to the \fB-F\fR
3316 option of \fBls\fR(1).
3338 Give more parseable tab-separated output, without header lines and without arrows.
3347 Display the path's inode change time as the first column of output.
3352 \fBExample 1 \fRCreating a ZFS File System Hierarchy
3355 The following commands create a file system named \fBpool/home\fR and a file
3356 system named \fBpool/home/bob\fR. The mount point \fB/export/home\fR is set for
3357 the parent file system, and is automatically inherited by the child file
3363 # \fBzfs create pool/home\fR
3364 # \fBzfs set mountpoint=/export/home pool/home\fR
3365 # \fBzfs create pool/home/bob\fR
3371 \fBExample 2 \fRCreating a ZFS Snapshot
3374 The following command creates a snapshot named \fByesterday\fR. This snapshot
3375 is mounted on demand in the \fB\&.zfs/snapshot\fR directory at the root of the
3376 \fBpool/home/bob\fR file system.
3381 # \fBzfs snapshot pool/home/bob@yesterday\fR
3387 \fBExample 3 \fRCreating and Destroying Multiple Snapshots
3390 The following command creates snapshots named \fByesterday\fR of
3391 \fBpool/home\fR and all of its descendent file systems. Each snapshot is
3392 mounted on demand in the \fB\&.zfs/snapshot\fR directory at the root of its
3393 file system. The second command destroys the newly created snapshots.
3398 # \fBzfs snapshot -r pool/home@yesterday\fR
3399 # \fBzfs destroy -r pool/home@yesterday\fR
3405 \fBExample 4 \fRDisabling and Enabling File System Compression
3408 The following command disables the \fBcompression\fR property for all file
3409 systems under \fBpool/home\fR. The next command explicitly enables
3410 \fBcompression\fR for \fBpool/home/anne\fR.
3415 # \fBzfs set compression=off pool/home\fR
3416 # \fBzfs set compression=on pool/home/anne\fR
3422 \fBExample 5 \fRListing ZFS Datasets
3425 The following command lists all active file systems and volumes in the system.
3426 Snapshots are displayed if the \fBlistsnaps\fR property is \fBon\fR. The
3427 default is \fBoff\fR. See \fBzpool\fR(1M) for more information on pool
3434 NAME USED AVAIL REFER MOUNTPOINT
3435 pool 450K 457G 18K /pool
3436 pool/home 315K 457G 21K /export/home
3437 pool/home/anne 18K 457G 18K /export/home/anne
3438 pool/home/bob 276K 457G 276K /export/home/bob
3444 \fBExample 6 \fRSetting a Quota on a ZFS File System
3447 The following command sets a quota of 50 Gbytes for \fBpool/home/bob\fR.
3452 # \fBzfs set quota=50G pool/home/bob\fR
3458 \fBExample 7 \fRListing ZFS Properties
3461 The following command lists all properties for \fBpool/home/bob\fR.
3466 # \fBzfs get all pool/home/bob\fR
3467 NAME PROPERTY VALUE SOURCE
3468 pool/home/bob type filesystem -
3469 pool/home/bob creation Tue Jul 21 15:53 2009 -
3470 pool/home/bob used 21K -
3471 pool/home/bob available 20.0G -
3472 pool/home/bob referenced 21K -
3473 pool/home/bob compressratio 1.00x -
3474 pool/home/bob mounted yes -
3475 pool/home/bob quota 20G local
3476 pool/home/bob reservation none default
3477 pool/home/bob recordsize 128K default
3478 pool/home/bob mountpoint /pool/home/bob default
3479 pool/home/bob sharenfs off default
3480 pool/home/bob checksum on default
3481 pool/home/bob compression on local
3482 pool/home/bob atime on default
3483 pool/home/bob devices on default
3484 pool/home/bob exec on default
3485 pool/home/bob setuid on default
3486 pool/home/bob readonly off default
3487 pool/home/bob zoned off default
3488 pool/home/bob snapdir hidden default
3489 pool/home/bob aclmode discard default
3490 pool/home/bob aclinherit restricted default
3491 pool/home/bob canmount on default
3492 pool/home/bob shareiscsi off default
3493 pool/home/bob xattr on default
3494 pool/home/bob copies 1 default
3495 pool/home/bob version 4 -
3496 pool/home/bob utf8only off -
3497 pool/home/bob normalization none -
3498 pool/home/bob casesensitivity sensitive -
3499 pool/home/bob vscan off default
3500 pool/home/bob nbmand off default
3501 pool/home/bob sharesmb off default
3502 pool/home/bob refquota none default
3503 pool/home/bob refreservation none default
3504 pool/home/bob primarycache all default
3505 pool/home/bob secondarycache all default
3506 pool/home/bob usedbysnapshots 0 -
3507 pool/home/bob usedbydataset 21K -
3508 pool/home/bob usedbychildren 0 -
3509 pool/home/bob usedbyrefreservation 0 -
3516 The following command gets a single property value.
3521 # \fBzfs get -H -o value compression pool/home/bob\fR
3529 The following command lists all properties with local settings for
3530 \fBpool/home/bob\fR.
3535 # \fBzfs get -r -s local -o name,property,value all pool/home/bob\fR
3537 pool/home/bob quota 20G
3538 pool/home/bob compression on
3544 \fBExample 8 \fRRolling Back a ZFS File System
3547 The following command reverts the contents of \fBpool/home/anne\fR to the
3548 snapshot named \fByesterday\fR, deleting all intermediate snapshots.
3553 # \fBzfs rollback -r pool/home/anne@yesterday\fR
3559 \fBExample 9 \fRCreating a ZFS Clone
3562 The following command creates a writable file system whose initial contents are
3563 the same as \fBpool/home/bob@yesterday\fR.
3568 # \fBzfs clone pool/home/bob@yesterday pool/clone\fR
3574 \fBExample 10 \fRPromoting a ZFS Clone
3577 The following commands illustrate how to test out changes to a file system, and
3578 then replace the original file system with the changed one, using clones, clone
3579 promotion, and renaming:
3584 # \fBzfs create pool/project/production\fR
3585 populate /pool/project/production with data
3586 # \fBzfs snapshot pool/project/production@today\fR
3587 # \fBzfs clone pool/project/production@today pool/project/beta\fR
3588 make changes to /pool/project/beta and test them
3589 # \fBzfs promote pool/project/beta\fR
3590 # \fBzfs rename pool/project/production pool/project/legacy\fR
3591 # \fBzfs rename pool/project/beta pool/project/production\fR
3592 once the legacy version is no longer needed, it can be destroyed
3593 # \fBzfs destroy pool/project/legacy\fR
3599 \fBExample 11 \fRInheriting ZFS Properties
3602 The following command causes \fBpool/home/bob\fR and \fBpool/home/anne\fR to
3603 inherit the \fBchecksum\fR property from their parent.
3608 # \fBzfs inherit checksum pool/home/bob pool/home/anne\fR
3614 \fBExample 12 \fRRemotely Replicating ZFS Data
3617 The following commands send a full stream and then an incremental stream to a
3618 remote machine, restoring them into \fBpoolB/received/fs@a\fRand
3619 \fBpoolB/received/fs@b\fR, respectively. \fBpoolB\fR must contain the file
3620 system \fBpoolB/received\fR, and must not initially contain
3621 \fBpoolB/received/fs\fR.
3626 # \fBzfs send pool/fs@a | \e\fR
3627 \fBssh host zfs receive poolB/received/fs@a\fR
3628 # \fBzfs send -i a pool/fs@b | ssh host \e\fR
3629 \fBzfs receive poolB/received/fs\fR
3635 \fBExample 13 \fRUsing the \fBzfs receive\fR \fB-d\fR Option
3638 The following command sends a full stream of \fBpoolA/fsA/fsB@snap\fR to a
3639 remote machine, receiving it into \fBpoolB/received/fsA/fsB@snap\fR. The
3640 \fBfsA/fsB@snap\fR portion of the received snapshot's name is determined from
3641 the name of the sent snapshot. \fBpoolB\fR must contain the file system
3642 \fBpoolB/received\fR. If \fBpoolB/received/fsA\fR does not exist, it is created
3643 as an empty file system.
3648 # \fBzfs send poolA/fsA/fsB@snap | \e
3649 ssh host zfs receive -d poolB/received\fR
3655 \fBExample 14 \fRSetting User Properties
3658 The following example sets the user-defined \fBcom.example:department\fR
3659 property for a dataset.
3664 # \fBzfs set com.example:department=12345 tank/accounting\fR
3670 \fBExample 15 \fRCreating a ZFS Volume as an iSCSI Target Device
3673 The following example shows how to create a \fBZFS\fR volume as an \fBiSCSI\fR
3679 # \fBzfs create -V 2g pool/volumes/vol1\fR
3680 # \fBzfs set shareiscsi=on pool/volumes/vol1\fR
3681 # \fBiscsitadm list target\fR
3682 Target: pool/volumes/vol1
3684 iqn.1986-03.com.sun:02:7b4b02a6-3277-eb1b-e686-a24762c52a8c
3692 After the \fBiSCSI\fR target is created, set up the \fBiSCSI\fR initiator. For
3693 more information about the Solaris \fBiSCSI\fR initiator, see
3694 \fBiscsitadm\fR(1M).
3696 \fBExample 16 \fRPerforming a Rolling Snapshot
3699 The following example shows how to maintain a history of snapshots with a
3700 consistent naming scheme. To keep a week's worth of snapshots, the user
3701 destroys the oldest snapshot, renames the remaining snapshots, and then creates
3702 a new snapshot, as follows:
3707 # \fBzfs destroy -r pool/users@7daysago\fR
3708 # \fBzfs rename -r pool/users@6daysago @7daysago\fR
3709 # \fBzfs rename -r pool/users@5daysago @6daysago\fR
3710 # \fBzfs rename -r pool/users@yesterday @5daysago\fR
3711 # \fBzfs rename -r pool/users@yesterday @4daysago\fR
3712 # \fBzfs rename -r pool/users@yesterday @3daysago\fR
3713 # \fBzfs rename -r pool/users@yesterday @2daysago\fR
3714 # \fBzfs rename -r pool/users@today @yesterday\fR
3715 # \fBzfs snapshot -r pool/users@today\fR
3721 \fBExample 17 \fRSetting \fBsharenfs\fR Property Options on a ZFS File System
3724 The following commands show how to set \fBsharenfs\fR property options to
3725 enable \fBrw\fR access for a set of \fBIP\fR addresses and to enable root
3726 access for system \fBneo\fR on the \fBtank/home\fR file system.
3731 # \fBzfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home\fR
3738 If you are using \fBDNS\fR for host name resolution, specify the fully
3742 \fBExample 18 \fRDelegating ZFS Administration Permissions on a ZFS Dataset
3745 The following example shows how to set permissions so that user \fBcindys\fR
3746 can create, destroy, mount, and take snapshots on \fBtank/cindys\fR. The
3747 permissions on \fBtank/cindys\fR are also displayed.
3752 # \fBzfs allow cindys create,destroy,mount,snapshot tank/cindys\fR
3753 # \fBzfs allow tank/cindys\fR
3754 -------------------------------------------------------------
3755 Local+Descendent permissions on (tank/cindys)
3756 user cindys create,destroy,mount,snapshot
3757 -------------------------------------------------------------
3764 Because the \fBtank/cindys\fR mount point permission is set to 755 by default,
3765 user \fBcindys\fR will be unable to mount file systems under \fBtank/cindys\fR.
3766 Set an \fBACL\fR similar to the following syntax to provide mount point access:
3770 # \fBchmod A+user:cindys:add_subdirectory:allow /tank/cindys\fR
3776 \fBExample 19 \fRDelegating Create Time Permissions on a ZFS Dataset
3779 The following example shows how to grant anyone in the group \fBstaff\fR to
3780 create file systems in \fBtank/users\fR. This syntax also allows staff members
3781 to destroy their own file systems, but not destroy anyone else's file system.
3782 The permissions on \fBtank/users\fR are also displayed.
3787 # \fBzfs allow staff create,mount tank/users\fR
3788 # \fBzfs allow -c destroy tank/users\fR
3789 # \fBzfs allow tank/users\fR
3790 -------------------------------------------------------------
3791 Create time permissions on (tank/users)
3793 Local+Descendent permissions on (tank/users)
3794 group staff create,mount
3795 -------------------------------------------------------------
3801 \fBExample 20 \fRDefining and Granting a Permission Set on a ZFS Dataset
3804 The following example shows how to define and grant a permission set on the
3805 \fBtank/users\fR file system. The permissions on \fBtank/users\fR are also
3811 # \fBzfs allow -s @pset create,destroy,snapshot,mount tank/users\fR
3812 # \fBzfs allow staff @pset tank/users\fR
3813 # \fBzfs allow tank/users\fR
3814 -------------------------------------------------------------
3815 Permission sets on (tank/users)
3816 @pset create,destroy,mount,snapshot
3817 Create time permissions on (tank/users)
3819 Local+Descendent permissions on (tank/users)
3820 group staff @pset,create,mount
3821 -------------------------------------------------------------
3827 \fBExample 21 \fRDelegating Property Permissions on a ZFS Dataset
3830 The following example shows to grant the ability to set quotas and reservations
3831 on the \fBusers/home\fR file system. The permissions on \fBusers/home\fR are
3837 # \fBzfs allow cindys quota,reservation users/home\fR
3838 # \fBzfs allow users/home\fR
3839 -------------------------------------------------------------
3840 Local+Descendent permissions on (users/home)
3841 user cindys quota,reservation
3842 -------------------------------------------------------------
3843 cindys% \fBzfs set quota=10G users/home/marks\fR
3844 cindys% \fBzfs get quota users/home/marks\fR
3845 NAME PROPERTY VALUE SOURCE
3846 users/home/marks quota 10G local
3852 \fBExample 22 \fRRemoving ZFS Delegated Permissions on a ZFS Dataset
3855 The following example shows how to remove the snapshot permission from the
3856 \fBstaff\fR group on the \fBtank/users\fR file system. The permissions on
3857 \fBtank/users\fR are also displayed.
3862 # \fBzfs unallow staff snapshot tank/users\fR
3863 # \fBzfs allow tank/users\fR
3864 -------------------------------------------------------------
3865 Permission sets on (tank/users)
3866 @pset create,destroy,mount,snapshot
3867 Create time permissions on (tank/users)
3869 Local+Descendent permissions on (tank/users)
3870 group staff @pset,create,mount
3871 -------------------------------------------------------------
3877 \fBExample 23\fR Showing the differences between a snapshot and a ZFS Dataset
3880 The following example shows how to see what has changed between a prior
3881 snapshot of a ZFS Dataset and its current state. The \fB-F\fR option is used
3882 to indicate type information for the files affected.
3887 # zfs diff -F tank/test@before tank/test
3889 M F /tank/test/linked (+1)
3890 R F /tank/test/oldname -> /tank/test/newname
3891 - F /tank/test/deleted
3892 + F /tank/test/created
3893 M F /tank/test/modified
3901 The following exit values are returned:
3909 Successful completion.
3929 Invalid command line options were specified.
3935 See \fBattributes\fR(5) for descriptions of the following attributes:
3943 ATTRIBUTE TYPE ATTRIBUTE VALUE
3945 Interface Stability Committed
3951 \fBssh\fR(1), \fBiscsitadm\fR(1M), \fBmount\fR(1M), \fBshare\fR(1M),
3952 \fBsharemgr\fR(1M), \fBunshare\fR(1M), \fBzonecfg\fR(1M), \fBzpool\fR(1M),
3953 \fBchmod\fR(2), \fBstat\fR(2), \fBwrite\fR(2), \fBfsync\fR(3C),
3954 \fBdfstab\fR(4), \fBattributes\fR(5)
3957 See the \fBgzip\fR(1) man page, which is not part of the SunOS man page
3961 For information about using the \fBZFS\fR web-based management tool and other
3962 \fBZFS\fR features, see the \fISolaris ZFS Administration Guide\fR.