]> git.proxmox.com Git - mirror_zfs.git/blame - man/man8/zfs.8
Adding grub2 mkconfig support patch
[mirror_zfs.git] / man / man8 / zfs.8
CommitLineData
058ac9ba
BB
1'\" te
2.\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
3.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4.\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
5.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
7.\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
8.\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
4da4a9e1 9.TH zfs 8 "8 Apr 2011" "ZFS pool 28, filesystem 5" "System Administration Commands"
058ac9ba
BB
10.SH NAME
11zfs \- configures ZFS file systems
12.SH SYNOPSIS
13.LP
14.nf
15\fBzfs\fR [\fB-?\fR]
16.fi
17
18.LP
19.nf
20\fBzfs\fR \fBcreate\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem\fR
21.fi
22
23.LP
24.nf
25\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
26.fi
27
28.LP
29.nf
30\fBzfs\fR \fBdestroy\fR [\fB-rRf\fR] \fIfilesystem\fR|\fIvolume\fR
31.fi
32
33.LP
34.nf
35\fBzfs\fR \fBdestroy\fR [\fB-rRd\fR] \fIsnapshot\fR
36.fi
37
38.LP
39.nf
10b75496 40\fBzfs\fR \fBsnapshot | snap\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR]...
058ac9ba
BB
41 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR
42.fi
43
44.LP
45.nf
46\fBzfs\fR \fBrollback\fR [\fB-rRf\fR] \fIsnapshot\fR
47.fi
48
49.LP
50.nf
51\fBzfs\fR \fBclone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR
52.fi
53
54.LP
55.nf
56\fBzfs\fR \fBpromote\fR \fIclone-filesystem\fR
57.fi
58
59.LP
60.nf
61\fBzfs\fR \fBrename\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
62 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
63.fi
64
65.LP
66.nf
67\fBzfs\fR \fBrename\fR [\fB-p\fR] \fIfilesystem\fR|\fIvolume\fR \fIfilesystem\fR|\fIvolume\fR
68.fi
69
70.LP
71.nf
72\fBzfs\fR \fBrename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR
73.fi
74
75.LP
76.nf
77\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[,...]]
cf81b00a 78 [\fB-s\fR \fIproperty\fR] ... [\fB-S\fR \fIproperty\fR] ... [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR|\fIsnap\fR] ...
058ac9ba
BB
79.fi
80
81.LP
82.nf
83\fBzfs\fR \fBset\fR \fIproperty\fR=\fIvalue\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...
84.fi
85
86.LP
87.nf
88\fBzfs\fR \fBget\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-Hp\fR][\fB-o\fR \fIfield\fR[,...]] [\fB-s\fR \fIsource\fR[,...]]
89 "\fIall\fR" | \fIproperty\fR[,...] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...
90.fi
91
92.LP
93.nf
94\fBzfs\fR \fBinherit\fR [\fB-r\fR] \fIproperty\fR \fIfilesystem\fR|\fIvolume|snapshot\fR ...
95.fi
96
97.LP
98.nf
99\fBzfs\fR \fBupgrade\fR [\fB-v\fR]
100.fi
101
102.LP
103.nf
104\fBzfs\fR \fBupgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIfilesystem\fR
105.fi
106
107.LP
108.nf
109\fBzfs\fR \fBuserspace\fR [\fB-niHp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-sS\fR \fIfield\fR] ...
110 [\fB-t\fR \fItype\fR [,...]] \fIfilesystem\fR|\fIsnapshot\fR
111.fi
112
113.LP
114.nf
115\fBzfs\fR \fBgroupspace\fR [\fB-niHp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-sS\fR \fIfield\fR] ...
116 [\fB-t\fR \fItype\fR [,...]] \fIfilesystem\fR|\fIsnapshot\fR
117.fi
118
119.LP
120.nf
121\fBzfs\fR \fBmount\fR
122.fi
123
124.LP
125.nf
126\fBzfs\fR \fBmount\fR [\fB-vO\fR] [\fB-o \fIoptions\fR\fR] \fB-a\fR | \fIfilesystem\fR
127.fi
128
129.LP
130.nf
10b75496 131\fBzfs\fR \fBunmount | umount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR
058ac9ba
BB
132.fi
133
134.LP
135.nf
136\fBzfs\fR \fBshare\fR \fB-a\fR | \fIfilesystem\fR
137.fi
138
139.LP
140.nf
141\fBzfs\fR \fBunshare\fR \fB-a\fR \fIfilesystem\fR|\fImountpoint\fR
142.fi
143
144.LP
145.nf
e0f86c98 146\fBzfs\fR \fBsend\fR [\fB-vRDp\fR] [\fB-\fR[\fBiI\fR] \fIsnapshot\fR] \fIsnapshot\fR
058ac9ba
BB
147.fi
148
149.LP
150.nf
10b75496 151\fBzfs\fR \fBreceive | recv\fR [\fB-vnFu\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
058ac9ba
BB
152.fi
153
154.LP
155.nf
10b75496 156\fBzfs\fR \fBreceive | recv\fR [\fB-vnFu\fR] \fB-d\fR \fIfilesystem\fR
058ac9ba
BB
157.fi
158
159.LP
160.nf
161\fBzfs\fR \fBallow\fR \fIfilesystem\fR|\fIvolume\fR
162.fi
163
164.LP
165.nf
166\fBzfs\fR \fBallow\fR [\fB-ldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] \fIperm\fR|\fI@setname\fR[,...]
167 \fIfilesystem\fR|\fIvolume\fR
168.fi
169
170.LP
171.nf
172\fBzfs\fR \fBallow\fR [\fB-ld\fR] \fB-e\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
173.fi
174
175.LP
176.nf
177\fBzfs\fR \fBallow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
178.fi
179
180.LP
181.nf
182\fBzfs\fR \fBallow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
183.fi
184
185.LP
186.nf
187\fBzfs\fR \fBunallow\fR [\fB-rldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] [\fIperm\fR|@\fIsetname\fR[,... ]]
188 \fIfilesystem\fR|\fIvolume\fR
189.fi
190
191.LP
192.nf
193\fBzfs\fR \fBunallow\fR [\fB-rld\fR] \fB-e\fR [\fIperm\fR|@\fIsetname\fR[,... ]] \fIfilesystem\fR|\fIvolume\fR
194.fi
195
196.LP
197.nf
198\fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[ ... ]] \fIfilesystem\fR|\fIvolume\fR
199.fi
200
201.LP
202.nf
203\fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR [\fIperm\fR|@\fIsetname\fR[,... ]] \fIfilesystem\fR|\fIvolume\fR
204.fi
205
206.LP
207.nf
208\fBzfs\fR \fBhold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
209.fi
210
211.LP
212.nf
213\fBzfs\fR \fBholds\fR [\fB-r\fR] \fIsnapshot\fR...
214.fi
215
216.LP
217.nf
218\fBzfs\fR \fBrelease\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
219.fi
220
221.SH DESCRIPTION
222.sp
223.LP
2d1b7b0b 224The \fBzfs\fR command configures \fBZFS\fR datasets within a \fBZFS\fR storage pool, as described in \fBzpool\fR(8). A dataset is identified by a unique path within the \fBZFS\fR namespace. For example:
058ac9ba
BB
225.sp
226.in +2
227.nf
228pool/{filesystem,volume,snapshot}
229.fi
230.in -2
231.sp
232
233.sp
234.LP
235where the maximum length of a dataset name is \fBMAXNAMELEN\fR (256 bytes).
236.sp
237.LP
238A dataset can be one of the following:
239.sp
240.ne 2
241.mk
242.na
243\fB\fIfile system\fR\fR
244.ad
245.sp .6
246.RS 4n
247A \fBZFS\fR dataset of type \fBfilesystem\fR can be mounted within the standard system namespace and behaves like other file systems. While \fBZFS\fR file systems are designed to be \fBPOSIX\fR compliant, known issues exist that prevent compliance in some cases. Applications that depend on standards conformance might fail due to nonstandard behavior when checking file system free space.
248.RE
249
250.sp
251.ne 2
252.mk
253.na
254\fB\fIvolume\fR\fR
255.ad
256.sp .6
257.RS 4n
258A logical volume exported as a raw or block device. This type of dataset should only be used under special circumstances. File systems are typically used in most environments.
259.RE
260
261.sp
262.ne 2
263.mk
264.na
265\fB\fIsnapshot\fR\fR
266.ad
267.sp .6
268.RS 4n
269A read-only version of a file system or volume at a given point in time. It is specified as \fIfilesystem@name\fR or \fIvolume@name\fR.
270.RE
271
272.SS "ZFS File System Hierarchy"
273.sp
274.LP
275A \fBZFS\fR storage pool is a logical collection of devices that provide space for datasets. A storage pool is also the root of the \fBZFS\fR file system hierarchy.
276.sp
277.LP
2d1b7b0b 278The root of the pool can be accessed as a file system, such as mounting and unmounting, taking snapshots, and setting properties. The physical storage characteristics, however, are managed by the \fBzpool\fR(8) command.
058ac9ba
BB
279.sp
280.LP
2d1b7b0b 281See \fBzpool\fR(8) for more information on creating and administering pools.
058ac9ba
BB
282.SS "Snapshots"
283.sp
284.LP
285A snapshot is a read-only copy of a file system or volume. Snapshots can be created extremely quickly, and initially consume no additional space within the pool. As data within the active dataset changes, the snapshot consumes more data than would otherwise be shared with the active dataset.
286.sp
287.LP
288Snapshots can have arbitrary names. Snapshots of volumes can be cloned or rolled back, but cannot be accessed independently.
289.sp
290.LP
291File system snapshots can be accessed under the \fB\&.zfs/snapshot\fR directory in the root of the file system. Snapshots are automatically mounted on demand and may be unmounted at regular intervals. The visibility of the \fB\&.zfs\fR directory can be controlled by the \fBsnapdir\fR property.
292.SS "Clones"
293.sp
294.LP
295A clone is a writable volume or file system whose initial contents are the same as another dataset. As with snapshots, creating a clone is nearly instantaneous, and initially consumes no additional space.
296.sp
297.LP
298Clones can only be created from a snapshot. When a snapshot is cloned, it creates an implicit dependency between the parent and child. Even though the clone is created somewhere else in the dataset hierarchy, the original snapshot cannot be destroyed as long as a clone exists. The \fBorigin\fR property exposes this dependency, and the \fBdestroy\fR command lists any such dependencies, if they exist.
299.sp
300.LP
301The clone parent-child dependency relationship can be reversed by using the \fBpromote\fR subcommand. This causes the "origin" file system to become a clone of the specified file system, which makes it possible to destroy the file system that the clone was created from.
302.SS "Mount Points"
303.sp
304.LP
9a616b5d 305Creating a \fBZFS\fR file system is a simple operation, so the number of file systems per system is likely to be numerous. To cope with this, \fBZFS\fR automatically manages mounting and unmounting file systems without the need to edit the \fB/etc/fstab\fR file. All automatically managed file systems are mounted by \fBZFS\fR at boot time.
058ac9ba
BB
306.sp
307.LP
308By default, file systems are mounted under \fB/\fIpath\fR\fR, where \fIpath\fR is the name of the file system in the \fBZFS\fR namespace. Directories are created and destroyed as needed.
309.sp
310.LP
9a616b5d 311A file system can also have a mount point set in the \fBmountpoint\fR property. This directory is created as needed, and \fBZFS\fR automatically mounts the file system when the \fBzfs mount -a\fR command is invoked (without editing \fB/etc/fstab\fR). The \fBmountpoint\fR property can be inherited, so if \fBpool/home\fR has a mount point of \fB/export/stuff\fR, then \fBpool/home/user\fR automatically inherits a mount point of \fB/export/stuff/user\fR.
058ac9ba
BB
312.sp
313.LP
314A file system \fBmountpoint\fR property of \fBnone\fR prevents the file system from being mounted.
315.sp
316.LP
9a616b5d 317If needed, \fBZFS\fR file systems can also be managed with traditional tools (\fBmount\fR, \fBumount\fR, \fB/etc/fstab\fR). If a file system's mount point is set to \fBlegacy\fR, \fBZFS\fR makes no attempt to manage the file system, and the administrator is responsible for mounting and unmounting the file system.
058ac9ba
BB
318.SS "Native Properties"
319.sp
320.LP
321Properties are divided into two types, native properties and user-defined (or "user") properties. Native properties either export internal statistics or control \fBZFS\fR behavior. In addition, native properties are either editable or read-only. User properties have no effect on \fBZFS\fR behavior, but you can use them to annotate datasets in a way that is meaningful in your environment. For more information about user properties, see the "User Properties" section, below.
322.sp
323.LP
324Every dataset has a set of properties that export statistics about the dataset as well as control various behaviors. Properties are inherited from the parent unless overridden by the child. Some properties apply only to certain types of datasets (file systems, volumes, or snapshots).
325.sp
326.LP
327The values of numeric properties can be specified using human-readable suffixes (for example, \fBk\fR, \fBKB\fR, \fBM\fR, \fBGb\fR, and so forth, up to \fBZ\fR for zettabyte). The following are all valid (and equal) specifications:
328.sp
329.in +2
330.nf
3311536M, 1.5g, 1.50GB
332.fi
333.in -2
334.sp
335
336.sp
337.LP
338The values of non-numeric properties are case sensitive and must be lowercase, except for \fBmountpoint\fR, \fBsharenfs\fR, and \fBsharesmb\fR.
339.sp
340.LP
341The following native properties consist of read-only statistics about the dataset. These properties can be neither set, nor inherited. Native properties apply to all dataset types unless otherwise noted.
342.sp
343.ne 2
344.mk
345.na
346\fB\fBavailable\fR\fR
347.ad
348.sp .6
349.RS 4n
350The amount of space available to the dataset and all its children, assuming that there is no other activity in the pool. Because space is shared within a pool, availability can be limited by any number of factors, including physical pool size, quotas, reservations, or other datasets within the pool.
351.sp
352This property can also be referred to by its shortened column name, \fBavail\fR.
353.RE
354
355.sp
356.ne 2
357.mk
358.na
359\fB\fBcompressratio\fR\fR
360.ad
361.sp .6
362.RS 4n
f5fc4aca 363For non-snapshots, the compression ratio achieved for the \fBused\fR space of this dataset, expressed as a multiplier. The \fBused\fR property includes descendant datasets, and, for clones, does not include the space shared with the origin snapshot. For snapshots, the \fBcompressratio\fR is the same as the \fBrefcompressratio\fR property. Compression can be turned on by running: \fBzfs set compression=on \fIdataset\fR\fR. The default value is \fBoff\fR.
058ac9ba
BB
364.RE
365
366.sp
367.ne 2
368.mk
369.na
370\fB\fBcreation\fR\fR
371.ad
372.sp .6
373.RS 4n
374The time this dataset was created.
375.RE
376
377.sp
378.ne 2
379.mk
380.na
381\fB\fBdefer_destroy\fR\fR
382.ad
383.sp .6
384.RS 4n
3b204150 385This property is \fBon\fR if the snapshot has been marked for deferred destruction by using the \fBzfs destroy\fR \fB-d\fR command. Otherwise, the property is \fBoff\fR.
058ac9ba
BB
386.RE
387
388.sp
389.ne 2
390.mk
391.na
392\fB\fBmounted\fR\fR
393.ad
394.sp .6
395.RS 4n
396For file systems, indicates whether the file system is currently mounted. This property can be either \fByes\fR or \fBno\fR.
397.RE
398
399.sp
400.ne 2
401.mk
402.na
403\fB\fBorigin\fR\fR
404.ad
405.sp .6
406.RS 4n
407For cloned file systems or volumes, the snapshot from which the clone was created. The origin cannot be destroyed (even with the \fB-r\fR or \fB-f\fR options) so long as a clone exists.
408.RE
409
410.sp
411.ne 2
412.mk
413.na
414\fB\fBreferenced\fR\fR
415.ad
416.sp .6
417.RS 4n
418The amount of data that is accessible by this dataset, which may or may not be shared with other datasets in the pool. When a snapshot or clone is created, it initially references the same amount of space as the file system or snapshot it was created from, since its contents are identical.
419.sp
420This property can also be referred to by its shortened column name, \fBrefer\fR.
421.RE
422
f5fc4aca
MA
423.sp
424.ne 2
425.mk
426.na
427\fB\fBrefcompressratio\fR\fR
428.ad
429.sp .6
430.RS 4n
431The compression ratio achieved for the \fBreferenced\fR space of this
432dataset, expressed as a multiplier. See also the \fBcompressratio\fR
433property.
434.RE
435
058ac9ba
BB
436.sp
437.ne 2
438.mk
439.na
440\fB\fBtype\fR\fR
441.ad
442.sp .6
443.RS 4n
444The type of dataset: \fBfilesystem\fR, \fBvolume\fR, or \fBsnapshot\fR.
445.RE
446
447.sp
448.ne 2
449.mk
450.na
451\fB\fBused\fR\fR
452.ad
453.sp .6
454.RS 4n
455The amount of space consumed by this dataset and all its descendents. This is the value that is checked against this dataset's quota and reservation. The space used does not include this dataset's reservation, but does take into account the reservations of any descendent datasets. The amount of space that a dataset consumes from its parent, as well as the amount of space that are freed if this dataset is recursively destroyed, is the greater of its space used and its reservation.
456.sp
457When snapshots (see the "Snapshots" section) are created, their space is initially shared between the snapshot and the file system, and possibly with previous snapshots. As the file system changes, space that was previously shared becomes unique to the snapshot, and counted in the snapshot's space used. Additionally, deleting snapshots can increase the amount of space unique to (and used by) other snapshots.
458.sp
2d1b7b0b 459The amount of space used, available, or referenced does not take into account pending changes. Pending changes are generally accounted for within a few seconds. Committing a change to a disk using \fBfsync\fR(2) or \fBO_SYNC\fR does not necessarily guarantee that the space usage information is updated immediately.
058ac9ba
BB
460.RE
461
462.sp
463.ne 2
464.mk
465.na
466\fB\fBusedby*\fR\fR
467.ad
468.sp .6
469.RS 4n
470The \fBusedby*\fR properties decompose the \fBused\fR properties into the various reasons that space is used. Specifically, \fBused\fR = \fBusedbychildren\fR + \fBusedbydataset\fR + \fBusedbyrefreservation\fR +, \fBusedbysnapshots\fR. These properties are only available for datasets created on \fBzpool\fR "version 13" pools.
471.RE
472
473.sp
474.ne 2
475.mk
476.na
477\fB\fBusedbychildren\fR\fR
478.ad
479.sp .6
480.RS 4n
481The amount of space used by children of this dataset, which would be freed if all the dataset's children were destroyed.
482.RE
483
484.sp
485.ne 2
486.mk
487.na
488\fB\fBusedbydataset\fR\fR
489.ad
490.sp .6
491.RS 4n
492The amount of space used by this dataset itself, which would be freed if the dataset were destroyed (after first removing any \fBrefreservation\fR and destroying any necessary snapshots or descendents).
493.RE
494
495.sp
496.ne 2
497.mk
498.na
499\fB\fBusedbyrefreservation\fR\fR
500.ad
501.sp .6
502.RS 4n
503The amount of space used by a \fBrefreservation\fR set on this dataset, which would be freed if the \fBrefreservation\fR was removed.
504.RE
505
506.sp
507.ne 2
508.mk
509.na
510\fB\fBusedbysnapshots\fR\fR
511.ad
512.sp .6
513.RS 4n
514The amount of space consumed by snapshots of this dataset. In particular, it is the amount of space that would be freed if all of this dataset's snapshots were destroyed. Note that this is not simply the sum of the snapshots' \fBused\fR properties because space can be shared by multiple snapshots.
515.RE
516
517.sp
518.ne 2
519.mk
520.na
521\fB\fBuserused@\fR\fIuser\fR\fR
522.ad
523.sp .6
524.RS 4n
525The amount of space consumed by the specified user in this dataset. Space is charged to the owner of each file, as displayed by \fBls\fR \fB-l\fR. The amount of space charged is displayed by \fBdu\fR and \fBls\fR \fB-s\fR. See the \fBzfs userspace\fR subcommand for more information.
526.sp
527Unprivileged users can access only their own space usage. The root user, or a user who has been granted the \fBuserused\fR privilege with \fBzfs allow\fR, can access everyone's usage.
528.sp
529The \fBuserused@\fR... properties are not displayed by \fBzfs get all\fR. The user's name must be appended after the \fB@\fR symbol, using one of the following forms:
530.RS +4
531.TP
532.ie t \(bu
533.el o
534\fIPOSIX name\fR (for example, \fBjoe\fR)
535.RE
536.RS +4
537.TP
538.ie t \(bu
539.el o
540\fIPOSIX numeric ID\fR (for example, \fB789\fR)
541.RE
542.RS +4
543.TP
544.ie t \(bu
545.el o
546\fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
547.RE
548.RS +4
549.TP
550.ie t \(bu
551.el o
552\fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
553.RE
554.RE
555
556.sp
557.ne 2
558.mk
559.na
560\fB\fBuserrefs\fR\fR
561.ad
562.sp .6
563.RS 4n
564This property is set to the number of user holds on this snapshot. User holds are set by using the \fBzfs hold\fR command.
565.RE
566
567.sp
568.ne 2
569.mk
570.na
571\fB\fBgroupused@\fR\fIgroup\fR\fR
572.ad
573.sp .6
574.RS 4n
575The amount of space consumed by the specified group in this dataset. Space is charged to the group of each file, as displayed by \fBls\fR \fB-l\fR. See the \fBuserused@\fR\fIuser\fR property for more information.
576.sp
577Unprivileged users can only access their own groups' space usage. The root user, or a user who has been granted the \fBgroupused\fR privilege with \fBzfs allow\fR, can access all groups' usage.
578.RE
579
580.sp
581.ne 2
582.mk
583.na
584\fB\fBvolblocksize\fR=\fIblocksize\fR\fR
585.ad
586.sp .6
587.RS 4n
588For volumes, specifies the block size of the volume. The \fBblocksize\fR cannot be changed once the volume has been written, so it should be set at volume creation time. The default \fBblocksize\fR for volumes is 8 Kbytes. Any power of 2 from 512 bytes to 128 Kbytes is valid.
589.sp
590This property can also be referred to by its shortened column name, \fBvolblock\fR.
591.RE
592
593.sp
594.LP
595The following native properties can be used to change the behavior of a \fBZFS\fR dataset.
596.sp
597.ne 2
598.mk
599.na
600\fB\fBaclinherit\fR=\fBdiscard\fR | \fBnoallow\fR | \fBrestricted\fR | \fBpassthrough\fR | \fBpassthrough-x\fR\fR
601.ad
602.sp .6
603.RS 4n
604Controls how \fBACL\fR entries are inherited when files and directories are created. A file system with an \fBaclinherit\fR property of \fBdiscard\fR does not inherit any \fBACL\fR entries. A file system with an \fBaclinherit\fR property value of \fBnoallow\fR only inherits inheritable \fBACL\fR entries that specify "deny" permissions. The property value \fBrestricted\fR (the default) removes the \fBwrite_acl\fR and \fBwrite_owner\fR permissions when the \fBACL\fR entry is inherited. A file system with an \fBaclinherit\fR property value of \fBpassthrough\fR inherits all inheritable \fBACL\fR entries without any modifications made to the \fBACL\fR entries when they are inherited. A file system with an \fBaclinherit\fR property value of \fBpassthrough-x\fR has the same meaning as \fBpassthrough\fR, except that the \fBowner@\fR, \fBgroup@\fR, and \fBeveryone@\fR \fBACE\fRs inherit the execute permission only if the file creation mode also requests the execute bit.
605.sp
606When the property value is set to \fBpassthrough\fR, files are created with a mode determined by the inheritable \fBACE\fRs. If no inheritable \fBACE\fRs exist that affect the mode, then the mode is set in accordance to the requested mode from the application.
607.RE
608
609.sp
610.ne 2
611.mk
612.na
613\fB\fBaclmode\fR=\fBdiscard\fR | \fBgroupmask\fR | \fBpassthrough\fR\fR
614.ad
615.sp .6
616.RS 4n
617Controls how an \fBACL\fR is modified during \fBchmod\fR(2). A file system with an \fBaclmode\fR property of \fBdiscard\fR deletes all \fBACL\fR entries that do not represent the mode of the file. An \fBaclmode\fR property of \fBgroupmask\fR (the default) reduces user or group permissions. The permissions are reduced, such that they are no greater than the group permission bits, unless it is a user entry that has the same \fBUID\fR as the owner of the file or directory. In this case, the \fBACL\fR permissions are reduced so that they are no greater than owner permission bits. A file system with an \fBaclmode\fR property of \fBpassthrough\fR indicates that no changes are made to the \fBACL\fR other than generating the necessary \fBACL\fR entries to represent the new mode of the file or directory.
618.RE
619
620.sp
621.ne 2
622.mk
623.na
624\fB\fBatime\fR=\fBon\fR | \fBoff\fR\fR
625.ad
626.sp .6
627.RS 4n
628Controls whether the access time for files is updated when they are read. Turning this property off avoids producing write traffic when reading files and can result in significant performance gains, though it might confuse mailers and other similar utilities. The default value is \fBon\fR.
629.RE
630
631.sp
632.ne 2
633.mk
634.na
635\fB\fBcanmount\fR=\fBon\fR | \fBoff\fR | \fBnoauto\fR\fR
636.ad
637.sp .6
638.RS 4n
639If this property is set to \fBoff\fR, the file system cannot be mounted, and is ignored by \fBzfs mount -a\fR. Setting this property to \fBoff\fR is similar to setting the \fBmountpoint\fR property to \fBnone\fR, except that the dataset still has a normal \fBmountpoint\fR property, which can be inherited. Setting this property to \fBoff\fR allows datasets to be used solely as a mechanism to inherit properties. One example of setting \fBcanmount=\fR\fBoff\fR is to have two datasets with the same \fBmountpoint\fR, so that the children of both datasets appear in the same directory, but might have different inherited characteristics.
640.sp
641When the \fBnoauto\fR option is set, a dataset can only be mounted and unmounted explicitly. The dataset is not mounted automatically when the dataset is created or imported, nor is it mounted by the \fBzfs mount -a\fR command or unmounted by the \fBzfs unmount -a\fR command.
642.sp
643This property is not inherited.
644.RE
645
646.sp
647.ne 2
648.mk
649.na
650\fB\fBchecksum\fR=\fBon\fR | \fBoff\fR | \fBfletcher2,\fR| \fBfletcher4\fR | \fBsha256\fR\fR
651.ad
652.sp .6
653.RS 4n
654Controls the checksum used to verify data integrity. The default value is \fBon\fR, which automatically selects an appropriate algorithm (currently, \fBfletcher2\fR, but this may change in future releases). The value \fBoff\fR disables integrity checking on user data. Disabling checksums is \fBNOT\fR a recommended practice.
655.sp
656Changing this property affects only newly-written data.
657.RE
658
659.sp
660.ne 2
661.mk
662.na
f4605f07 663\fBcompression\fR=\fBon\fR | \fBoff\fR | \fBlzjb\fR | \fBgzip\fR | \fBgzip-\fR\fIN\fR | \fBzle\fR
058ac9ba
BB
664.ad
665.sp .6
666.RS 4n
f4605f07
RL
667Controls the compression algorithm used for this dataset. The \fBlzjb\fR compression algorithm is optimized for performance while providing decent data compression. Setting compression to \fBon\fR uses the \fBlzjb\fR compression algorithm.
668.sp
669The \fBgzip\fR compression algorithm uses the same compression as the \fBgzip\fR(1) command. You can specify the \fBgzip\fR level by using the value \fBgzip-\fR\fIN\fR where \fIN\fR is an integer from 1 (fastest) to 9 (best compression ratio). Currently, \fBgzip\fR is equivalent to \fBgzip-6\fR (which is also the default for \fBgzip\fR(1)).
670.sp
671The \fBzle\fR (zero-length encoding) compression algorithm is a fast and simple algorithm to eliminate runs of zeroes.
058ac9ba
BB
672.sp
673This property can also be referred to by its shortened column name \fBcompress\fR. Changing this property affects only newly-written data.
674.RE
675
676.sp
677.ne 2
678.mk
679.na
680\fB\fBcopies\fR=\fB1\fR | \fB2\fR | \fB3\fR\fR
681.ad
682.sp .6
683.RS 4n
684Controls the number of copies of data stored for this dataset. These copies are in addition to any redundancy provided by the pool, for example, mirroring or RAID-Z. The copies are stored on different disks, if possible. The space used by multiple copies is charged to the associated file and dataset, changing the \fBused\fR property and counting against quotas and reservations.
685.sp
686Changing this property only affects newly-written data. Therefore, set this property at file system creation time by using the \fB-o\fR \fBcopies=\fR\fIN\fR option.
687.RE
688
689.sp
690.ne 2
691.mk
692.na
693\fB\fBdevices\fR=\fBon\fR | \fBoff\fR\fR
694.ad
695.sp .6
696.RS 4n
697Controls whether device nodes can be opened on this file system. The default value is \fBon\fR.
698.RE
699
700.sp
701.ne 2
702.mk
703.na
704\fB\fBexec\fR=\fBon\fR | \fBoff\fR\fR
705.ad
706.sp .6
707.RS 4n
708Controls whether processes can be executed from within this file system. The default value is \fBon\fR.
709.RE
710
711.sp
712.ne 2
713.mk
714.na
715\fB\fBmountpoint\fR=\fIpath\fR | \fBnone\fR | \fBlegacy\fR\fR
716.ad
717.sp .6
718.RS 4n
719Controls the mount point used for this file system. See the "Mount Points" section for more information on how this property is used.
720.sp
721When the \fBmountpoint\fR property is changed for a file system, the file system and any children that inherit the mount point are unmounted. If the new value is \fBlegacy\fR, then they remain unmounted. Otherwise, they are automatically remounted in the new location if the property was previously \fBlegacy\fR or \fBnone\fR, or if they were mounted before the property was changed. In addition, any shared file systems are unshared and shared in the new location.
722.RE
723
724.sp
725.ne 2
726.mk
727.na
728\fB\fBnbmand\fR=\fBon\fR | \fBoff\fR\fR
729.ad
730.sp .6
731.RS 4n
2d1b7b0b 732Controls whether the file system should be mounted with \fBnbmand\fR (Non Blocking mandatory locks). This is used for \fBCIFS\fR clients. Changes to this property only take effect when the file system is umounted and remounted. See \fBmount\fR(8) for more information on \fBnbmand\fR mounts.
058ac9ba
BB
733.RE
734
735.sp
736.ne 2
737.mk
738.na
739\fB\fBprimarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
740.ad
741.sp .6
742.RS 4n
743Controls what is cached in the primary cache (ARC). If this property is set to \fBall\fR, then both user data and metadata is cached. If this property is set to \fBnone\fR, then neither user data nor metadata is cached. If this property is set to \fBmetadata\fR, then only metadata is cached. The default value is \fBall\fR.
744.RE
745
746.sp
747.ne 2
748.mk
749.na
750\fB\fBquota\fR=\fIsize\fR | \fBnone\fR\fR
751.ad
752.sp .6
753.RS 4n
754Limits the amount of space a dataset and its descendents can consume. This property enforces a hard limit on the amount of space used. This includes all space consumed by descendents, including file systems and snapshots. Setting a quota on a descendent of a dataset that already has a quota does not override the ancestor's quota, but rather imposes an additional limit.
755.sp
756Quotas cannot be set on volumes, as the \fBvolsize\fR property acts as an implicit quota.
757.RE
758
759.sp
760.ne 2
761.mk
762.na
763\fB\fBuserquota@\fR\fIuser\fR=\fIsize\fR | \fBnone\fR\fR
764.ad
765.sp .6
766.RS 4n
767Limits the amount of space consumed by the specified user. User space consumption is identified by the \fBuserspace@\fR\fIuser\fR property.
768.sp
769Enforcement of user quotas may be delayed by several seconds. This delay means that a user might exceed their quota before the system notices that they are over quota and begins to refuse additional writes with the \fBEDQUOT\fR error message . See the \fBzfs userspace\fR subcommand for more information.
770.sp
771Unprivileged users can only access their own groups' space usage. The root user, or a user who has been granted the \fBuserquota\fR privilege with \fBzfs allow\fR, can get and set everyone's quota.
772.sp
773This property is not available on volumes, on file systems before version 4, or on pools before version 15. The \fBuserquota@\fR... properties are not displayed by \fBzfs get all\fR. The user's name must be appended after the \fB@\fR symbol, using one of the following forms:
774.RS +4
775.TP
776.ie t \(bu
777.el o
778\fIPOSIX name\fR (for example, \fBjoe\fR)
779.RE
780.RS +4
781.TP
782.ie t \(bu
783.el o
784\fIPOSIX numeric ID\fR (for example, \fB789\fR)
785.RE
786.RS +4
787.TP
788.ie t \(bu
789.el o
790\fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
791.RE
792.RS +4
793.TP
794.ie t \(bu
795.el o
796\fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
797.RE
798.RE
799
800.sp
801.ne 2
802.mk
803.na
804\fB\fBgroupquota@\fR\fIgroup\fR=\fIsize\fR | \fBnone\fR\fR
805.ad
806.sp .6
807.RS 4n
808Limits the amount of space consumed by the specified group. Group space consumption is identified by the \fBuserquota@\fR\fIuser\fR property.
809.sp
810Unprivileged users can access only their own groups' space usage. The root user, or a user who has been granted the \fBgroupquota\fR privilege with \fBzfs allow\fR, can get and set all groups' quotas.
811.RE
812
813.sp
814.ne 2
815.mk
816.na
817\fB\fBreadonly\fR=\fBon\fR | \fBoff\fR\fR
818.ad
819.sp .6
820.RS 4n
821Controls whether this dataset can be modified. The default value is \fBoff\fR.
822.sp
823This property can also be referred to by its shortened column name, \fBrdonly\fR.
824.RE
825
826.sp
827.ne 2
828.mk
829.na
830\fB\fBrecordsize\fR=\fIsize\fR\fR
831.ad
832.sp .6
833.RS 4n
834Specifies a suggested block size for files in the file system. This property is designed solely for use with database workloads that access files in fixed-size records. \fBZFS\fR automatically tunes block sizes according to internal algorithms optimized for typical access patterns.
835.sp
836For databases that create very large files but access them in small random chunks, these algorithms may be suboptimal. Specifying a \fBrecordsize\fR greater than or equal to the record size of the database can result in significant performance gains. Use of this property for general purpose file systems is strongly discouraged, and may adversely affect performance.
837.sp
838The size specified must be a power of two greater than or equal to 512 and less than or equal to 128 Kbytes.
839.sp
840Changing the file system's \fBrecordsize\fR affects only files created afterward; existing files are unaffected.
841.sp
842This property can also be referred to by its shortened column name, \fBrecsize\fR.
843.RE
844
845.sp
846.ne 2
847.mk
848.na
849\fB\fBrefquota\fR=\fIsize\fR | \fBnone\fR\fR
850.ad
851.sp .6
852.RS 4n
853Limits the amount of space a dataset can consume. This property enforces a hard limit on the amount of space used. This hard limit does not include space used by descendents, including file systems and snapshots.
854.RE
855
856.sp
857.ne 2
858.mk
859.na
860\fB\fBrefreservation\fR=\fIsize\fR | \fBnone\fR\fR
861.ad
862.sp .6
863.RS 4n
864The minimum amount of space guaranteed to a dataset, not including its descendents. When the amount of space used is below this value, the dataset is treated as if it were taking up the amount of space specified by \fBrefreservation\fR. The \fBrefreservation\fR reservation is accounted for in the parent datasets' space used, and counts against the parent datasets' quotas and reservations.
865.sp
866If \fBrefreservation\fR is set, a snapshot is only allowed if there is enough free pool space outside of this reservation to accommodate the current number of "referenced" bytes in the dataset.
867.sp
868This property can also be referred to by its shortened column name, \fBrefreserv\fR.
869.RE
870
871.sp
872.ne 2
873.mk
874.na
875\fB\fBreservation\fR=\fIsize\fR | \fBnone\fR\fR
876.ad
877.sp .6
878.RS 4n
879The minimum amount of space guaranteed to a dataset and its descendents. When the amount of space used is below this value, the dataset is treated as if it were taking up the amount of space specified by its reservation. Reservations are accounted for in the parent datasets' space used, and count against the parent datasets' quotas and reservations.
880.sp
881This property can also be referred to by its shortened column name, \fBreserv\fR.
882.RE
883
884.sp
885.ne 2
886.mk
887.na
888\fB\fBsecondarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
889.ad
890.sp .6
891.RS 4n
892Controls what is cached in the secondary cache (L2ARC). If this property is set to \fBall\fR, then both user data and metadata is cached. If this property is set to \fBnone\fR, then neither user data nor metadata is cached. If this property is set to \fBmetadata\fR, then only metadata is cached. The default value is \fBall\fR.
893.RE
894
895.sp
896.ne 2
897.mk
898.na
899\fB\fBsetuid\fR=\fBon\fR | \fBoff\fR\fR
900.ad
901.sp .6
902.RS 4n
903Controls whether the set-\fBUID\fR bit is respected for the file system. The default value is \fBon\fR.
904.RE
905
906.sp
907.ne 2
908.mk
909.na
910\fB\fBshareiscsi\fR=\fBon\fR | \fBoff\fR\fR
911.ad
912.sp .6
913.RS 4n
914Like the \fBsharenfs\fR property, \fBshareiscsi\fR indicates whether a \fBZFS\fR volume is exported as an \fBiSCSI\fR target. The acceptable values for this property are \fBon\fR, \fBoff\fR, and \fBtype=disk\fR. The default value is \fBoff\fR. In the future, other target types might be supported. For example, \fBtape\fR.
915.sp
916You might want to set \fBshareiscsi=on\fR for a file system so that all \fBZFS\fR volumes within the file system are shared by default. However, setting this property on a file system has no direct effect.
917.RE
918
919.sp
920.ne 2
921.mk
922.na
923\fB\fBsharesmb\fR=\fBon\fR | \fBoff\fR | \fIopts\fR\fR
924.ad
925.sp .6
926.RS 4n
927Controls whether the file system is shared by using the Solaris \fBCIFS\fR service, and what options are to be used. A file system with the \fBsharesmb\fR property set to \fBoff\fR is managed through traditional tools such as \fBsharemgr\fR(1M). Otherwise, the file system is automatically shared and unshared with the \fBzfs share\fR and \fBzfs unshare\fR commands. If the property is set to \fBon\fR, the \fBsharemgr\fR(1M) command is invoked with no options. Otherwise, the \fBsharemgr\fR(1M) command is invoked with options equivalent to the contents of this property.
928.sp
929Because \fBSMB\fR shares requires a resource name, a unique resource name is constructed from the dataset name. The constructed name is a copy of the dataset name except that the characters in the dataset name, which would be illegal in the resource name, are replaced with underscore (\fB_\fR) characters. A pseudo property "name" is also supported that allows you to replace the data set name with a specified name. The specified name is then used to replace the prefix dataset in the case of inheritance. For example, if the dataset \fBdata/home/john\fR is set to \fBname=john\fR, then \fBdata/home/john\fR has a resource name of \fBjohn\fR. If a child dataset of \fBdata/home/john/backups\fR, it has a resource name of \fBjohn_backups\fR.
930.sp
931When SMB shares are created, the SMB share name appears as an entry in the \fB\&.zfs/shares\fR directory. You can use the \fBls\fR or \fBchmod\fR command to display the share-level ACLs on the entries in this directory.
932.sp
933When the \fBsharesmb\fR property is changed for a dataset, the dataset and any children inheriting the property are re-shared with the new options, only if the property was previously set to \fBoff\fR, or if they were shared before the property was changed. If the new property is set to \fBoff\fR, the file systems are unshared.
934.RE
935
936.sp
937.ne 2
938.mk
939.na
940\fB\fBsharenfs\fR=\fBon\fR | \fBoff\fR | \fIopts\fR\fR
941.ad
942.sp .6
943.RS 4n
944Controls whether the file system is shared via \fBNFS\fR, and what options are used. A file system with a \fBsharenfs\fR property of \fBoff\fR is managed through traditional tools such as \fBshare\fR(1M), \fBunshare\fR(1M), and \fBdfstab\fR(4). Otherwise, the file system is automatically shared and unshared with the \fBzfs share\fR and \fBzfs unshare\fR commands. If the property is set to \fBon\fR, the \fBshare\fR(1M) command is invoked with no options. Otherwise, the \fBshare\fR(1M) command is invoked with options equivalent to the contents of this property.
945.sp
946When the \fBsharenfs\fR property is changed for a dataset, the dataset and any children inheriting the property are re-shared with the new options, only if the property was previously \fBoff\fR, or if they were shared before the property was changed. If the new property is \fBoff\fR, the file systems are unshared.
947.RE
948
949.sp
950.ne 2
951.mk
952.na
953\fB\fBlogbias\fR = \fBlatency\fR | \fBthroughput\fR\fR
954.ad
955.sp .6
956.RS 4n
957Provide a hint to ZFS about handling of synchronous requests in this dataset. If \fBlogbias\fR is set to \fBlatency\fR (the default), ZFS will use pool log devices (if configured) to handle the requests at low latency. If \fBlogbias\fR is set to \fBthroughput\fR, ZFS will not use configured pool log devices. ZFS will instead optimize synchronous operations for global pool throughput and efficient use of resources.
958.RE
959
960.sp
961.ne 2
962.mk
963.na
964\fB\fBsnapdir\fR=\fBhidden\fR | \fBvisible\fR\fR
965.ad
966.sp .6
967.RS 4n
968Controls whether the \fB\&.zfs\fR directory is hidden or visible in the root of the file system as discussed in the "Snapshots" section. The default value is \fBhidden\fR.
969.RE
970
971.sp
972.ne 2
973.mk
974.na
975\fB\fBversion\fR=\fB1\fR | \fB2\fR | \fBcurrent\fR\fR
976.ad
977.sp .6
978.RS 4n
979The on-disk version of this file system, which is independent of the pool version. This property can only be set to later supported versions. See the \fBzfs upgrade\fR command.
980.RE
981
982.sp
983.ne 2
984.mk
985.na
986\fB\fBvolsize\fR=\fIsize\fR\fR
987.ad
988.sp .6
989.RS 4n
990For volumes, specifies the logical size of the volume. By default, creating a volume establishes a reservation of equal size. For storage pools with a version number of 9 or higher, a \fBrefreservation\fR is set instead. Any changes to \fBvolsize\fR are reflected in an equivalent change to the reservation (or \fBrefreservation\fR). The \fBvolsize\fR can only be set to a multiple of \fBvolblocksize\fR, and cannot be zero.
991.sp
992The reservation is kept equal to the volume's logical size to prevent unexpected behavior for consumers. Without the reservation, the volume could run out of space, resulting in undefined behavior or data corruption, depending on how the volume is used. These effects can also occur when the volume size is changed while it is in use (particularly when shrinking the size). Extreme care should be used when adjusting the volume size.
993.sp
994Though not recommended, a "sparse volume" (also known as "thin provisioning") can be created by specifying the \fB-s\fR option to the \fBzfs create -V\fR command, or by changing the reservation after the volume has been created. A "sparse volume" is a volume where the reservation is less then the volume size. Consequently, writes to a sparse volume can fail with \fBENOSPC\fR when the pool is low on space. For a sparse volume, changes to \fBvolsize\fR are not reflected in the reservation.
995.RE
996
997.sp
998.ne 2
999.mk
1000.na
1001\fB\fBvscan\fR=\fBon\fR | \fBoff\fR\fR
1002.ad
1003.sp .6
1004.RS 4n
1005Controls whether regular files should be scanned for viruses when a file is opened and closed. In addition to enabling this property, the virus scan service must also be enabled for virus scanning to occur. The default value is \fBoff\fR.
1006.RE
1007
1008.sp
1009.ne 2
1010.mk
1011.na
1012\fB\fBxattr\fR=\fBon\fR | \fBoff\fR\fR
1013.ad
1014.sp .6
1015.RS 4n
1016Controls whether extended attributes are enabled for this file system. The default value is \fBon\fR.
1017.RE
1018
1019.sp
1020.ne 2
1021.mk
1022.na
1023\fB\fBzoned\fR=\fBon\fR | \fBoff\fR\fR
1024.ad
1025.sp .6
1026.RS 4n
4da4a9e1 1027Controls whether the dataset is managed from a non-global zone. Zones are a Solaris feature and are not relevant on Linux. The default value is \fBoff\fR.
058ac9ba
BB
1028.RE
1029
1030.sp
1031.LP
1032The following three properties cannot be changed after the file system is created, and therefore, should be set when the file system is created. If the properties are not set with the \fBzfs create\fR or \fBzpool create\fR commands, these properties are inherited from the parent dataset. If the parent dataset lacks these properties due to having been created prior to these features being supported, the new file system will have the default values for these properties.
1033.sp
1034.ne 2
1035.mk
1036.na
1037\fB\fBcasesensitivity\fR=\fBsensitive\fR | \fBinsensitive\fR | \fBmixed\fR\fR
1038.ad
1039.sp .6
1040.RS 4n
1041Indicates whether the file name matching algorithm used by the file system should be case-sensitive, case-insensitive, or allow a combination of both styles of matching. The default value for the \fBcasesensitivity\fR property is \fBsensitive\fR. Traditionally, UNIX and POSIX file systems have case-sensitive file names.
1042.sp
1043The \fBmixed\fR value for the \fBcasesensitivity\fR property indicates that the file system can support requests for both case-sensitive and case-insensitive matching behavior. Currently, case-insensitive matching behavior on a file system that supports mixed behavior is limited to the Solaris CIFS server product. For more information about the \fBmixed\fR value behavior, see the \fISolaris ZFS Administration Guide\fR.
1044.RE
1045
1046.sp
1047.ne 2
1048.mk
1049.na
1050\fB\fBnormalization\fR = \fBnone\fR | \fBformC\fR | \fBformD\fR | \fBformKC\fR | \fBformKD\fR\fR
1051.ad
1052.sp .6
1053.RS 4n
1054Indicates whether the file system should perform a \fBunicode\fR normalization of file names whenever two file names are compared, and which normalization algorithm should be used. File names are always stored unmodified, names are normalized as part of any comparison process. If this property is set to a legal value other than \fBnone\fR, and the \fButf8only\fR property was left unspecified, the \fButf8only\fR property is automatically set to \fBon\fR. The default value of the \fBnormalization\fR property is \fBnone\fR. This property cannot be changed after the file system is created.
1055.RE
1056
1057.sp
1058.ne 2
1059.mk
1060.na
1061\fB\fButf8only\fR=\fBon\fR | \fBoff\fR\fR
1062.ad
1063.sp .6
1064.RS 4n
1065Indicates whether the file system should reject file names that include characters that are not present in the \fBUTF-8\fR character code set. If this property is explicitly set to \fBoff\fR, the normalization property must either not be explicitly set or be set to \fBnone\fR. The default value for the \fButf8only\fR property is \fBoff\fR. This property cannot be changed after the file system is created.
1066.RE
1067
1068.sp
1069.LP
1070The \fBcasesensitivity\fR, \fBnormalization\fR, and \fButf8only\fR properties are also new permissions that can be assigned to non-privileged users by using the \fBZFS\fR delegated administration feature.
1071.SS "Temporary Mount Point Properties"
1072.sp
1073.LP
2d1b7b0b 1074When a file system is mounted, either through \fBmount\fR(8) for legacy mounts or the \fBzfs mount\fR command for normal file systems, its mount options are set according to its properties. The correlation between properties and mount options is as follows:
058ac9ba
BB
1075.sp
1076.in +2
1077.nf
1078 PROPERTY MOUNT OPTION
1079 devices devices/nodevices
1080 exec exec/noexec
1081 readonly ro/rw
1082 setuid setuid/nosetuid
1083 xattr xattr/noxattr
1084.fi
1085.in -2
1086.sp
1087
1088.sp
1089.LP
1090In addition, these options can be set on a per-mount basis using the \fB-o\fR option, without affecting the property that is stored on disk. The values specified on the command line override the values stored in the dataset. The \fB-nosuid\fR option is an alias for \fBnodevices,nosetuid\fR. These properties are reported as "temporary" by the \fBzfs get\fR command. If the properties are changed while the dataset is mounted, the new setting overrides any temporary settings.
1091.SS "User Properties"
1092.sp
1093.LP
1094In addition to the standard native properties, \fBZFS\fR supports arbitrary user properties. User properties have no effect on \fBZFS\fR behavior, but applications or administrators can use them to annotate datasets (file systems, volumes, and snapshots).
1095.sp
1096.LP
1097User property names must contain a colon (\fB:\fR) character to distinguish them from native properties. They may contain lowercase letters, numbers, and the following punctuation characters: colon (\fB:\fR), dash (\fB-\fR), period (\fB\&.\fR), and underscore (\fB_\fR). The expected convention is that the property name is divided into two portions such as \fImodule\fR\fB:\fR\fIproperty\fR, but this namespace is not enforced by \fBZFS\fR. User property names can be at most 256 characters, and cannot begin with a dash (\fB-\fR).
1098.sp
1099.LP
4da4a9e1 1100When making programmatic use of user properties, it is strongly suggested to use a reversed \fBDNS\fR domain name for the \fImodule\fR component of property names to reduce the chance that two independently-developed packages use the same property name for different purposes. For example, property names beginning with \fBcom.sun\fR. are reserved for use by Oracle Corporation (which acquired Sun Microsystems).
058ac9ba
BB
1101.sp
1102.LP
1103The values of user properties are arbitrary strings, are always inherited, and are never validated. All of the commands that operate on properties (\fBzfs list\fR, \fBzfs get\fR, \fBzfs set\fR, and so forth) can be used to manipulate both native properties and user properties. Use the \fBzfs inherit\fR command to clear a user property . If the property is not defined in any parent dataset, it is removed entirely. Property values are limited to 1024 characters.
4da4a9e1 1104.SS "ZFS Volumes as Swap"
058ac9ba
BB
1105.sp
1106.LP
4da4a9e1 1107Do not swap to a file on a \fBZFS\fR file system. A \fBZFS\fR swap file configuration is not supported.
058ac9ba
BB
1108.SH SUBCOMMANDS
1109.sp
1110.LP
1111All subcommands that modify state are logged persistently to the pool in their original form.
1112.sp
1113.ne 2
1114.mk
1115.na
1116\fB\fBzfs ?\fR\fR
1117.ad
1118.sp .6
1119.RS 4n
1120Displays a help message.
1121.RE
1122
1123.sp
1124.ne 2
1125.mk
1126.na
1127\fB\fBzfs create\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem\fR\fR
1128.ad
1129.sp .6
1130.RS 4n
1131Creates a new \fBZFS\fR file system. The file system is automatically mounted according to the \fBmountpoint\fR property inherited from the parent.
1132.sp
1133.ne 2
1134.mk
1135.na
1136\fB\fB-p\fR\fR
1137.ad
1138.sp .6
1139.RS 4n
1140Creates all the non-existing parent datasets. Datasets created in this manner are automatically mounted according to the \fBmountpoint\fR property inherited from their parent. Any property specified on the command line using the \fB-o\fR option is ignored. If the target filesystem already exists, the operation completes successfully.
1141.RE
1142
1143.sp
1144.ne 2
1145.mk
1146.na
1147\fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1148.ad
1149.sp .6
1150.RS 4n
1151Sets the specified property as if the command \fBzfs set\fR \fIproperty\fR=\fIvalue\fR was invoked at the same time the dataset was created. Any editable \fBZFS\fR property can also be set at creation time. Multiple \fB-o\fR options can be specified. An error results if the same property is specified in multiple \fB-o\fR options.
1152.RE
1153
1154.RE
1155
1156.sp
1157.ne 2
1158.mk
1159.na
1160\fB\fBzfs create\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fB-V\fR \fIsize\fR \fIvolume\fR\fR
1161.ad
1162.sp .6
1163.RS 4n
1fe2e237 1164Creates a volume of the given size. The volume is exported as a block device in \fB/dev/zvol/\fR\fIpath\fR, where \fIpath\fR is the name of the volume in the \fBZFS\fR namespace. The size represents the logical size as exported by the device. By default, a reservation of equal size is created.
058ac9ba
BB
1165.sp
1166\fIsize\fR is automatically rounded up to the nearest 128 Kbytes to ensure that the volume has an integral number of blocks regardless of \fIblocksize\fR.
1167.sp
1168.ne 2
1169.mk
1170.na
1171\fB\fB-p\fR\fR
1172.ad
1173.sp .6
1174.RS 4n
1175Creates all the non-existing parent datasets. Datasets created in this manner are automatically mounted according to the \fBmountpoint\fR property inherited from their parent. Any property specified on the command line using the \fB-o\fR option is ignored. If the target filesystem already exists, the operation completes successfully.
1176.RE
1177
1178.sp
1179.ne 2
1180.mk
1181.na
1182\fB\fB-s\fR\fR
1183.ad
1184.sp .6
1185.RS 4n
1186Creates a sparse volume with no reservation. See \fBvolsize\fR in the Native Properties section for more information about sparse volumes.
1187.RE
1188
1189.sp
1190.ne 2
1191.mk
1192.na
1193\fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1194.ad
1195.sp .6
1196.RS 4n
1197Sets the specified property as if the \fBzfs set\fR \fIproperty\fR=\fIvalue\fR command was invoked at the same time the dataset was created. Any editable \fBZFS\fR property can also be set at creation time. Multiple \fB-o\fR options can be specified. An error results if the same property is specified in multiple \fB-o\fR options.
1198.RE
1199
1200.sp
1201.ne 2
1202.mk
1203.na
1204\fB\fB-b\fR \fIblocksize\fR\fR
1205.ad
1206.sp .6
1207.RS 4n
1208Equivalent to \fB-o\fR \fBvolblocksize\fR=\fIblocksize\fR. If this option is specified in conjunction with \fB-o\fR \fBvolblocksize\fR, the resulting behavior is undefined.
1209.RE
1210
1211.RE
1212
1213.sp
1214.ne 2
1215.mk
1216.na
1217\fB\fBzfs destroy\fR [\fB-rRf\fR] \fIfilesystem\fR|\fIvolume\fR\fR
1218.ad
1219.sp .6
1220.RS 4n
1221Destroys the given dataset. By default, the command unshares any file systems that are currently shared, unmounts any file systems that are currently mounted, and refuses to destroy a dataset that has active dependents (children or clones).
1222.sp
1223.ne 2
1224.mk
1225.na
1226\fB\fB-r\fR\fR
1227.ad
1228.sp .6
1229.RS 4n
1230Recursively destroy all children.
1231.RE
1232
1233.sp
1234.ne 2
1235.mk
1236.na
1237\fB\fB-R\fR\fR
1238.ad
1239.sp .6
1240.RS 4n
1241Recursively destroy all dependents, including cloned file systems outside the target hierarchy.
1242.RE
1243
1244.sp
1245.ne 2
1246.mk
1247.na
1248\fB\fB-f\fR\fR
1249.ad
1250.sp .6
1251.RS 4n
1252Force an unmount of any file systems using the \fBunmount -f\fR command. This option has no effect on non-file systems or unmounted file systems.
1253.RE
1254
f5fc4aca 1255Extreme care should be taken when applying either the \fB-r\fR or the \fB-R\fR options, as they can destroy large portions of a pool and cause unexpected behavior for mounted file systems in use.
058ac9ba
BB
1256.RE
1257
1258.sp
1259.ne 2
1260.mk
1261.na
1262\fB\fBzfs destroy\fR [\fB-rRd\fR] \fIsnapshot\fR\fR
1263.ad
1264.sp .6
1265.RS 4n
1266The given snapshot is destroyed immediately if and only if the \fBzfs destroy\fR command without the \fB-d\fR option would have destroyed it. Such immediate destruction would occur, for example, if the snapshot had no clones and the user-initiated reference count were zero.
1267.sp
3b204150 1268If the snapshot does not qualify for immediate destruction, it is marked for deferred destruction. In this state, it exists as a usable, visible snapshot until both of the preconditions listed above are met, at which point it is destroyed.
058ac9ba
BB
1269.sp
1270.ne 2
1271.mk
1272.na
1273\fB\fB-d\fR\fR
1274.ad
1275.sp .6
1276.RS 4n
1277Defer snapshot deletion.
1278.RE
1279
1280.sp
1281.ne 2
1282.mk
1283.na
1284\fB\fB-r\fR\fR
1285.ad
1286.sp .6
1287.RS 4n
3b204150 1288Destroy (or mark for deferred destruction) all snapshots with this name in descendent file systems.
058ac9ba
BB
1289.RE
1290
1291.sp
1292.ne 2
1293.mk
1294.na
1295\fB\fB-R\fR\fR
1296.ad
1297.sp .6
1298.RS 4n
1299Recursively destroy all dependents.
1300.RE
1301
1302.RE
1303
1304.sp
1305.ne 2
1306.mk
1307.na
1308\fB\fBzfs snapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem@snapname\fR|\fIvolume@snapname\fR\fR
1309.ad
1310.sp .6
1311.RS 4n
1312Creates a snapshot with the given name. All previous modifications by successful system calls to the file system are part of the snapshot. See the "Snapshots" section for details.
1313.sp
1314.ne 2
1315.mk
1316.na
1317\fB\fB-r\fR\fR
1318.ad
1319.sp .6
1320.RS 4n
1321Recursively create snapshots of all descendent datasets. Snapshots are taken atomically, so that all recursive snapshots correspond to the same moment in time.
1322.RE
1323
1324.sp
1325.ne 2
1326.mk
1327.na
1328\fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1329.ad
1330.sp .6
1331.RS 4n
1332Sets the specified property; see \fBzfs create\fR for details.
1333.RE
1334
1335.RE
1336
1337.sp
1338.ne 2
1339.mk
1340.na
1341\fB\fBzfs rollback\fR [\fB-rRf\fR] \fIsnapshot\fR\fR
1342.ad
1343.sp .6
1344.RS 4n
1345Roll back the given dataset to a previous snapshot. When a dataset is rolled back, all data that has changed since the snapshot is discarded, and the dataset reverts to the state at the time of the snapshot. By default, the command refuses to roll back to a snapshot other than the most recent one. In order to do so, all intermediate snapshots must be destroyed by specifying the \fB-r\fR option.
1346.sp
1347The \fB-rR\fR options do not recursively destroy the child snapshots of a recursive snapshot. Only the top-level recursive snapshot is destroyed by either of these options. To completely roll back a recursive snapshot, you must rollback the individual child snapshots.
1348.sp
1349.ne 2
1350.mk
1351.na
1352\fB\fB-r\fR\fR
1353.ad
1354.sp .6
1355.RS 4n
1356Recursively destroy any snapshots more recent than the one specified.
1357.RE
1358
1359.sp
1360.ne 2
1361.mk
1362.na
1363\fB\fB-R\fR\fR
1364.ad
1365.sp .6
1366.RS 4n
1367Recursively destroy any more recent snapshots, as well as any clones of those snapshots.
1368.RE
1369
1370.sp
1371.ne 2
1372.mk
1373.na
1374\fB\fB-f\fR\fR
1375.ad
1376.sp .6
1377.RS 4n
1378Used with the \fB-R\fR option to force an unmount of any clone file systems that are to be destroyed.
1379.RE
1380
1381.RE
1382
1383.sp
1384.ne 2
1385.mk
1386.na
1387\fB\fBzfs clone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR\fR
1388.ad
1389.sp .6
1390.RS 4n
1391Creates a clone of the given snapshot. See the "Clones" section for details. The target dataset can be located anywhere in the \fBZFS\fR hierarchy, and is created as the same type as the original.
1392.sp
1393.ne 2
1394.mk
1395.na
1396\fB\fB-p\fR\fR
1397.ad
1398.sp .6
1399.RS 4n
1400Creates all the non-existing parent datasets. Datasets created in this manner are automatically mounted according to the \fBmountpoint\fR property inherited from their parent. If the target filesystem or volume already exists, the operation completes successfully.
1401.RE
1402
1403.sp
1404.ne 2
1405.mk
1406.na
1407\fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1408.ad
1409.sp .6
1410.RS 4n
1411Sets the specified property; see \fBzfs create\fR for details.
1412.RE
1413
1414.RE
1415
1416.sp
1417.ne 2
1418.mk
1419.na
1420\fB\fBzfs promote\fR \fIclone-filesystem\fR\fR
1421.ad
1422.sp .6
1423.RS 4n
1424Promotes a clone file system to no longer be dependent on its "origin" snapshot. This makes it possible to destroy the file system that the clone was created from. The clone parent-child dependency relationship is reversed, so that the origin file system becomes a clone of the specified file system.
1425.sp
1426The snapshot that was cloned, and any snapshots previous to this snapshot, are now owned by the promoted clone. The space they use moves from the origin file system to the promoted clone, so enough space must be available to accommodate these snapshots. No new space is consumed by this operation, but the space accounting is adjusted. The promoted clone must not have any conflicting snapshot names of its own. The \fBrename\fR subcommand can be used to rename any conflicting snapshots.
1427.RE
1428
1429.sp
1430.ne 2
1431.mk
1432.na
1433\fB\fBzfs rename\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
1434.ad
1435.br
1436.na
1437\fB\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
1438.ad
1439.br
1440.na
1441\fB\fBzfs rename\fR [\fB-p\fR] \fIfilesystem\fR|\fIvolume\fR \fIfilesystem\fR|\fIvolume\fR\fR
1442.ad
1443.sp .6
1444.RS 4n
1445Renames the given dataset. The new target can be located anywhere in the \fBZFS\fR hierarchy, with the exception of snapshots. Snapshots can only be renamed within the parent file system or volume. When renaming a snapshot, the parent file system of the snapshot does not need to be specified as part of the second argument. Renamed file systems can inherit new mount points, in which case they are unmounted and remounted at the new mount point.
1446.sp
1447.ne 2
1448.mk
1449.na
1450\fB\fB-p\fR\fR
1451.ad
1452.sp .6
1453.RS 4n
1454Creates all the nonexistent parent datasets. Datasets created in this manner are automatically mounted according to the \fBmountpoint\fR property inherited from their parent.
1455.RE
1456
1457.RE
1458
1459.sp
1460.ne 2
1461.mk
1462.na
1463\fB\fBzfs rename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR\fR
1464.ad
1465.sp .6
1466.RS 4n
1467Recursively rename the snapshots of all descendent datasets. Snapshots are the only dataset that can be renamed recursively.
1468.RE
1469
1470.sp
1471.ne 2
1472.mk
1473.na
cf81b00a 1474\fB\fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-H\fR] [\fB-o\fR \fIproperty\fR[,\fI\&...\fR]] [ \fB-t\fR \fItype\fR[,\fI\&...\fR]] [ \fB-s\fR \fIproperty\fR ] ... [ \fB-S\fR \fIproperty\fR ] ... [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR|\fIsnap\fR] ...\fR
058ac9ba
BB
1475.ad
1476.sp .6
1477.RS 4n
1478Lists the property information for the given datasets in tabular form. If specified, you can list property information by the absolute pathname or the relative pathname. By default, all file systems and volumes are displayed. Snapshots are displayed if the \fBlistsnaps\fR property is \fBon\fR (the default is \fBoff\fR) . The following fields are displayed, \fBname,used,available,referenced,mountpoint\fR.
1479.sp
1480.ne 2
1481.mk
1482.na
1483\fB\fB-H\fR\fR
1484.ad
1485.sp .6
1486.RS 4n
1487Used for scripting mode. Do not print headers and separate fields by a single tab instead of arbitrary white space.
1488.RE
1489
1490.sp
1491.ne 2
1492.mk
1493.na
1494\fB\fB-r\fR\fR
1495.ad
1496.sp .6
1497.RS 4n
1498Recursively display any children of the dataset on the command line.
1499.RE
1500
1501.sp
1502.ne 2
1503.mk
1504.na
1505\fB\fB-d\fR \fIdepth\fR\fR
1506.ad
1507.sp .6
1508.RS 4n
1509Recursively display any children of the dataset, limiting the recursion to \fIdepth\fR. A depth of \fB1\fR will display only the dataset and its direct children.
1510.RE
1511
1512.sp
1513.ne 2
1514.mk
1515.na
1516\fB\fB-o\fR \fIproperty\fR\fR
1517.ad
1518.sp .6
1519.RS 4n
1520A comma-separated list of properties to display. The property must be:
1521.RS +4
1522.TP
1523.ie t \(bu
1524.el o
1525One of the properties described in the "Native Properties" section
1526.RE
1527.RS +4
1528.TP
1529.ie t \(bu
1530.el o
1531A user property
1532.RE
1533.RS +4
1534.TP
1535.ie t \(bu
1536.el o
1537The value \fBname\fR to display the dataset name
1538.RE
1539.RS +4
1540.TP
1541.ie t \(bu
1542.el o
1543The value \fBspace\fR to display space usage properties on file systems and volumes. This is a shortcut for specifying \fB-o name,avail,used,usedsnap,usedds,usedrefreserv,usedchild\fR \fB-t filesystem,volume\fR syntax.
1544.RE
1545.RE
1546
1547.sp
1548.ne 2
1549.mk
1550.na
1551\fB\fB-s\fR \fIproperty\fR\fR
1552.ad
1553.sp .6
1554.RS 4n
1555A property for sorting the output by column in ascending order based on the value of the property. The property must be one of the properties described in the "Properties" section, or the special value \fBname\fR to sort by the dataset name. Multiple properties can be specified at one time using multiple \fB-s\fR property options. Multiple \fB-s\fR options are evaluated from left to right in decreasing order of importance.
1556.sp
1557The following is a list of sorting criteria:
1558.RS +4
1559.TP
1560.ie t \(bu
1561.el o
1562Numeric types sort in numeric order.
1563.RE
1564.RS +4
1565.TP
1566.ie t \(bu
1567.el o
1568String types sort in alphabetical order.
1569.RE
1570.RS +4
1571.TP
1572.ie t \(bu
1573.el o
1574Types inappropriate for a row sort that row to the literal bottom, regardless of the specified ordering.
1575.RE
1576.RS +4
1577.TP
1578.ie t \(bu
1579.el o
1580If no sorting options are specified the existing behavior of \fBzfs list\fR is preserved.
1581.RE
1582.RE
1583
1584.sp
1585.ne 2
1586.mk
1587.na
1588\fB\fB-S\fR \fIproperty\fR\fR
1589.ad
1590.sp .6
1591.RS 4n
1592Same as the \fB-s\fR option, but sorts by property in descending order.
1593.RE
1594
1595.sp
1596.ne 2
1597.mk
1598.na
1599\fB\fB-t\fR \fItype\fR\fR
1600.ad
1601.sp .6
1602.RS 4n
1603A comma-separated list of types to display, where \fItype\fR is one of \fBfilesystem\fR, \fBsnapshot\fR , \fBvolume\fR, or \fBall\fR. For example, specifying \fB-t snapshot\fR displays only snapshots.
1604.RE
1605
1606.RE
1607
1608.sp
1609.ne 2
1610.mk
1611.na
1612\fB\fBzfs set\fR \fIproperty\fR=\fIvalue\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
1613.ad
1614.sp .6
1615.RS 4n
1616Sets the property to the given value for each dataset. Only some properties can be edited. See the "Properties" section for more information on what properties can be set and acceptable values. Numeric values can be specified as exact values, or in a human-readable form with a suffix of \fBB\fR, \fBK\fR, \fBM\fR, \fBG\fR, \fBT\fR, \fBP\fR, \fBE\fR, \fBZ\fR (for bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes, or zettabytes, respectively). User properties can be set on snapshots. For more information, see the "User Properties" section.
1617.RE
1618
1619.sp
1620.ne 2
1621.mk
1622.na
1623\fB\fBzfs get\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-Hp\fR] [\fB-o\fR \fIfield\fR[,...] [\fB-s\fR \fIsource\fR[,...] "\fIall\fR" | \fIproperty\fR[,...] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
1624.ad
1625.sp .6
1626.RS 4n
1627Displays properties for the given datasets. If no datasets are specified, then the command displays properties for all datasets on the system. For each property, the following columns are displayed:
1628.sp
1629.in +2
1630.nf
1631 name Dataset name
1632 property Property name
1633 value Property value
1634 source Property source. Can either be local, default,
1635 temporary, inherited, or none (-).
1636.fi
1637.in -2
1638.sp
1639
1640All columns are displayed by default, though this can be controlled by using the \fB-o\fR option. This command takes a comma-separated list of properties as described in the "Native Properties" and "User Properties" sections.
1641.sp
1642The special value \fBall\fR can be used to display all properties that apply to the given dataset's type (filesystem, volume, or snapshot).
1643.sp
1644.ne 2
1645.mk
1646.na
1647\fB\fB-r\fR\fR
1648.ad
1649.sp .6
1650.RS 4n
1651Recursively display properties for any children.
1652.RE
1653
1654.sp
1655.ne 2
1656.mk
1657.na
1658\fB\fB-d\fR \fIdepth\fR\fR
1659.ad
1660.sp .6
1661.RS 4n
1662Recursively display any children of the dataset, limiting the recursion to \fIdepth\fR. A depth of \fB1\fR will display only the dataset and its direct children.
1663.RE
1664
1665.sp
1666.ne 2
1667.mk
1668.na
1669\fB\fB-H\fR\fR
1670.ad
1671.sp .6
1672.RS 4n
1673Display output in a form more easily parsed by scripts. Any headers are omitted, and fields are explicitly separated by a single tab instead of an arbitrary amount of space.
1674.RE
1675
1676.sp
1677.ne 2
1678.mk
1679.na
1680\fB\fB-o\fR \fIfield\fR\fR
1681.ad
1682.sp .6
1683.RS 4n
1684A comma-separated list of columns to display. \fBname,property,value,source\fR is the default value.
1685.RE
1686
1687.sp
1688.ne 2
1689.mk
1690.na
1691\fB\fB-s\fR \fIsource\fR\fR
1692.ad
1693.sp .6
1694.RS 4n
1695A comma-separated list of sources to display. Those properties coming from a source other than those in this list are ignored. Each source must be one of the following: \fBlocal,default,inherited,temporary,none\fR. The default value is all sources.
1696.RE
1697
1698.sp
1699.ne 2
1700.mk
1701.na
1702\fB\fB-p\fR\fR
1703.ad
1704.sp .6
1705.RS 4n
1706Display numbers in parseable (exact) values.
1707.RE
1708
1709.RE
1710
1711.sp
1712.ne 2
1713.mk
1714.na
1715\fB\fBzfs inherit\fR [\fB-r\fR] \fIproperty\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
1716.ad
1717.sp .6
1718.RS 4n
1719Clears the specified property, causing it to be inherited from an ancestor. If no ancestor has the property set, then the default value is used. See the "Properties" section for a listing of default values, and details on which properties can be inherited.
1720.sp
1721.ne 2
1722.mk
1723.na
1724\fB\fB-r\fR\fR
1725.ad
1726.sp .6
1727.RS 4n
1728Recursively inherit the given property for all children.
1729.RE
1730
1731.RE
1732
1733.sp
1734.ne 2
1735.mk
1736.na
1737\fB\fBzfs upgrade\fR [\fB-v\fR]\fR
1738.ad
1739.sp .6
1740.RS 4n
1741Displays a list of file systems that are not the most recent version.
1742.RE
1743
1744.sp
1745.ne 2
1746.mk
1747.na
1748\fB\fBzfs upgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] [\fB-a\fR | \fIfilesystem\fR]\fR
1749.ad
1750.sp .6
1751.RS 4n
1752Upgrades file systems to a new on-disk version. Once this is done, the file systems will no longer be accessible on systems running older versions of the software. \fBzfs send\fR streams generated from new snapshots of these file systems cannot be accessed on systems running older versions of the software.
1753.sp
2d1b7b0b 1754In general, the file system version is independent of the pool version. See \fBzpool\fR(8) for information on the \fBzpool upgrade\fR command.
058ac9ba
BB
1755.sp
1756In some cases, the file system version and the pool version are interrelated and the pool version must be upgraded before the file system version can be upgraded.
1757.sp
1758.ne 2
1759.mk
1760.na
1761\fB\fB-a\fR\fR
1762.ad
1763.sp .6
1764.RS 4n
1765Upgrade all file systems on all imported pools.
1766.RE
1767
1768.sp
1769.ne 2
1770.mk
1771.na
1772\fB\fIfilesystem\fR\fR
1773.ad
1774.sp .6
1775.RS 4n
1776Upgrade the specified file system.
1777.RE
1778
1779.sp
1780.ne 2
1781.mk
1782.na
1783\fB\fB-r\fR\fR
1784.ad
1785.sp .6
1786.RS 4n
1787Upgrade the specified file system and all descendent file systems
1788.RE
1789
1790.sp
1791.ne 2
1792.mk
1793.na
1794\fB\fB-V\fR \fIversion\fR\fR
1795.ad
1796.sp .6
1797.RS 4n
1798Upgrade to the specified \fIversion\fR. If the \fB-V\fR flag is not specified, this command upgrades to the most recent version. This option can only be used to increase the version number, and only up to the most recent version supported by this software.
1799.RE
1800
1801.RE
1802
1803.sp
1804.ne 2
1805.mk
1806.na
1807\fB\fBzfs userspace\fR [\fB-niHp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-sS\fR \fIfield\fR]... [\fB-t\fR \fItype\fR [,...]] \fIfilesystem\fR | \fIsnapshot\fR\fR
1808.ad
1809.sp .6
1810.RS 4n
1811Displays space consumed by, and quotas on, each user in the specified filesystem or snapshot. This corresponds to the \fBuserused@\fR\fIuser\fR and \fBuserquota@\fR\fIuser\fR properties.
1812.sp
1813.ne 2
1814.mk
1815.na
1816\fB\fB-n\fR\fR
1817.ad
1818.sp .6
1819.RS 4n
1820Print numeric ID instead of user/group name.
1821.RE
1822
1823.sp
1824.ne 2
1825.mk
1826.na
1827\fB\fB-H\fR\fR
1828.ad
1829.sp .6
1830.RS 4n
1831Do not print headers, use tab-delimited output.
1832.RE
1833
1834.sp
1835.ne 2
1836.mk
1837.na
1838\fB\fB-p\fR\fR
1839.ad
1840.sp .6
1841.RS 4n
1842Use exact (parseable) numeric output.
1843.RE
1844
1845.sp
1846.ne 2
1847.mk
1848.na
1849\fB\fB-o\fR \fIfield\fR[,...]\fR
1850.ad
1851.sp .6
1852.RS 4n
1853Display only the specified fields from the following set, \fBtype,name,used,quota\fR.The default is to display all fields.
1854.RE
1855
1856.sp
1857.ne 2
1858.mk
1859.na
1860\fB\fB-s\fR \fIfield\fR\fR
1861.ad
1862.sp .6
1863.RS 4n
1864Sort output by this field. The \fIs\fR and \fIS\fR flags may be specified multiple times to sort first by one field, then by another. The default is \fB-s type\fR \fB-s name\fR.
1865.RE
1866
1867.sp
1868.ne 2
1869.mk
1870.na
1871\fB\fB-S\fR \fIfield\fR\fR
1872.ad
1873.sp .6
1874.RS 4n
1875Sort by this field in reverse order. See \fB-s\fR.
1876.RE
1877
1878.sp
1879.ne 2
1880.mk
1881.na
1882\fB\fB-t\fR \fItype\fR[,...]\fR
1883.ad
1884.sp .6
1885.RS 4n
1886Print only the specified types from the following set, \fBall,posixuser,smbuser,posixgroup,smbgroup\fR.
1887.sp
1888The default is \fB-t posixuser,smbuser\fR
1889.sp
1890The default can be changed to include group types.
1891.RE
1892
1893.sp
1894.ne 2
1895.mk
1896.na
1897\fB\fB-i\fR\fR
1898.ad
1899.sp .6
1900.RS 4n
1901Translate SID to POSIX ID. The POSIX ID may be ephemeral if no mapping exists. Normal POSIX interfaces (for example, \fBstat\fR(2), \fBls\fR \fB-l\fR) perform this translation, so the \fB-i\fR option allows the output from \fBzfs userspace\fR to be compared directly with those utilities. However, \fB-i\fR may lead to confusion if some files were created by an SMB user before a SMB-to-POSIX name mapping was established. In such a case, some files are owned by the SMB entity and some by the POSIX entity. However, the \fB-i\fR option will report that the POSIX entity has the total usage and quota for both.
1902.RE
1903
1904.RE
1905
1906.sp
1907.ne 2
1908.mk
1909.na
1910\fB\fBzfs groupspace\fR [\fB-niHp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-sS\fR \fIfield\fR]... [\fB-t\fR \fItype\fR [,...]] \fIfilesystem\fR | \fIsnapshot\fR\fR
1911.ad
1912.sp .6
1913.RS 4n
1914Displays space consumed by, and quotas on, each group in the specified filesystem or snapshot. This subcommand is identical to \fBzfs userspace\fR, except that the default types to display are \fB-t posixgroup,smbgroup\fR.
1915.sp
1916.in +2
1917.nf
1918-
1919.fi
1920.in -2
1921.sp
1922
1923.RE
1924
1925.sp
1926.ne 2
1927.mk
1928.na
1929\fB\fBzfs mount\fR\fR
1930.ad
1931.sp .6
1932.RS 4n
1933Displays all \fBZFS\fR file systems currently mounted.
1934.RE
1935
1936.sp
1937.ne 2
1938.mk
1939.na
1940\fB\fBzfs mount\fR [\fB-vO\fR] [\fB-o\fR \fIoptions\fR] \fB-a\fR | \fIfilesystem\fR\fR
1941.ad
1942.sp .6
1943.RS 4n
1944Mounts \fBZFS\fR file systems. Invoked automatically as part of the boot process.
1945.sp
1946.ne 2
1947.mk
1948.na
1949\fB\fB-o\fR \fIoptions\fR\fR
1950.ad
1951.sp .6
1952.RS 4n
1953An optional, comma-separated list of mount options to use temporarily for the duration of the mount. See the "Temporary Mount Point Properties" section for details.
1954.RE
1955
1956.sp
1957.ne 2
1958.mk
1959.na
1960\fB\fB-O\fR\fR
1961.ad
1962.sp .6
1963.RS 4n
2d1b7b0b 1964Perform an overlay mount. See \fBmount\fR(8) for more information.
058ac9ba
BB
1965.RE
1966
1967.sp
1968.ne 2
1969.mk
1970.na
1971\fB\fB-v\fR\fR
1972.ad
1973.sp .6
1974.RS 4n
1975Report mount progress.
1976.RE
1977
1978.sp
1979.ne 2
1980.mk
1981.na
1982\fB\fB-a\fR\fR
1983.ad
1984.sp .6
1985.RS 4n
1986Mount all available \fBZFS\fR file systems. Invoked automatically as part of the boot process.
1987.RE
1988
1989.sp
1990.ne 2
1991.mk
1992.na
1993\fB\fIfilesystem\fR\fR
1994.ad
1995.sp .6
1996.RS 4n
1997Mount the specified filesystem.
1998.RE
1999
2000.RE
2001
2002.sp
2003.ne 2
2004.mk
2005.na
2006\fB\fBzfs unmount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2007.ad
2008.sp .6
2009.RS 4n
2010Unmounts currently mounted \fBZFS\fR file systems. Invoked automatically as part of the shutdown process.
2011.sp
2012.ne 2
2013.mk
2014.na
2015\fB\fB-f\fR\fR
2016.ad
2017.sp .6
2018.RS 4n
2019Forcefully unmount the file system, even if it is currently in use.
2020.RE
2021
2022.sp
2023.ne 2
2024.mk
2025.na
2026\fB\fB-a\fR\fR
2027.ad
2028.sp .6
2029.RS 4n
2030Unmount all available \fBZFS\fR file systems. Invoked automatically as part of the boot process.
2031.RE
2032
2033.sp
2034.ne 2
2035.mk
2036.na
2037\fB\fIfilesystem\fR|\fImountpoint\fR\fR
2038.ad
2039.sp .6
2040.RS 4n
2041Unmount the specified filesystem. The command can also be given a path to a \fBZFS\fR file system mount point on the system.
2042.RE
2043
2044.RE
2045
2046.sp
2047.ne 2
2048.mk
2049.na
2050\fB\fBzfs share\fR \fB-a\fR | \fIfilesystem\fR\fR
2051.ad
2052.sp .6
2053.RS 4n
2054Shares available \fBZFS\fR file systems.
2055.sp
2056.ne 2
2057.mk
2058.na
2059\fB\fB-a\fR\fR
2060.ad
2061.sp .6
2062.RS 4n
2063Share all available \fBZFS\fR file systems. Invoked automatically as part of the boot process.
2064.RE
2065
2066.sp
2067.ne 2
2068.mk
2069.na
2070\fB\fIfilesystem\fR\fR
2071.ad
2072.sp .6
2073.RS 4n
2074Share the specified filesystem according to the \fBsharenfs\fR and \fBsharesmb\fR properties. File systems are shared when the \fBsharenfs\fR or \fBsharesmb\fR property is set.
2075.RE
2076
2077.RE
2078
2079.sp
2080.ne 2
2081.mk
2082.na
2083\fB\fBzfs unshare\fR \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2084.ad
2085.sp .6
2086.RS 4n
2087Unshares currently shared \fBZFS\fR file systems. This is invoked automatically as part of the shutdown process.
2088.sp
2089.ne 2
2090.mk
2091.na
2092\fB\fB-a\fR\fR
2093.ad
2094.sp .6
2095.RS 4n
2096Unshare all available \fBZFS\fR file systems. Invoked automatically as part of the boot process.
2097.RE
2098
2099.sp
2100.ne 2
2101.mk
2102.na
2103\fB\fIfilesystem\fR|\fImountpoint\fR\fR
2104.ad
2105.sp .6
2106.RS 4n
2107Unshare the specified filesystem. The command can also be given a path to a \fBZFS\fR file system shared on the system.
2108.RE
2109
2110.RE
2111
2112.sp
2113.ne 2
2114.mk
2115.na
e0f86c98 2116\fB\fBzfs send\fR [\fB-vRDp\fR] [\fB-\fR[\fBiI\fR] \fIsnapshot\fR] \fIsnapshot\fR\fR
058ac9ba
BB
2117.ad
2118.sp .6
2119.RS 4n
2120Creates a stream representation of the second \fIsnapshot\fR, which is written to standard output. The output can be redirected to a file or to a different system (for example, using \fBssh\fR(1). By default, a full stream is generated.
2121.sp
2122.ne 2
2123.mk
2124.na
2125\fB\fB-i\fR \fIsnapshot\fR\fR
2126.ad
2127.sp .6
2128.RS 4n
2129Generate an incremental stream from the first \fIsnapshot\fR to the second \fIsnapshot\fR. The incremental source (the first \fIsnapshot\fR) can be specified as the last component of the snapshot name (for example, the part after the \fB@\fR), and it is assumed to be from the same file system as the second \fIsnapshot\fR.
2130.sp
2131If the destination is a clone, the source may be the origin snapshot, which must be fully specified (for example, \fBpool/fs@origin\fR, not just \fB@origin\fR).
2132.RE
2133
2134.sp
2135.ne 2
2136.mk
2137.na
2138\fB\fB-I\fR \fIsnapshot\fR\fR
2139.ad
2140.sp .6
2141.RS 4n
2142Generate a stream package that sends all intermediary snapshots from the first snapshot to the second snapshot. For example, \fB-I @a fs@d\fR is similar to \fB-i @a fs@b; -i @b fs@c; -i @c fs@d\fR. The incremental source snapshot may be specified as with the \fB-i\fR option.
2143.RE
2144
e0f86c98
BB
2145.sp
2146.ne 2
2147.mk
2148.na
2149\fB\fB-v\fR\fR
2150.ad
2151.sp .6
2152.RS 4n
2153Print verbose information about the stream package generated.
2154.RE
2155
058ac9ba
BB
2156.sp
2157.ne 2
2158.mk
2159.na
2160\fB\fB-R\fR\fR
2161.ad
2162.sp .6
2163.RS 4n
2164Generate a replication stream package, which will replicate the specified filesystem, and all descendent file systems, up to the named snapshot. When received, all properties, snapshots, descendent file systems, and clones are preserved.
2165.sp
2166If the \fB-i\fR or \fB-I\fR flags are used in conjunction with the \fB-R\fR flag, an incremental replication stream is generated. The current values of properties, and current snapshot and file system names are set when the stream is received. If the \fB-F\fR flag is specified when this stream is received, snapshots and file systems that do not exist on the sending side are destroyed.
2167.RE
2168
2169.sp
2170.ne 2
2171.mk
2172.na
e0f86c98 2173\fB\fB-D\fR\fR
058ac9ba
BB
2174.ad
2175.sp .6
2176.RS 4n
e0f86c98
BB
2177This option will cause dedup processing to be performed on the data being written to a send stream. Dedup processing is optional because it isn't always appropriate (some kinds of data have very little duplication) and it has significant costs: the checksumming required to detect duplicate blocks is CPU-intensive and the data that must be maintained while the stream is being processed can occupy a very large amount of memory.
2178.sp
2179Duplicate blocks are detected by calculating a cryptographically strong checksum on each data block. Blocks that have the same checksum are presumed to be identical. The checksum type used at this time is SHA256. However, the stream format contains a field which identifies the checksum type, permitting other checksums to be used in the future.
2180.RE
2181
2182.sp
2183.ne 2
2184.mk
2185.na
2186\fB\fB-p\fR\fR
2187.ad
2188.sp .6
2189.RS 4n
2190Include properties in the send stream without the -R option.
058ac9ba
BB
2191.RE
2192
2193The format of the stream is committed. You will be able to receive your streams on future versions of \fBZFS\fR.
2194.RE
2195
2196.sp
2197.ne 2
2198.mk
2199.na
2200\fB\fBzfs receive\fR [\fB-vnFu\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2201.ad
2202.br
2203.na
2204\fB\fBzfs receive\fR [\fB-vnFu\fR] \fB-d\fR \fIfilesystem\fR\fR
2205.ad
2206.sp .6
2207.RS 4n
2208Creates a snapshot whose contents are as specified in the stream provided on standard input. If a full stream is received, then a new file system is created as well. Streams are created using the \fBzfs send\fR subcommand, which by default creates a full stream. \fBzfs recv\fR can be used as an alias for \fBzfs receive\fR.
2209.sp
2210If an incremental stream is received, then the destination file system must already exist, and its most recent snapshot must match the incremental stream's source. For \fBzvols\fR, the destination device link is destroyed and recreated, which means the \fBzvol\fR cannot be accessed during the \fBreceive\fR operation.
2211.sp
2212When a snapshot replication package stream that is generated by using the \fBzfs send\fR \fB-R\fR command is received, any snapshots that do not exist on the sending location are destroyed by using the \fBzfs destroy\fR \fB-d\fR command.
2213.sp
2214The name of the snapshot (and file system, if a full stream is received) that this subcommand creates depends on the argument type and the \fB-d\fR option.
2215.sp
2216If the argument is a snapshot name, the specified \fIsnapshot\fR is created. If the argument is a file system or volume name, a snapshot with the same name as the sent snapshot is created within the specified \fIfilesystem\fR or \fIvolume\fR. If the \fB-d\fR option is specified, the snapshot name is determined by appending the sent snapshot's name to the specified \fIfilesystem\fR. If the \fB-d\fR option is specified, any required file systems within the specified one are created.
2217.sp
2218.ne 2
2219.mk
2220.na
2221\fB\fB-d\fR\fR
2222.ad
2223.sp .6
2224.RS 4n
2225Use the name of the sent snapshot to determine the name of the new snapshot as described in the paragraph above.
2226.RE
2227
2228.sp
2229.ne 2
2230.mk
2231.na
2232\fB\fB-u\fR\fR
2233.ad
2234.sp .6
2235.RS 4n
2236File system that is associated with the received stream is not mounted.
2237.RE
2238
2239.sp
2240.ne 2
2241.mk
2242.na
2243\fB\fB-v\fR\fR
2244.ad
2245.sp .6
2246.RS 4n
2247Print verbose information about the stream and the time required to perform the receive operation.
2248.RE
2249
2250.sp
2251.ne 2
2252.mk
2253.na
2254\fB\fB-n\fR\fR
2255.ad
2256.sp .6
2257.RS 4n
2258Do not actually receive the stream. This can be useful in conjunction with the \fB-v\fR option to verify the name the receive operation would use.
2259.RE
2260
2261.sp
2262.ne 2
2263.mk
2264.na
2265\fB\fB-F\fR\fR
2266.ad
2267.sp .6
2268.RS 4n
2269Force a rollback of the file system to the most recent snapshot before performing the receive operation. If receiving an incremental replication stream (for example, one generated by \fBzfs send -R -[iI]\fR), destroy snapshots and file systems that do not exist on the sending side.
2270.RE
2271
2272.RE
2273
2274.sp
2275.ne 2
2276.mk
2277.na
2278\fB\fBzfs allow\fR \fIfilesystem\fR | \fIvolume\fR\fR
2279.ad
2280.sp .6
2281.RS 4n
2282Displays permissions that have been delegated on the specified filesystem or volume. See the other forms of \fBzfs allow\fR for more information.
2283.RE
2284
2285.sp
2286.ne 2
2287.mk
2288.na
2289\fB\fBzfs allow\fR [\fB-ldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR| \fIvolume\fR\fR
2290.ad
2291.br
2292.na
2293\fB\fBzfs allow\fR [\fB-ld\fR] \fB-e\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR | \fIvolume\fR\fR
2294.ad
2295.sp .6
2296.RS 4n
2297Delegates \fBZFS\fR administration permission for the file systems to non-privileged users.
2298.sp
2299.ne 2
2300.mk
2301.na
2302\fB[\fB-ug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...]\fR
2303.ad
2304.sp .6
2305.RS 4n
2306Specifies to whom the permissions are delegated. Multiple entities can be specified as a comma-separated list. If neither of the \fB-ug\fR options are specified, then the argument is interpreted preferentially as the keyword "everyone", then as a user name, and lastly as a group name. To specify a user or group named "everyone", use the \fB-u\fR or \fB-g\fR options. To specify a group with the same name as a user, use the \fB-g\fR options.
2307.RE
2308
2309.sp
2310.ne 2
2311.mk
2312.na
2313\fB[\fB-e\fR] \fIperm\fR|@\fIsetname\fR[,...]\fR
2314.ad
2315.sp .6
2316.RS 4n
2317Specifies that the permissions be delegated to "everyone." Multiple permissions may be specified as a comma-separated list. Permission names are the same as \fBZFS\fR subcommand and property names. See the property list below. Property set names, which begin with an at sign (\fB@\fR) , may be specified. See the \fB-s\fR form below for details.
2318.RE
2319
2320.sp
2321.ne 2
2322.mk
2323.na
2324\fB[\fB-ld\fR] \fIfilesystem\fR|\fIvolume\fR\fR
2325.ad
2326.sp .6
2327.RS 4n
2328Specifies where the permissions are delegated. If neither of the \fB-ld\fR options are specified, or both are, then the permissions are allowed for the file system or volume, and all of its descendents. If only the \fB-l\fR option is used, then is allowed "locally" only for the specified file system. If only the \fB-d\fR option is used, then is allowed only for the descendent file systems.
2329.RE
2330
2331.RE
2332
2333.sp
2334.LP
2335Permissions are generally the ability to use a \fBZFS\fR subcommand or change a \fBZFS\fR property. The following permissions are available:
2336.sp
2337.in +2
2338.nf
2339NAME TYPE NOTES
2340allow subcommand Must also have the permission that is being
2341 allowed
2342clone subcommand Must also have the 'create' ability and 'mount'
2343 ability in the origin file system
2344create subcommand Must also have the 'mount' ability
2345destroy subcommand Must also have the 'mount' ability
2346mount subcommand Allows mount/umount of ZFS datasets
2347promote subcommand Must also have the 'mount'
2348 and 'promote' ability in the origin file system
2349receive subcommand Must also have the 'mount' and 'create' ability
2350rename subcommand Must also have the 'mount' and 'create'
2351 ability in the new parent
2352rollback subcommand Must also have the 'mount' ability
2353send subcommand
2354share subcommand Allows sharing file systems over NFS or SMB
2355 protocols
2356snapshot subcommand Must also have the 'mount' ability
2357groupquota other Allows accessing any groupquota@... property
2358groupused other Allows reading any groupused@... property
2359userprop other Allows changing any user property
2360userquota other Allows accessing any userquota@... property
2361userused other Allows reading any userused@... property
2362
2363aclinherit property
2364aclmode property
2365atime property
2366canmount property
2367casesensitivity property
2368checksum property
2369compression property
2370copies property
2371devices property
2372exec property
2373mountpoint property
2374nbmand property
2375normalization property
2376primarycache property
2377quota property
2378readonly property
2379recordsize property
2380refquota property
2381refreservation property
2382reservation property
2383secondarycache property
2384setuid property
2385shareiscsi property
2386sharenfs property
2387sharesmb property
2388snapdir property
2389utf8only property
2390version property
2391volblocksize property
2392volsize property
2393vscan property
2394xattr property
2395zoned property
2396.fi
2397.in -2
2398.sp
2399
2400.sp
2401.ne 2
2402.mk
2403.na
2404\fB\fBzfs allow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR\fR
2405.ad
2406.sp .6
2407.RS 4n
2408Sets "create time" permissions. These permissions are granted (locally) to the creator of any newly-created descendent file system.
2409.RE
2410
2411.sp
2412.ne 2
2413.mk
2414.na
2415\fB\fBzfs allow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR\fR
2416.ad
2417.sp .6
2418.RS 4n
2419Defines or adds permissions to a permission set. The set can be used by other \fBzfs allow\fR commands for the specified file system and its descendents. Sets are evaluated dynamically, so changes to a set are immediately reflected. Permission sets follow the same naming restrictions as ZFS file systems, but the name must begin with an "at sign" (\fB@\fR), and can be no more than 64 characters long.
2420.RE
2421
2422.sp
2423.ne 2
2424.mk
2425.na
2426\fB\fBzfs unallow\fR [\fB-rldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] [\fIperm\fR|@\fIsetname\fR[, ...]] \fIfilesystem\fR|\fIvolume\fR\fR
2427.ad
2428.br
2429.na
2430\fB\fBzfs unallow\fR [\fB-rld\fR] \fB-e\fR [\fIperm\fR|@\fIsetname\fR [,...]] \fIfilesystem\fR|\fIvolume\fR\fR
2431.ad
2432.br
2433.na
2434\fB\fBzfs unallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[,...]]\fR
2435.ad
2436.br
2437.na
2438\fB\fIfilesystem\fR|\fIvolume\fR\fR
2439.ad
2440.sp .6
2441.RS 4n
2442Removes permissions that were granted with the \fBzfs allow\fR command. No permissions are explicitly denied, so other permissions granted are still in effect. For example, if the permission is granted by an ancestor. If no permissions are specified, then all permissions for the specified \fIuser\fR, \fIgroup\fR, or \fIeveryone\fR are removed. Specifying "everyone" (or using the \fB-e\fR option) only removes the permissions that were granted to "everyone", not all permissions for every user and group. See the \fBzfs allow\fR command for a description of the \fB-ldugec\fR options.
2443.sp
2444.ne 2
2445.mk
2446.na
2447\fB\fB-r\fR\fR
2448.ad
2449.sp .6
2450.RS 4n
2451Recursively remove the permissions from this file system and all descendents.
2452.RE
2453
2454.RE
2455
2456.sp
2457.ne 2
2458.mk
2459.na
2460\fB\fBzfs unallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR [\fIperm\fR|@\fIsetname\fR[,...]]\fR
2461.ad
2462.br
2463.na
2464\fB\fIfilesystem\fR|\fIvolume\fR\fR
2465.ad
2466.sp .6
2467.RS 4n
2468Removes permissions from a permission set. If no permissions are specified, then all permissions are removed, thus removing the set entirely.
2469.RE
2470
2471.sp
2472.ne 2
2473.mk
2474.na
2475\fB\fBzfs hold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
2476.ad
2477.sp .6
2478.RS 4n
2479Adds a single reference, named with the \fItag\fR argument, to the specified snapshot or snapshots. Each snapshot has its own tag namespace, and tags must be unique within that space.
2480.sp
2481If a hold exists on a snapshot, attempts to destroy that snapshot by using the \fBzfs destroy\fR command return \fBEBUSY\fR.
2482.sp
2483.ne 2
2484.mk
2485.na
2486\fB\fB-r\fR\fR
2487.ad
2488.sp .6
2489.RS 4n
2490Specifies that a hold with the given tag is applied recursively to the snapshots of all descendent file systems.
2491.RE
2492
2493.RE
2494
2495.sp
2496.ne 2
2497.mk
2498.na
2499\fB\fBzfs holds\fR [\fB-r\fR] \fIsnapshot\fR...\fR
2500.ad
2501.sp .6
2502.RS 4n
2503Lists all existing user references for the given snapshot or snapshots.
2504.sp
2505.ne 2
2506.mk
2507.na
2508\fB\fB-r\fR\fR
2509.ad
2510.sp .6
2511.RS 4n
2512Lists the holds that are set on the named descendent snapshots, in addition to listing the holds on the named snapshot.
2513.RE
2514
2515.RE
2516
2517.sp
2518.ne 2
2519.mk
2520.na
2521\fB\fBzfs release\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
2522.ad
2523.sp .6
2524.RS 4n
2525Removes a single reference, named with the \fItag\fR argument, from the specified snapshot or snapshots. The tag must already exist for each snapshot.
2526.sp
2527If a hold exists on a snapshot, attempts to destroy that snapshot by using the \fBzfs destroy\fR command return \fBEBUSY\fR.
2528.sp
2529.ne 2
2530.mk
2531.na
2532\fB\fB-r\fR\fR
2533.ad
2534.sp .6
2535.RS 4n
2536Recursively releases a hold with the given tag on the snapshots of all descendent file systems.
2537.RE
2538
2539.RE
2540
2541.SH EXAMPLES
2542.LP
2543\fBExample 1 \fRCreating a ZFS File System Hierarchy
2544.sp
2545.LP
2546The following commands create a file system named \fBpool/home\fR and a file system named \fBpool/home/bob\fR. The mount point \fB/export/home\fR is set for the parent file system, and is automatically inherited by the child file system.
2547
2548.sp
2549.in +2
2550.nf
2551# \fBzfs create pool/home\fR
2552# \fBzfs set mountpoint=/export/home pool/home\fR
2553# \fBzfs create pool/home/bob\fR
2554.fi
2555.in -2
2556.sp
2557
2558.LP
2559\fBExample 2 \fRCreating a ZFS Snapshot
2560.sp
2561.LP
2562The following command creates a snapshot named \fByesterday\fR. This snapshot is mounted on demand in the \fB\&.zfs/snapshot\fR directory at the root of the \fBpool/home/bob\fR file system.
2563
2564.sp
2565.in +2
2566.nf
2567# \fBzfs snapshot pool/home/bob@yesterday\fR
2568.fi
2569.in -2
2570.sp
2571
2572.LP
2573\fBExample 3 \fRCreating and Destroying Multiple Snapshots
2574.sp
2575.LP
2576The following command creates snapshots named \fByesterday\fR of \fBpool/home\fR and all of its descendent file systems. Each snapshot is mounted on demand in the \fB\&.zfs/snapshot\fR directory at the root of its file system. The second command destroys the newly created snapshots.
2577
2578.sp
2579.in +2
2580.nf
2581# \fBzfs snapshot -r pool/home@yesterday\fR
2582# \fBzfs destroy -r pool/home@yesterday\fR
2583.fi
2584.in -2
2585.sp
2586
2587.LP
2588\fBExample 4 \fRDisabling and Enabling File System Compression
2589.sp
2590.LP
2591The following command disables the \fBcompression\fR property for all file systems under \fBpool/home\fR. The next command explicitly enables \fBcompression\fR for \fBpool/home/anne\fR.
2592
2593.sp
2594.in +2
2595.nf
2596# \fBzfs set compression=off pool/home\fR
2597# \fBzfs set compression=on pool/home/anne\fR
2598.fi
2599.in -2
2600.sp
2601
2602.LP
2603\fBExample 5 \fRListing ZFS Datasets
2604.sp
2605.LP
2d1b7b0b 2606The following command lists all active file systems and volumes in the system. Snapshots are displayed if the \fBlistsnaps\fR property is \fBon\fR. The default is \fBoff\fR. See \fBzpool\fR(8) for more information on pool properties.
058ac9ba
BB
2607
2608.sp
2609.in +2
2610.nf
2611# \fBzfs list\fR
2612 NAME USED AVAIL REFER MOUNTPOINT
2613 pool 450K 457G 18K /pool
2614 pool/home 315K 457G 21K /export/home
2615 pool/home/anne 18K 457G 18K /export/home/anne
2616 pool/home/bob 276K 457G 276K /export/home/bob
2617.fi
2618.in -2
2619.sp
2620
2621.LP
2622\fBExample 6 \fRSetting a Quota on a ZFS File System
2623.sp
2624.LP
2625The following command sets a quota of 50 Gbytes for \fBpool/home/bob\fR.
2626
2627.sp
2628.in +2
2629.nf
2630# \fBzfs set quota=50G pool/home/bob\fR
2631.fi
2632.in -2
2633.sp
2634
2635.LP
2636\fBExample 7 \fRListing ZFS Properties
2637.sp
2638.LP
2639The following command lists all properties for \fBpool/home/bob\fR.
2640
2641.sp
2642.in +2
2643.nf
2644# \fBzfs get all pool/home/bob\fR
2645NAME PROPERTY VALUE SOURCE
2646pool/home/bob type filesystem -
2647pool/home/bob creation Tue Jul 21 15:53 2009 -
2648pool/home/bob used 21K -
2649pool/home/bob available 20.0G -
2650pool/home/bob referenced 21K -
2651pool/home/bob compressratio 1.00x -
2652pool/home/bob mounted yes -
2653pool/home/bob quota 20G local
2654pool/home/bob reservation none default
2655pool/home/bob recordsize 128K default
2656pool/home/bob mountpoint /pool/home/bob default
2657pool/home/bob sharenfs off default
2658pool/home/bob checksum on default
2659pool/home/bob compression on local
2660pool/home/bob atime on default
2661pool/home/bob devices on default
2662pool/home/bob exec on default
2663pool/home/bob setuid on default
2664pool/home/bob readonly off default
2665pool/home/bob zoned off default
2666pool/home/bob snapdir hidden default
2667pool/home/bob aclmode groupmask default
2668pool/home/bob aclinherit restricted default
2669pool/home/bob canmount on default
2670pool/home/bob shareiscsi off default
2671pool/home/bob xattr on default
2672pool/home/bob copies 1 default
2673pool/home/bob version 4 -
2674pool/home/bob utf8only off -
2675pool/home/bob normalization none -
2676pool/home/bob casesensitivity sensitive -
2677pool/home/bob vscan off default
2678pool/home/bob nbmand off default
2679pool/home/bob sharesmb off default
2680pool/home/bob refquota none default
2681pool/home/bob refreservation none default
2682pool/home/bob primarycache all default
2683pool/home/bob secondarycache all default
2684pool/home/bob usedbysnapshots 0 -
2685pool/home/bob usedbydataset 21K -
2686pool/home/bob usedbychildren 0 -
2687pool/home/bob usedbyrefreservation 0 -
2688.fi
2689.in -2
2690.sp
2691
2692.sp
2693.LP
2694The following command gets a single property value.
2695
2696.sp
2697.in +2
2698.nf
2699# \fBzfs get -H -o value compression pool/home/bob\fR
2700on
2701.fi
2702.in -2
2703.sp
2704
2705.sp
2706.LP
2707The following command lists all properties with local settings for \fBpool/home/bob\fR.
2708
2709.sp
2710.in +2
2711.nf
2712# \fBzfs get -r -s local -o name,property,value all pool/home/bob\fR
2713NAME PROPERTY VALUE
2714pool/home/bob quota 20G
2715pool/home/bob compression on
2716.fi
2717.in -2
2718.sp
2719
2720.LP
2721\fBExample 8 \fRRolling Back a ZFS File System
2722.sp
2723.LP
2724The following command reverts the contents of \fBpool/home/anne\fR to the snapshot named \fByesterday\fR, deleting all intermediate snapshots.
2725
2726.sp
2727.in +2
2728.nf
2729# \fBzfs rollback -r pool/home/anne@yesterday\fR
2730.fi
2731.in -2
2732.sp
2733
2734.LP
2735\fBExample 9 \fRCreating a ZFS Clone
2736.sp
2737.LP
2738The following command creates a writable file system whose initial contents are the same as \fBpool/home/bob@yesterday\fR.
2739
2740.sp
2741.in +2
2742.nf
2743# \fBzfs clone pool/home/bob@yesterday pool/clone\fR
2744.fi
2745.in -2
2746.sp
2747
2748.LP
2749\fBExample 10 \fRPromoting a ZFS Clone
2750.sp
2751.LP
2752The following commands illustrate how to test out changes to a file system, and then replace the original file system with the changed one, using clones, clone promotion, and renaming:
2753
2754.sp
2755.in +2
2756.nf
2757# \fBzfs create pool/project/production\fR
2758 populate /pool/project/production with data
2759# \fBzfs snapshot pool/project/production@today\fR
2760# \fBzfs clone pool/project/production@today pool/project/beta\fR
2761make changes to /pool/project/beta and test them
2762# \fBzfs promote pool/project/beta\fR
2763# \fBzfs rename pool/project/production pool/project/legacy\fR
2764# \fBzfs rename pool/project/beta pool/project/production\fR
2765once the legacy version is no longer needed, it can be destroyed
2766# \fBzfs destroy pool/project/legacy\fR
2767.fi
2768.in -2
2769.sp
2770
2771.LP
2772\fBExample 11 \fRInheriting ZFS Properties
2773.sp
2774.LP
2775The following command causes \fBpool/home/bob\fR and \fBpool/home/anne\fR to inherit the \fBchecksum\fR property from their parent.
2776
2777.sp
2778.in +2
2779.nf
2780# \fBzfs inherit checksum pool/home/bob pool/home/anne\fR
2781.fi
2782.in -2
2783.sp
2784
2785.LP
2786\fBExample 12 \fRRemotely Replicating ZFS Data
2787.sp
2788.LP
2789The following commands send a full stream and then an incremental stream to a remote machine, restoring them into \fBpoolB/received/fs@a\fRand \fBpoolB/received/fs@b\fR, respectively. \fBpoolB\fR must contain the file system \fBpoolB/received\fR, and must not initially contain \fBpoolB/received/fs\fR.
2790
2791.sp
2792.in +2
2793.nf
2794# \fBzfs send pool/fs@a | \e\fR
2795 \fBssh host zfs receive poolB/received/fs@a\fR
2796# \fBzfs send -i a pool/fs@b | ssh host \e\fR
2797 \fBzfs receive poolB/received/fs\fR
2798.fi
2799.in -2
2800.sp
2801
2802.LP
2803\fBExample 13 \fRUsing the \fBzfs receive\fR \fB-d\fR Option
2804.sp
2805.LP
2806The following command sends a full stream of \fBpoolA/fsA/fsB@snap\fR to a remote machine, receiving it into \fBpoolB/received/fsA/fsB@snap\fR. The \fBfsA/fsB@snap\fR portion of the received snapshot's name is determined from the name of the sent snapshot. \fBpoolB\fR must contain the file system \fBpoolB/received\fR. If \fBpoolB/received/fsA\fR does not exist, it is created as an empty file system.
2807
2808.sp
2809.in +2
2810.nf
2811# \fBzfs send poolA/fsA/fsB@snap | \e
2812 ssh host zfs receive -d poolB/received\fR
2813.fi
2814.in -2
2815.sp
2816
2817.LP
2818\fBExample 14 \fRSetting User Properties
2819.sp
2820.LP
2821The following example sets the user-defined \fBcom.example:department\fR property for a dataset.
2822
2823.sp
2824.in +2
2825.nf
2826# \fBzfs set com.example:department=12345 tank/accounting\fR
2827.fi
2828.in -2
2829.sp
2830
2831.LP
2832\fBExample 15 \fRCreating a ZFS Volume as an iSCSI Target Device
2833.sp
2834.LP
2835The following example shows how to create a \fBZFS\fR volume as an \fBiSCSI\fR target.
2836
2837.sp
2838.in +2
2839.nf
2840# \fBzfs create -V 2g pool/volumes/vol1\fR
2841# \fBzfs set shareiscsi=on pool/volumes/vol1\fR
2842# \fBiscsitadm list target\fR
2843Target: pool/volumes/vol1
2844 iSCSI Name:
2845 iqn.1986-03.com.sun:02:7b4b02a6-3277-eb1b-e686-a24762c52a8c
2846 Connections: 0
2847.fi
2848.in -2
2849.sp
2850
2851.sp
2852.LP
2853After the \fBiSCSI\fR target is created, set up the \fBiSCSI\fR initiator. For more information about the Solaris \fBiSCSI\fR initiator, see \fBiscsitadm\fR(1M).
2854.LP
2855\fBExample 16 \fRPerforming a Rolling Snapshot
2856.sp
2857.LP
2858The following example shows how to maintain a history of snapshots with a consistent naming scheme. To keep a week's worth of snapshots, the user destroys the oldest snapshot, renames the remaining snapshots, and then creates a new snapshot, as follows:
2859
2860.sp
2861.in +2
2862.nf
2863# \fBzfs destroy -r pool/users@7daysago\fR
2864# \fBzfs rename -r pool/users@6daysago @7daysago\fR
2865# \fBzfs rename -r pool/users@5daysago @6daysago\fR
2866# \fBzfs rename -r pool/users@yesterday @5daysago\fR
2867# \fBzfs rename -r pool/users@yesterday @4daysago\fR
2868# \fBzfs rename -r pool/users@yesterday @3daysago\fR
2869# \fBzfs rename -r pool/users@yesterday @2daysago\fR
2870# \fBzfs rename -r pool/users@today @yesterday\fR
2871# \fBzfs snapshot -r pool/users@today\fR
2872.fi
2873.in -2
2874.sp
2875
2876.LP
2877\fBExample 17 \fRSetting \fBsharenfs\fR Property Options on a ZFS File System
2878.sp
2879.LP
2880The following commands show how to set \fBsharenfs\fR property options to enable \fBrw\fR access for a set of \fBIP\fR addresses and to enable root access for system \fBneo\fR on the \fBtank/home\fR file system.
2881
2882.sp
2883.in +2
2884.nf
2885# \fB# zfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home\fR
2886.fi
2887.in -2
2888.sp
2889
2890.sp
2891.LP
2892If you are using \fBDNS\fR for host name resolution, specify the fully qualified hostname.
2893
2894.LP
2895\fBExample 18 \fRDelegating ZFS Administration Permissions on a ZFS Dataset
2896.sp
2897.LP
2898The following example shows how to set permissions so that user \fBcindys\fR can create, destroy, mount, and take snapshots on \fBtank/cindys\fR. The permissions on \fBtank/cindys\fR are also displayed.
2899
2900.sp
2901.in +2
2902.nf
2903# \fBzfs allow cindys create,destroy,mount,snapshot tank/cindys\fR
2904# \fBzfs allow tank/cindys\fR
2905-------------------------------------------------------------
2906Local+Descendent permissions on (tank/cindys)
2907 user cindys create,destroy,mount,snapshot
2908-------------------------------------------------------------
2909.fi
2910.in -2
2911.sp
2912
2913.sp
2914.LP
2915Because the \fBtank/cindys\fR mount point permission is set to 755 by default, user \fBcindys\fR will be unable to mount file systems under \fBtank/cindys\fR. Set an \fBACL\fR similar to the following syntax to provide mount point access:
2916.sp
2917.in +2
2918.nf
2919# \fBchmod A+user:cindys:add_subdirectory:allow /tank/cindys\fR
2920.fi
2921.in -2
2922.sp
2923
2924.LP
2925\fBExample 19 \fRDelegating Create Time Permissions on a ZFS Dataset
2926.sp
2927.LP
2928The following example shows how to grant anyone in the group \fBstaff\fR to create file systems in \fBtank/users\fR. This syntax also allows staff members to destroy their own file systems, but not destroy anyone else's file system. The permissions on \fBtank/users\fR are also displayed.
2929
2930.sp
2931.in +2
2932.nf
2933# \fB# zfs allow staff create,mount tank/users\fR
2934# \fBzfs allow -c destroy tank/users\fR
2935# \fBzfs allow tank/users\fR
2936-------------------------------------------------------------
2937Create time permissions on (tank/users)
2938 create,destroy
2939Local+Descendent permissions on (tank/users)
2940 group staff create,mount
2941-------------------------------------------------------------
2942.fi
2943.in -2
2944.sp
2945
2946.LP
2947\fBExample 20 \fRDefining and Granting a Permission Set on a ZFS Dataset
2948.sp
2949.LP
2950The following example shows how to define and grant a permission set on the \fBtank/users\fR file system. The permissions on \fBtank/users\fR are also displayed.
2951
2952.sp
2953.in +2
2954.nf
2955# \fBzfs allow -s @pset create,destroy,snapshot,mount tank/users\fR
2956# \fBzfs allow staff @pset tank/users\fR
2957# \fBzfs allow tank/users\fR
2958-------------------------------------------------------------
2959Permission sets on (tank/users)
2960 @pset create,destroy,mount,snapshot
2961Create time permissions on (tank/users)
2962 create,destroy
2963Local+Descendent permissions on (tank/users)
2964 group staff @pset,create,mount
2965-------------------------------------------------------------
2966.fi
2967.in -2
2968.sp
2969
2970.LP
2971\fBExample 21 \fRDelegating Property Permissions on a ZFS Dataset
2972.sp
2973.LP
2974The following example shows to grant the ability to set quotas and reservations on the \fBusers/home\fR file system. The permissions on \fBusers/home\fR are also displayed.
2975
2976.sp
2977.in +2
2978.nf
2979# \fBzfs allow cindys quota,reservation users/home\fR
2980# \fBzfs allow users/home\fR
2981-------------------------------------------------------------
2982Local+Descendent permissions on (users/home)
2983 user cindys quota,reservation
2984-------------------------------------------------------------
2985cindys% \fBzfs set quota=10G users/home/marks\fR
2986cindys% \fBzfs get quota users/home/marks\fR
2987NAME PROPERTY VALUE SOURCE
2988users/home/marks quota 10G local
2989.fi
2990.in -2
2991.sp
2992
2993.LP
2994\fBExample 22 \fRRemoving ZFS Delegated Permissions on a ZFS Dataset
2995.sp
2996.LP
2997The following example shows how to remove the snapshot permission from the \fBstaff\fR group on the \fBtank/users\fR file system. The permissions on \fBtank/users\fR are also displayed.
2998
2999.sp
3000.in +2
3001.nf
3002# \fBzfs unallow staff snapshot tank/users\fR
3003# \fBzfs allow tank/users\fR
3004-------------------------------------------------------------
3005Permission sets on (tank/users)
3006 @pset create,destroy,mount,snapshot
3007Create time permissions on (tank/users)
3008 create,destroy
3009Local+Descendent permissions on (tank/users)
3010 group staff @pset,create,mount
3011-------------------------------------------------------------
3012.fi
3013.in -2
3014.sp
3015
3016.SH EXIT STATUS
3017.sp
3018.LP
3019The following exit values are returned:
3020.sp
3021.ne 2
3022.mk
3023.na
3024\fB\fB0\fR\fR
3025.ad
3026.sp .6
3027.RS 4n
3028Successful completion.
3029.RE
3030
3031.sp
3032.ne 2
3033.mk
3034.na
3035\fB\fB1\fR\fR
3036.ad
3037.sp .6
3038.RS 4n
3039An error occurred.
3040.RE
3041
3042.sp
3043.ne 2
3044.mk
3045.na
3046\fB\fB2\fR\fR
3047.ad
3048.sp .6
3049.RS 4n
3050Invalid command line options were specified.
3051.RE
3052
058ac9ba
BB
3053.SH SEE ALSO
3054.sp
3055.LP
4da4a9e1 3056\fBchmod\fR(2), \fBfsync\fR(2), \fBgzip\fR(1), \fBmount\fR(8), \fBssh\fR(1), \fBstat\fR(2), \fBwrite\fR(2), \fBzpool\fR(8)