]> git.proxmox.com Git - mirror_zfs.git/blob - man/man8/zfs.8
Make createtxg and guid properties public
[mirror_zfs.git] / man / man8 / zfs.8
1 '\" t
2 .\"
3 .\" CDDL HEADER START
4 .\"
5 .\" The contents of this file are subject to the terms of the
6 .\" Common Development and Distribution License (the "License").
7 .\" You may not use this file except in compliance with the License.
8 .\"
9 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 .\" or http://www.opensolaris.org/os/licensing.
11 .\" See the License for the specific language governing permissions
12 .\" and limitations under the License.
13 .\"
14 .\" When distributing Covered Code, include this CDDL HEADER in each
15 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 .\" If applicable, add the following below this CDDL HEADER, with the
17 .\" fields enclosed by brackets "[]" replaced with your own identifying
18 .\" information: Portions Copyright [yyyy] [name of copyright owner]
19 .\"
20 .\" CDDL HEADER END
21 .\"
22 .\"
23 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
24 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
25 .\" Copyright (c) 2011, 2016 by Delphix. All rights reserved.
26 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
27 .\" Copyright 2012 Nexenta Systems, Inc. All Rights Reserved.
28 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
29 .\" Copyright 2016 Richard Laager. All rights reserved.
30 .\"
31 .TH zfs 8 "May 11, 2016" "ZFS pool 28, filesystem 5" "System Administration Commands"
32 .SH NAME
33 zfs \- configures ZFS file systems
34 .SH SYNOPSIS
35 .LP
36 .nf
37 \fBzfs\fR [\fB-?\fR]
38 .fi
39
40 .LP
41 .nf
42 \fBzfs\fR \fBcreate\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem\fR
43 .fi
44
45 .LP
46 .nf
47 \fBzfs\fR \fBcreate\fR [\fB-ps\fR] [\fB-b\fR \fIblocksize\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fB-V\fR \fIsize\fR \fIvolume\fR
48 .fi
49
50 .LP
51 .nf
52 \fBzfs\fR \fBdestroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
53 .fi
54
55 .LP
56 .nf
57 \fBzfs\fR \fBdestroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,...]
58 .fi
59
60 .LP
61 .nf
62 \fBzfs\fR \fBdestroy\fR \fIfilesystem\fR|\fIvolume\fR#\fIbookmark\fR
63 .fi
64
65 .LP
66 .nf
67 \fBzfs\fR \fBsnapshot | snap\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ...
68 \fIfilesystem@snapname\fR|\fIvolume@snapname\fR ...
69 .fi
70
71 .LP
72 .nf
73 \fBzfs\fR \fBrollback\fR [\fB-rRf\fR] \fIsnapshot\fR
74 .fi
75
76 .LP
77 .nf
78 \fBzfs\fR \fBclone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR
79 .fi
80
81 .LP
82 .nf
83 \fBzfs\fR \fBpromote\fR \fIclone-filesystem\fR
84 .fi
85
86 .LP
87 .nf
88 \fBzfs\fR \fBrename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
89 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
90 .fi
91
92 .LP
93 .nf
94 \fBzfs\fR \fBrename\fR [\fB-fp\fR] \fIfilesystem\fR|\fIvolume\fR \fIfilesystem\fR|\fIvolume\fR
95 .fi
96
97 .LP
98 .nf
99 \fBzfs\fR \fBrename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR
100 .fi
101
102 .LP
103 .nf
104 \fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-Hp\fR][\fB-o\fR \fIproperty\fR[,\fIproperty\fR]...] [\fB-t\fR \fItype\fR[,\fItype\fR]..]
105 [\fB-s\fR \fIproperty\fR] ... [\fB-S\fR \fIproperty\fR] ... [\fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR|\fImountpoint\fR] ...
106 .fi
107
108 .LP
109 .nf
110 \fBzfs\fR \fBset\fR \fIproperty\fR=\fIvalue\fR... \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR...
111 .fi
112
113 .LP
114 .nf
115 \fBzfs\fR \fBget\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR][\fB-Hp\fR][\fB-o\fR \fIfield\fR[,...]] [\fB-t\fR \fItype\fR[,...]]
116 [\fB-s\fR \fIsource\fR[,...]] "\fIall\fR" | \fIproperty\fR[,...] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR|\fImountpoint\fR ...
117 .fi
118
119 .LP
120 .nf
121 \fBzfs\fR \fBinherit\fR [\fB-rS\fR] \fIproperty\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...
122 .fi
123
124 .LP
125 .nf
126 \fBzfs\fR \fBupgrade\fR [\fB-v\fR]
127 .fi
128
129 .LP
130 .nf
131 \fBzfs\fR \fBupgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] \fB-a\fR | \fIfilesystem\fR
132 .fi
133
134 .LP
135 .nf
136 \fBzfs\fR \fBuserspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-s\fR \fIfield\fR] ...
137 [\fB-S\fR \fIfield\fR] ... [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
138 .fi
139
140 .LP
141 .nf
142 \fBzfs\fR \fBgroupspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]] [\fB-s\fR \fIfield\fR] ...
143 [\fB-S\fR \fIfield\fR] ... [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
144 .fi
145
146 .LP
147 .nf
148 \fBzfs\fR \fBmount\fR
149 .fi
150
151 .LP
152 .nf
153 \fBzfs\fR \fBmount\fR [\fB-vO\fR] [\fB-o \fIoptions\fR\fR] \fB-a\fR | \fIfilesystem\fR
154 .fi
155
156 .LP
157 .nf
158 \fBzfs\fR \fBunmount | umount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR
159 .fi
160
161 .LP
162 .nf
163 \fBzfs\fR \fBshare\fR [\fBnfs\fR|\fBsmb\fR] \fB-a\fR | \fIfilesystem\fR
164 .fi
165
166 .LP
167 .nf
168 \fBzfs\fR \fBunshare\fR [\fBnfs\fR|\fBsmb\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR
169 .fi
170
171 .LP
172 .nf
173 \fBzfs\fR \fBbookmark\fR \fIsnapshot\fR \fIbookmark\fR
174 .fi
175
176 .LP
177 .nf
178 \fBzfs\fR \fBsend\fR [\fB-DnPpRveLc\fR] [\fB-\fR[\fBi\fR|\fBI\fR] \fIsnapshot\fR] \fIsnapshot\fR
179 .fi
180
181 .LP
182 .nf
183 \fBzfs\fR \fBsend\fR [\fB-Lec\fR] [\fB-i \fIsnapshot\fR|\fIbookmark\fR]\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
184 .fi
185
186 .LP
187 .nf
188 \fBzfs\fR \fBsend\fR [\fB-Penv\fR] \fB-t\fR \fIreceive_resume_token\fR
189 .fi
190
191 .LP
192 .nf
193 \fBzfs\fR \fBreceive\fR [\fB-Fnsuv\fR] [\fB-o origin\fR=\fIsnapshot\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
194 .fi
195
196 .LP
197 .nf
198 \fBzfs\fR \fBreceive\fR [\fB-Fnsuv\fR] [\fB-d\fR|\fB-e\fR] [\fB-o origin\fR=\fIsnapshot\fR] \fIfilesystem\fR
199 .fi
200
201 .LP
202 .nf
203 \fBzfs\fR \fBreceive\fR \fB-A\fR \fIfilesystem\fR|\fIvolume\fR
204 .fi
205
206 .LP
207 .nf
208 \fBzfs\fR \fBallow\fR \fIfilesystem\fR|\fIvolume\fR
209 .fi
210
211 .LP
212 .nf
213 \fBzfs\fR \fBallow\fR [\fB-ldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] \fIperm\fR|\fI@setname\fR[,...]
214 \fIfilesystem\fR|\fIvolume\fR
215 .fi
216
217 .LP
218 .nf
219 \fBzfs\fR \fBallow\fR [\fB-ld\fR] \fB-e\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
220 .fi
221
222 .LP
223 .nf
224 \fBzfs\fR \fBallow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
225 .fi
226
227 .LP
228 .nf
229 \fBzfs\fR \fBallow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR
230 .fi
231
232 .LP
233 .nf
234 \fBzfs\fR \fBunallow\fR [\fB-rldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] [\fIperm\fR|@\fIsetname\fR[,... ]]
235 \fIfilesystem\fR|\fIvolume\fR
236 .fi
237
238 .LP
239 .nf
240 \fBzfs\fR \fBunallow\fR [\fB-rld\fR] \fB-e\fR [\fIperm\fR|@\fIsetname\fR[,... ]] \fIfilesystem\fR|\fIvolume\fR
241 .fi
242
243 .LP
244 .nf
245 \fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[ ... ]] \fIfilesystem\fR|\fIvolume\fR
246 .fi
247
248 .LP
249 .nf
250 \fBzfs\fR \fBunallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR [\fIperm\fR|@\fIsetname\fR[,... ]] \fIfilesystem\fR|\fIvolume\fR
251 .fi
252
253 .LP
254 .nf
255 \fBzfs\fR \fBhold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
256 .fi
257
258 .LP
259 .nf
260 \fBzfs\fR \fBholds\fR [\fB-r\fR] \fIsnapshot\fR...
261 .fi
262
263 .LP
264 .nf
265 \fBzfs\fR \fBrelease\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...
266 .fi
267
268 .LP
269 .nf
270 \fBzfs\fR \fBdiff\fR [\fB-FHt\fR] \fIsnapshot\fR \fIsnapshot\fR|\fIfilesystem\fR
271
272 .SH DESCRIPTION
273 .LP
274 The \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:
275 .sp
276 .in +2
277 .nf
278 pool/{filesystem,volume,snapshot}
279 .fi
280 .in -2
281 .sp
282
283 .sp
284 .LP
285 where the maximum length of a dataset name is \fBMAXNAMELEN\fR (256 bytes).
286 .sp
287 .LP
288 A dataset can be one of the following:
289 .sp
290 .ne 2
291 .na
292 \fB\fIfilesystem\fR\fR
293 .ad
294 .sp .6
295 .RS 4n
296 A \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.
297 .RE
298
299 .sp
300 .ne 2
301 .na
302 \fB\fIvolume\fR\fR
303 .ad
304 .sp .6
305 .RS 4n
306 A 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.
307 .RE
308
309 .sp
310 .ne 2
311 .na
312 \fB\fIsnapshot\fR\fR
313 .ad
314 .sp .6
315 .RS 4n
316 A 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.
317 .RE
318
319 .sp
320 .ne 2
321 .na
322 \fB\fIbookmark\fR\fR
323 .ad
324 .sp .6
325 .RS 4n
326 Much like a \fIsnapshot\fR, but without the hold on on-disk data. It can be used as the source of a send (but not for a receive).
327 It is specified as \fIfilesystem#name\fR or \fIvolume#name\fR.
328 .RE
329
330 .SS "ZFS File System Hierarchy"
331 .LP
332 A \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.
333 .sp
334 .LP
335 The 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.
336 .sp
337 .LP
338 See \fBzpool\fR(8) for more information on creating and administering pools.
339 .SS "Snapshots"
340 .LP
341 A 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.
342 .sp
343 .LP
344 Snapshots can have arbitrary names. Snapshots of volumes can be cloned or rolled back. Visibility is determined by the \fBsnapdev\fR property of the parent volume.
345 .sp
346 .LP
347 File 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.
348 .SS "Bookmarks"
349 .LP
350 A bookmark is like a snapshot, a read-only copy of a file system or volume. Bookmarks can be created extremely quickly, compared to snapshots, and they consume no additional space within the pool. Bookmarks can also have arbitrary names, much like snapshots.
351 .sp
352 .LP
353 Unlike snapshots, bookmarks can not be accessed through the filesystem in any way. From a storage standpoint a bookmark just provides a way to reference when a snapshot was created as a distinct object. Bookmarks are initially tied to a snapshot, not the filesystem/volume, and they will survive if the snapshot itself is destroyed. Since they are very light weight there's little incentive to destroy them.
354 .SS "Clones"
355 .LP
356 A 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.
357 .sp
358 .LP
359 Clones 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.
360 .sp
361 .LP
362 The 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.
363 .SS "Mount Points"
364 .LP
365 Creating 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.
366 .sp
367 .LP
368 By 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.
369 .sp
370 .LP
371 A 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.
372 .sp
373 .LP
374 A file system \fBmountpoint\fR property of \fBnone\fR prevents the file system from being mounted.
375 .sp
376 .LP
377 If 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.
378 .SS "Deduplication"
379 .LP
380 Deduplication is the process for removing redundant data at the block-level, reducing the total amount of data stored. If a file system has the \fBdedup\fR property enabled, duplicate data blocks are removed synchronously. The result is that only unique data is stored and common components are shared among files.
381 .sp
382 \fBWARNING: DO NOT ENABLE DEDUPLICATION UNLESS YOU NEED IT AND KNOW EXACTLY WHAT YOU ARE DOING!\fR
383 .sp
384 Deduplicating data is a very resource-intensive operation. It is generally recommended that you have \fIat least\fR 1.25 GiB of RAM per 1 TiB of storage when you enable deduplication. But calculating the exact requirements is a somewhat complicated affair.
385 .sp
386 Enabling deduplication on an improperly-designed system will result in extreme performance issues (extremely slow filesystem and snapshot deletions etc.) and can potentially lead to data loss (i.e. unimportable pool due to memory exhaustion) if your system is not built for this purpose. Deduplication affects the processing power (CPU), disks (and the controller) as well as primary (real) memory.
387 .sp
388 Before creating a pool with deduplication enabled, ensure that you have planned your hardware requirements appropriately and implemented appropriate recovery practices, such as regular backups.
389 .sp
390 Unless necessary, deduplication should NOT be enabled on a system. Instead, consider using \fIcompression=lz4\fR, as a less resource-intensive alternative.
391 .SS "Properties"
392 .sp
393 .LP
394 Properties are divided into two types: native properties and user-defined (or "user") properties. Native properties either export internal statistics or control \fBZFS\fR behavior. User properties have no effect on \fBZFS\fR behavior, but you can use them to annotate datasets and snapshots in a way that is meaningful in your environment.
395 .sp
396 .LP
397 Properties are generally inherited from the parent unless overridden by the child. See the documentation below for exceptions.
398 .sp
399 .LP
400 .SS "Native Properties"
401 Native properties apply to all dataset types unless otherwise noted. However, native properties cannot be edited on snapshots.
402 .sp
403 .LP
404 The values of numeric native properties can be specified using human-readable abbreviations (\fBK\fR, \fBM\fR, \fBG\fR, \fBT\fR, \fBP\fR, \fBE\fR, and \fBZ\fR). These abbreviations can optionally use the IEC binary prefixes (e.g. GiB) or SI decimal prefixes (e.g. GB), though the SI prefixes are treated as binary prefixes. Abbreviations are case-insensitive. The following are all valid (and equal) specifications:
405 .sp
406 .in +2
407 .nf
408 1536M, 1.5g, 1.50GB, 1.5GiB
409 .fi
410 .in -2
411 .sp
412
413 .sp
414 .LP
415 The values of non-numeric native properties are case-sensitive and must be lowercase, except for \fBmountpoint\fR, \fBsharenfs\fR, and \fBsharesmb\fR.
416 .sp
417 .LP
418 The following native properties consist of read-only statistics about the dataset. These properties can be neither set, nor inherited.
419 .sp
420 .ne 2
421 .na
422 \fB\fBavailable\fR\fR
423 .ad
424 .sp .6
425 .RS 4n
426 The 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.
427 .sp
428 This property can also be referred to by its shortened column name, \fBavail\fR.
429 .RE
430
431 .sp
432 .ne 2
433 .na
434 \fB\fBcompressratio\fR\fR
435 .ad
436 .sp .6
437 .RS 4n
438 For 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. The \fBcompression\fR property controls whether compression is enabled on a dataset.
439 .RE
440
441 .sp
442 .ne 2
443 .na
444 \fB\fBcreatetxg\fR
445 .ad
446 .sp .6
447 .RS 4n
448 The transaction group (TXG) in which the dataset was created. Bookmarks have the same \fBcreatetxg\fR as the snapshot they are initially tied to.
449 .sp
450 \fBcreatetxg\fR is suitable for ordering a list of snapshots, e.g. for incremental \fBsend\fR & \fBrecv\fR.
451 .RE
452
453 .sp
454 .ne 2
455 .na
456 \fB\fBcreation\fR\fR
457 .ad
458 .sp .6
459 .RS 4n
460 The time this dataset was created.
461 .RE
462
463 .sp
464 .ne 2
465 .na
466 \fB\fBclones\fR\fR
467 .ad
468 .sp .6
469 .RS 4n
470 For snapshots, this property is a comma-separated list of filesystems or
471 volumes which are clones of this snapshot. The clones' \fBorigin\fR property
472 is this snapshot. If the \fBclones\fR property is not empty, then this
473 snapshot can not be destroyed (even with the \fB-r\fR or \fB-f\fR options). The
474 roles of origin and clone can be swapped by promoting the clone with the
475 \fBzfs promote\fR command.
476 .RE
477
478 .sp
479 .ne 2
480 .na
481 \fB\fBdefer_destroy\fR\fR
482 .ad
483 .sp .6
484 .RS 4n
485 This 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.
486 .RE
487
488 .sp
489 .ne 2
490 .na
491 \fB\fBfilesystem_count\fR
492 .ad
493 .sp .6
494 .RS 4n
495 The total number of filesystems and volumes that exist under this location in the
496 dataset tree. This value is only available when a \fBfilesystem_limit\fR has
497 been set somewhere in the tree under which the dataset resides.
498 .RE
499
500 .sp
501 .ne 2
502 .na
503 \fB\fBguid\fR
504 .ad
505 .sp .6
506 .RS 4n
507 The 64 bit GUID of this dataset or bookmark, which does not change over its entire lifetime.
508 .sp
509 When a snapshot is sent to another pool, the received snapshot has the same GUID. Thus, \fBguid\fR is suitable to identify a snapshot across pools.
510 .RE
511
512 .sp
513 .ne 2
514 .na
515 \fB\fBlogicalreferenced\fR\fR
516 .ad
517 .sp .6
518 .RS 4n
519 The amount of space that is "logically" accessible by this dataset. See
520 the \fBreferenced\fR property. The logical space ignores the effect of
521 the \fBcompression\fR and \fBcopies\fR properties, giving a quantity
522 closer to the amount of data that applications see. However, it does
523 include space consumed by metadata.
524 .sp
525 This property can also be referred to by its shortened column name,
526 \fBlrefer\fR.
527 .RE
528
529 .sp
530 .ne 2
531 .na
532 \fB\fBlogicalused\fR\fR
533 .ad
534 .sp .6
535 .RS 4n
536 The amount of space that is "logically" consumed by this dataset and all
537 its descendents. See the \fBused\fR property. The logical space
538 ignores the effect of the \fBcompression\fR and \fBcopies\fR properties,
539 giving a quantity closer to the amount of data that applications see.
540 However, it does include space consumed by metadata.
541 .sp
542 This property can also be referred to by its shortened column name,
543 \fBlused\fR.
544 .RE
545
546 .sp
547 .ne 2
548 .na
549 \fB\fBmounted\fR\fR
550 .ad
551 .sp .6
552 .RS 4n
553 For file systems, indicates whether the file system is currently mounted. This property can be either \fByes\fR or \fBno\fR.
554 .RE
555
556 .sp
557 .ne 2
558 .na
559 \fB\fBorigin\fR\fR
560 .ad
561 .sp .6
562 .RS 4n
563 For 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. See also the \fBclones\fR property.
564 .RE
565
566 .sp
567 .ne 2
568 .na
569 \fB\fBreceive_resume_token\fR\fR
570 .ad
571 .sp .6
572 .RS 4n
573 For filesystems or volumes which have saved partially-completed state from \fBzfs receive -s\fR , this opaque token can be provided to \fBzfs send -t\fR to resume and complete the \fBzfs receive\fR.
574 .RE
575
576 .sp
577 .ne 2
578 .mk
579 .na
580 \fB\fBreferenced\fR\fR
581 .ad
582 .sp .6
583 .RS 4n
584 The 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.
585 .sp
586 This property can also be referred to by its shortened column name, \fBrefer\fR.
587 .RE
588
589 .sp
590 .ne 2
591 .na
592 \fB\fBrefcompressratio\fR\fR
593 .ad
594 .sp .6
595 .RS 4n
596 The compression ratio achieved for the \fBreferenced\fR space of this
597 dataset, expressed as a multiplier. See also the \fBcompressratio\fR
598 property.
599 .RE
600
601 .sp
602 .ne 2
603 .na
604 \fB\fBsnapshot_count\fR
605 .ad
606 .sp .6
607 .RS 4n
608 The total number of snapshots that exist under this location in the dataset tree.
609 This value is only available when a \fBsnapshot_limit\fR has been set somewhere
610 in the tree under which the dataset resides.
611 .RE
612
613 .sp
614 .ne 2
615 .na
616 \fB\fBtype\fR\fR
617 .ad
618 .sp .6
619 .RS 4n
620 The type of dataset: \fBfilesystem\fR, \fBvolume\fR, or \fBsnapshot\fR.
621 .RE
622
623 .sp
624 .ne 2
625 .na
626 \fB\fBused\fR\fR
627 .ad
628 .sp .6
629 .RS 4n
630 The 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 is freed if this dataset is recursively destroyed, is the greater of its space used and its reservation.
631 .sp
632 The used space of a snapshot (see the "Snapshots" section) is space that is referenced exclusively by this snapshot. If this snapshot is destroyed, the amount of \fBused\fR space will be freed. Space that is shared by multiple snapshots isn't accounted for in this metric. When a snapshot is destroyed, space that was previously shared with this snapshot can become unique to snapshots adjacent to it, thus changing the used space of those snapshots. The used space of the latest snapshot can also be affected by changes in the file system. Note that the \fBused\fR space of a snapshot is a subset of the \fBwritten\fR space of the snapshot.
633 .sp
634 The 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 (see \fBopen\fR(2)) does not necessarily guarantee that the space usage information is updated immediately.
635 .RE
636
637 .sp
638 .ne 2
639 .na
640 \fB\fBusedby*\fR\fR
641 .ad
642 .sp .6
643 .RS 4n
644 The \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 or higher pools.
645 .RE
646
647 .sp
648 .ne 2
649 .na
650 \fB\fBusedbychildren\fR\fR
651 .ad
652 .sp .6
653 .RS 4n
654 The amount of space used by children of this dataset, which would be freed if all the dataset's children were destroyed.
655 .RE
656
657 .sp
658 .ne 2
659 .na
660 \fB\fBusedbydataset\fR\fR
661 .ad
662 .sp .6
663 .RS 4n
664 The 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).
665 .RE
666
667 .sp
668 .ne 2
669 .na
670 \fB\fBusedbyrefreservation\fR\fR
671 .ad
672 .sp .6
673 .RS 4n
674 The amount of space used by a \fBrefreservation\fR set on this dataset, which would be freed if the \fBrefreservation\fR was removed.
675 .RE
676
677 .sp
678 .ne 2
679 .na
680 \fB\fBusedbysnapshots\fR\fR
681 .ad
682 .sp .6
683 .RS 4n
684 The 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.
685 .RE
686
687 .sp
688 .ne 2
689 .na
690 \fB\fBuserobjused@\fR\fIuser\fR\fR
691 .br
692 \fB\fBuserused@\fR\fIuser\fR\fR
693 .ad
694 .sp .6
695 .RS 4n
696 The 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.
697 .sp
698 Unprivileged 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.
699 .sp
700 The \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:
701 .RS +4
702 .TP
703 .ie t \(bu
704 .el o
705 \fIPOSIX name\fR (for example, \fBjoe\fR)
706 .RE
707 .RS +4
708 .TP
709 .ie t \(bu
710 .el o
711 \fIPOSIX numeric ID\fR (for example, \fB789\fR)
712 .RE
713 .RS +4
714 .TP
715 .ie t \(bu
716 .el o
717 \fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
718 .RE
719 .RS +4
720 .TP
721 .ie t \(bu
722 .el o
723 \fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
724 .RE
725 .RE
726 .RS 4n
727 .sp
728 Files created on Linux always have POSIX owners.
729 .sp
730 The \fBuserobjused\fR is similar to \fBuserused\fR but instead it counts the number of objects consumed by \fIuser\fR. This feature doesn't count the internal objects used by ZFS, therefore it may under count a few objects comparing with the results of third-party tool such as \fBdfs -i\fR.
731 When the property \fBxattr=on\fR is set on a fileset, ZFS will create additional objects per-file to store extended attributes. These additional objects are reflected in the \fBuserobjused\fR value and are counted against the user's \fBuserobjquota\fR. When a filesystem is configured to use \fBxattr=sa\fR no additional internal objects are required.
732 .RE
733
734 .sp
735 .ne 2
736 .na
737 \fB\fBuserrefs\fR\fR
738 .ad
739 .sp .6
740 .RS 4n
741 This property is set to the number of user holds on this snapshot. User holds are set by using the \fBzfs hold\fR command.
742 .RE
743
744 .sp
745 .ne 2
746 .na
747 \fB\fBgroupused@\fR\fIgroup\fR\fR
748 .br
749 \fB\fBgroupobjused@\fR\fIgroup\fR\fR
750 .ad
751 .sp .6
752 .RS 4n
753 The 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.
754 .sp
755 Unprivileged 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.
756 .RE
757
758 .RS 4n
759 The \fBgroupobjused\fR is similar to \fBgroupused\fR but instead it counts the number of objects consumed by \fIgroup\fR.
760 When the property \fBxattr=on\fR is set on a fileset, ZFS will create additional objects per-file to store extended attributes. These additional objects are reflected in the \fBgroupobjused\fR value and are counted against the group's \fBgroupobjquota.\fR. When a filesystem is configured to use \fBxattr=sa\fR no additional internal objects are required.
761 .RE
762
763 .sp
764 .ne 2
765 .na
766 \fB\fBvolblocksize\fR=\fIblocksize\fR\fR
767 .ad
768 .sp .6
769 .RS 4n
770 This property, which is only valid on volumes, specifies the block size of the volume. Any power of two from 512B to 128KiB is valid. The default is 8KiB.
771 .sp
772 This property cannot be changed after the volume is created.
773 .sp
774 This property can also be referred to by its shortened column name, \fBvolblock\fR.
775 .RE
776
777 .sp
778 .ne 2
779 .na
780 \fB\fBwritten\fR\fR
781 .ad
782 .sp .6
783 .RS 4n
784 The amount of space \fBreferenced\fR by this dataset, that was written since the previous snapshot
785 (i.e. that is not referenced by the previous snapshot).
786 .RE
787
788 .sp
789 .ne 2
790 .na
791 \fB\fBwritten@\fR\fIsnapshot\fR\fR
792 .ad
793 .sp .6
794 .RS 4n
795 The amount of \fBreferenced\fR space written to this dataset since the
796 specified snapshot. This is the space that is referenced by this dataset
797 but was not referenced by the specified snapshot.
798 .sp
799 The \fIsnapshot\fR may be specified as a short snapshot name (just the part
800 after the \fB@\fR), in which case it will be interpreted as a snapshot in
801 the same filesystem as this dataset.
802 The \fIsnapshot\fR be a full snapshot name (\fIfilesystem\fR@\fIsnapshot\fR),
803 which for clones may be a snapshot in the origin's filesystem (or the origin
804 of the origin's filesystem, etc).
805 .RE
806
807 .sp
808 .LP
809 The following native properties can be used to change the behavior of a \fBZFS\fR dataset.
810 .sp
811 .ne 2
812 .na
813 \fB\fBaclinherit\fR=\fBrestricted\fR | \fBdiscard\fR | \fBnoallow\fR | \fBpassthrough\fR | \fBpassthrough-x\fR\fR
814 .ad
815 .sp .6
816 .RS 4n
817 Controls 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.
818 .sp
819 When 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.
820 .sp
821 The \fBaclinherit\fR property does not apply to Posix ACLs.
822 .RE
823
824 .sp
825 .ne 2
826 .na
827 \fB\fBacltype\fR=\fBoff\fR | \fBnoacl\fR | \fBposixacl\fR \fR
828 .ad
829 .sp .6
830 .RS 4n
831 Controls whether ACLs are enabled and if so what type of ACL to use. When
832 a file system has the \fBacltype\fR property set to \fBoff\fR (the default)
833 then ACLs are disabled. Setting the \fBacltype\fR property to \fBposixacl\fR
834 indicates Posix ACLs should be used. Posix ACLs are specific to Linux and
835 are not functional on other platforms. Posix ACLs are stored as an xattr and
836 therefore will not overwrite any existing ZFS/NFSv4 ACLs which may be set.
837 Currently only \fBposixacls\fR are supported on Linux.
838 .sp
839 To obtain the best performance when setting \fBposixacl\fR users are strongly
840 encouraged to set the \fBxattr=sa\fR property. This will result in the
841 Posix ACL being stored more efficiently on disk. But as a consequence of this
842 all new xattrs will only be accessible from ZFS implementations which support
843 the \fBxattr=sa\fR property. See the \fBxattr\fR property for more details.
844 .sp
845 The value \fBnoacl\fR is an alias for \fBoff\fR.
846 .RE
847
848 .sp
849 .ne 2
850 .na
851 \fB\fBatime\fR=\fBon\fR | \fBoff\fR\fR
852 .ad
853 .sp .6
854 .RS 4n
855 Controls whether the access time for files is updated when they are read. Setting this property to \fBoff\fR 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. See also \fBrelatime\fR below.
856 .sp
857 The values \fBon\fR and \fBoff\fR are equivalent to the \fBatime\fR and \fBnoatime\fR mount options.
858 .RE
859
860 .sp
861 .ne 2
862 .na
863 \fB\fBcanmount\fR=\fBon\fR | \fBoff\fR | \fBnoauto\fR\fR
864 .ad
865 .sp .6
866 .RS 4n
867 If 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.
868 .sp
869 When 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.
870 .sp
871 This property is not inherited. Every dataset defaults to \fBon\fR independently.
872 .sp
873 The values \fBon\fR and \fBnoauto\fR are equivalent to the \fBauto\fR and \fBnoauto\fR mount options.
874 .RE
875
876 .sp
877 .ne 2
878 .na
879 \fB\fBchecksum\fR=\fBon\fR | \fBoff\fR | \fBfletcher2\fR | \fBfletcher4\fR | \fBsha256\fR | \fBnoparity\fR | \fBsha512\fR | \fBskein\fR | \fBedonr\fR\fR
880 .ad
881 .sp .6
882 .RS 4n
883 Controls the checksum used to verify data integrity. The default value is
884 \fBon\fR, which automatically selects an appropriate algorithm (currently,
885 \fBfletcher4\fR, but this may change in future releases). The value \fBoff\fR
886 disables integrity checking on user data. The value \fBnoparity\fR not only
887 disables integrity but also disables maintaining parity for user data.
888 This setting is used internally by a dump device residing on a RAID-Z pool and
889 should not be used by any other dataset. Disabling checksums is \fBNOT\fR a
890 recommended practice.
891 .sp
892 The \fBsha512\fR, \fBskein\fR, and \fBedonr\fR checksum algorithms require
893 enabling the appropriate features on the pool. Please see zpool-features for
894 more information on these algorithms.
895
896 Changing this property affects only newly-written data.
897 .RE
898
899 .sp
900 .ne 2
901 .na
902 \fB\fBcompression\fR=\fBoff\fR | \fBon\fR | \fBlzjb\fR | \fBlz4\fR |
903 \fBgzip\fR | \fBgzip-\fR\fIN\fR | \fBzle\fR\fR
904 .ad
905 .sp .6
906 .RS 4n
907 Controls the compression algorithm used for this dataset.
908 .sp
909 Setting compression to \fBon\fR indicates that the current default
910 compression algorithm should be used. The default balances compression
911 and decompression speed, with compression ratio and is expected to
912 work well on a wide variety of workloads. Unlike all other settings for
913 this property, \fBon\fR does not select a fixed compression type. As
914 new compression algorithms are added to ZFS and enabled on a pool, the
915 default compression algorithm may change. The current default compression
916 algorithm is either \fBlzjb\fR or, if the \fBlz4_compress\fR feature is
917 enabled, \fBlz4\fR.
918 .sp
919 The \fBlzjb\fR compression algorithm is optimized for performance while
920 providing decent data compression.
921 .sp
922 The \fBlz4\fR compression algorithm is a high-performance replacement
923 for the \fBlzjb\fR algorithm. It features significantly faster
924 compression and decompression, as well as a moderately higher
925 compression ratio than \fBlzjb\fR, but can only be used on pools with
926 the \fBlz4_compress\fR feature set to \fIenabled\fR. See
927 \fBzpool-features\fR(5) for details on ZFS feature flags and the
928 \fBlz4_compress\fR feature.
929 .sp
930 The \fBgzip\fR compression algorithm uses the same compression as
931 the \fBgzip\fR(1) command. You can specify the \fBgzip\fR level by using the
932 value \fBgzip-\fR\fIN\fR where \fIN\fR is an integer from 1 (fastest) to 9
933 (best compression ratio). Currently, \fBgzip\fR is equivalent to \fBgzip-6\fR
934 (which is also the default for \fBgzip\fR(1)). The \fBzle\fR compression
935 algorithm compresses runs of zeros.
936 .sp
937 This property can also be referred to by its shortened column name
938 \fBcompress\fR. Changing this property affects only newly-written data.
939 .RE
940
941 .sp
942 .ne 2
943 .na
944 \fB\fBcopies\fR=\fB1\fR | \fB2\fR | \fB3\fR\fR
945 .ad
946 .sp .6
947 .RS 4n
948 Controls 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.
949 .sp
950 Changing this property only affects newly-written data.
951 .sp
952 Remember that \fBZFS\fR will not import a pool with a missing top-level vdev. Do NOT create, for example, a two-disk, striped pool and set \fBcopies=\fR\fI2\fR on some datasets thinking you have setup redundancy for them. When one disk dies, you will not be able to import the pool and will have lost all of your data.
953 .RE
954
955 .sp
956 .ne 2
957 .na
958 \fB\fBdedup\fR=\fBoff\fR | \fBon\fR | \fBverify\fR | \fBsha256\fR[,\fBverify\fR]\fR
959 .ad
960 .sp .6
961 .RS 4n
962 Controls whether deduplication is in effect for a dataset. The default value is \fBoff\fR. The default checksum used for deduplication is \fBsha256\fR (subject to change). When \fBdedup\fR is enabled, the \fBdedup\fR checksum algorithm overrides the \fBchecksum\fR property. Setting the value to \fBverify\fR is equivalent to specifying \fBsha256,verify\fR.
963 .sp
964 If the property is set to \fBverify\fR, then, whenever two blocks have the same signature, ZFS will do a byte-for-byte comparison with the existing block to ensure that the contents are identical.
965 .sp
966 Unless necessary, deduplication should NOT be enabled on a system. See \fBDeduplication\fR above.
967 .RE
968
969 .sp
970 .ne 2
971 .na
972 \fB\fBdevices\fR=\fBon\fR | \fBoff\fR\fR
973 .ad
974 .sp .6
975 .RS 4n
976 Controls whether device nodes can be opened on this file system. The default value is \fBon\fR.
977 .sp
978 The values \fBon\fR and \fBoff\fR are equivalent to the \fBdev\fR and \fBnodev\fR mount options.
979 .RE
980
981 .sp
982 .ne 2
983 .na
984 \fB\fBdnodesize\fR=\fBlegacy\fR | \fBauto\fR | \fB1k\fR | \fB2k\fR | \fB4k\fR | \fB8k\fR | \fB16k\fR\fR
985 .ad
986 .sp .6
987 .RS 4n
988 Specifies a compatibility mode or literal value for the size of dnodes
989 in the file system. The default value is \fBlegacy\fR. Setting this
990 property to a value other than \fBlegacy\fR requires the
991 \fBlarge_dnode\fR pool feature to be enabled.
992 .sp
993 Consider setting \fBdnodesize\fR to \fBauto\fR if the dataset uses the
994 \fBxattr=sa\fR property setting and the workload makes heavy use of
995 extended attributes. This may be applicable to SELinux-enabled systems,
996 Lustre servers, and Samba servers, for example. Literal values are
997 supported for cases where the optimal size is known in advance and for
998 performance testing.
999 .sp
1000 Leave \fBdnodesize\fR set to \fBlegacy\fR if you need to receive
1001 a \fBzfs send\fR stream of this dataset on a pool that doesn't enable
1002 the \fBlarge_dnode\fR feature, or if you need to import this pool on a
1003 system that doesn't support the \fBlarge_dnode\fR feature.
1004 .sp
1005 This property can also be referred to by its shortened column name,
1006 \fBdnsize\fR.
1007 .RE
1008
1009 .sp
1010 .ne 2
1011 .mk
1012 .na
1013 \fB\fBexec\fR=\fBon\fR | \fBoff\fR\fR
1014 .ad
1015 .sp .6
1016 .RS 4n
1017 Controls whether processes can be executed from within this file system. The default value is \fBon\fR.
1018 .sp
1019 The values \fBon\fR and \fBoff\fR are equivalent to the \fBexec\fR and \fBnoexec\fR mount options.
1020 .RE
1021
1022 .sp
1023 .ne 2
1024 .na
1025 \fB\fBmlslabel\fR=\fBnone\fR\fR | \fIlabel\fR
1026 .ad
1027 .sp .6
1028 .RS 4n
1029 The \fBmlslabel\fR property is a sensitivity label that determines if a dataset can be mounted in a zone on a system with Trusted Extensions enabled. If the labeled dataset matches the labeled zone, the dataset can be mounted and accessed from the labeled zone.
1030 .sp
1031 When the \fBmlslabel\fR property is not set, the default value is \fBnone\fR. Setting the \fBmlslabel\fR property to \fBnone\fR is equivalent to removing the property.
1032 .sp
1033 The \fBmlslabel\fR property can be modified only when Trusted Extensions is enabled and only with appropriate privilege. Rights to modify it cannot be delegated. When changing a label to a higher label or setting the initial dataset label, the \fB{PRIV_FILE_UPGRADE_SL}\fR privilege is required. When changing a label to a lower label or the default (\fBnone\fR), the \fB{PRIV_FILE_DOWNGRADE_SL}\fR privilege is required. Changing the dataset to labels other than the default can be done only when the dataset is not mounted. When a dataset with the default label is mounted into a labeled-zone, the mount operation automatically sets the \fBmlslabel\fR property to the label of that zone.
1034 .sp
1035 When Trusted Extensions is \fBnot\fR enabled, only datasets with the default label (\fBnone\fR) can be mounted.
1036 .sp
1037 Zones are a Solaris feature and are not relevant on Linux.
1038 .RE
1039
1040 .sp
1041 .ne 2
1042 .na
1043 \fB\fBfilesystem_limit\fR=\fBnone\fR\fR | \fIcount\fR
1044 .ad
1045 .sp .6
1046 .RS 4n
1047 Limits the number of filesystems and volumes that can exist under this point in
1048 the dataset tree. The limit is not enforced if the user is allowed to change
1049 the limit. Setting a filesystem_limit on a descendent of a filesystem that
1050 already has a filesystem_limit does not override the ancestor's filesystem_limit,
1051 but rather imposes an additional limit. This feature must be enabled to be used
1052 (see \fBzpool-features\fR(5)).
1053 .RE
1054
1055 .sp
1056 .ne 2
1057 .na
1058 \fB\fBmountpoint\fR=\fIpath\fR | \fBnone\fR | \fBlegacy\fR\fR
1059 .ad
1060 .sp .6
1061 .RS 4n
1062 Controls the mount point used for this file system. See the "Mount Points" section for more information on how this property is used.
1063 .sp
1064 When 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.
1065 .RE
1066
1067 .sp
1068 .ne 2
1069 .na
1070 \fB\fBnbmand\fR=\fBoff\fR | \fBon\fR\fR
1071 .ad
1072 .sp .6
1073 .RS 4n
1074 Controls 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(1M) on a Solaris system for more information on \fBnbmand\fR mounts.
1075 .sp
1076 The values \fBon\fR and \fBoff\fR are equivalent to the \fBnbmand\fR and \fBnonbmand\fR mount options.
1077 .sp
1078 This property is not used on Linux.
1079 .RE
1080
1081 .sp
1082 .ne 2
1083 .na
1084 \fB\fBprimarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
1085 .ad
1086 .sp .6
1087 .RS 4n
1088 Controls 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.
1089 .RE
1090
1091 .sp
1092 .ne 2
1093 .na
1094 \fB\fBquota\fR=\fBnone\fR | \fIsize\fR\fR
1095 .ad
1096 .sp .6
1097 .RS 4n
1098 Limits 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.
1099 .sp
1100 Quotas cannot be set on volumes, as the \fBvolsize\fR property acts as an implicit quota.
1101 .RE
1102
1103 .sp
1104 .ne 2
1105 .na
1106 \fB\fBsnapshot_limit\fR=\fBnone\fR\fR | \fIcount\fR
1107 .ad
1108 .sp .6
1109 .RS 4n
1110 Limits the number of snapshots that can be created on a dataset and its
1111 descendents. Setting a snapshot_limit on a descendent of a dataset that already
1112 has a snapshot_limit does not override the ancestor's snapshot_limit, but
1113 rather imposes an additional limit. The limit is not enforced if the user is
1114 allowed to change the limit. For example, this means that recursive snapshots
1115 taken from the global zone are counted against each delegated dataset within
1116 a zone. This feature must be enabled to be used (see \fBzpool-features\fR(5)).
1117 .RE
1118
1119 .sp
1120 .ne 2
1121 .na
1122 \fB\fBuserquota@\fR\fIuser\fR=\fBnone\fR | \fIsize\fR\fR
1123 .br
1124 \fB\fBuserobjquota@\fR\fIuser\fR=\fBnone\fR | \fIcount\fR\fR
1125 .ad
1126 .sp .6
1127 .RS 4n
1128 Limits the amount of space consumed by the specified user. Similar to the \fBrefquota\fR property, the \fBuserquota\fR space calculation does not include space that is used by descendent datasets, such as snapshots and clones. User space consumption is identified by the \fBuserspace@\fR\fIuser\fR property. See the \fBzfs userspace\fR subcommand for more information.
1129 .sp
1130 Enforcement 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.
1131 .sp
1132 Unprivileged 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.
1133 .sp
1134 This 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:
1135 .RS +4
1136 .TP
1137 .ie t \(bu
1138 .el o
1139 \fIPOSIX name\fR (for example, \fBjoe\fR)
1140 .RE
1141 .RS +4
1142 .TP
1143 .ie t \(bu
1144 .el o
1145 \fIPOSIX numeric ID\fR (for example, \fB789\fR)
1146 .RE
1147 .RS +4
1148 .TP
1149 .ie t \(bu
1150 .el o
1151 \fISID name\fR (for example, \fBjoe.smith@mydomain\fR)
1152 .RE
1153 .RS +4
1154 .TP
1155 .ie t \(bu
1156 .el o
1157 \fISID numeric ID\fR (for example, \fBS-1-123-456-789\fR)
1158 .RE
1159 .RE
1160 Files created on Linux always have POSIX owners.
1161
1162 .RS 4
1163 The \fBuserobjquota\fR is similar to \fBuserquota\fR but it limits the number of objects a \fIuser\fR can create.
1164 Please refer to \fBuserobjused\fR for more information about how ZFS counts object usage.
1165 .RE
1166
1167 .sp
1168 .ne 2
1169 .na
1170 \fB\fBgroupquota@\fR\fIgroup\fR=\fBnone\fR\fR | \fIsize\fR
1171 .br
1172 \fB\fBgroupobjquota@\fR\fIgroup\fR=\fBnone\fR\fR | \fIcount\fR
1173 .ad
1174 .sp .6
1175 .RS 4n
1176 Limits the amount of space consumed by the specified group. Group space consumption is identified by the \fBuserquota@\fR\fIuser\fR property.
1177 .sp
1178 Unprivileged 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.
1179
1180 The \fBgroupobjquota\fR is similar to \fBgroupquota\fR but it limits that the \fIgroup\fR can consume \fIcount\fR number of objects at most.
1181 Please refer to \fBuserobjused\fR for more information about how zfs counts object usage.
1182 .RE
1183
1184 .sp
1185 .ne 2
1186 .na
1187 \fB\fBreadonly\fR=\fBoff\fR | \fBon\fR\fR
1188 .ad
1189 .sp .6
1190 .RS 4n
1191 Controls whether this dataset can be modified. The default value is \fBoff\fR.
1192 .sp
1193 This property can also be referred to by its shortened column name, \fBrdonly\fR.
1194 .sp
1195 The values \fBon\fR and \fBoff\fR are equivalent to the \fBro\fR and \fBrw\fR mount options.
1196 .RE
1197
1198 .sp
1199 .ne 2
1200 .na
1201 \fB\fBrecordsize\fR=\fIsize\fR\fR
1202 .ad
1203 .sp .6
1204 .RS 4n
1205 Specifies 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.
1206 .sp
1207 For 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.
1208 .sp
1209 Any power of two from 512B to 1MiB is valid. The default is 128KiB. Values larger than 128KiB require the pool have the \fBlarge_blocks\fR feature enabled. See \fBzpool-features\fR(5) for details on ZFS feature flags and the \fBlarge_blocks\fR feature.
1210 .sp
1211 Changing the file system's \fBrecordsize\fR affects only files created afterward; existing files are unaffected.
1212 .sp
1213 This property can also be referred to by its shortened column name, \fBrecsize\fR.
1214 .RE
1215
1216 .sp
1217 .ne 2
1218 .na
1219 \fB\fBredundant_metadata\fR=\fBall\fR | \fBmost\fR\fR
1220 .ad
1221 .sp .6
1222 .RS 4n
1223 Controls what types of metadata are stored redundantly. ZFS stores an
1224 extra copy of metadata, so that if a single block is corrupted, the
1225 amount of user data lost is limited. This extra copy is in addition to
1226 any redundancy provided at the pool level (e.g. by mirroring or RAID-Z),
1227 and is in addition to an extra copy specified by the \fBcopies\fR
1228 property (up to a total of 3 copies). For example if the pool is
1229 mirrored, \fBcopies\fR=2, and \fBredundant_metadata\fR=most, then ZFS
1230 stores 6 copies of most metadata, and 4 copies of data and some
1231 metadata.
1232 .sp
1233 When set to \fBall\fR, ZFS stores an extra copy of all metadata. If a
1234 single on-disk block is corrupt, at worst a single block of user data
1235 (which is \fBrecordsize\fR bytes long) can be lost.
1236 .sp
1237 When set to \fBmost\fR, ZFS stores an extra copy of most types of
1238 metadata. This can improve performance of random writes, because less
1239 metadata must be written. In practice, at worst about 100 blocks (of
1240 \fBrecordsize\fR bytes each) of user data can be lost if a single
1241 on-disk block is corrupt. The exact behavior of which metadata blocks
1242 are stored redundantly may change in future releases.
1243 .sp
1244 The default value is \fBall\fR.
1245 .RE
1246
1247 .sp
1248 .ne 2
1249 .na
1250 \fB\fBrefquota\fR=\fBnone\fR | \fIsize\fR\fR
1251 .ad
1252 .sp .6
1253 .RS 4n
1254 Limits 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.
1255 .RE
1256
1257 .sp
1258 .ne 2
1259 .na
1260 \fB\fBrefreservation\fR=\fBnone\fR | \fIsize\fR\fR
1261 .ad
1262 .sp .6
1263 .RS 4n
1264 The 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.
1265 .sp
1266 If \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 \fBreferenced\fR bytes in the dataset (which are the bytes to be referenced by the snapshot). This is necessary to continue to provide the \fBrefreservation\fRguarantee to the dataset.
1267 .sp
1268 For volumes, see also \fBvolsize\fR.
1269 .sp
1270 This property can also be referred to by its shortened column name, \fBrefreserv\fR.
1271 .RE
1272
1273 .sp
1274 .ne 2
1275 .na
1276 \fB\fBrelatime\fR=\fBoff\fR | \fBon\fR\fR
1277 .ad
1278 .sp .6
1279 .RS 4n
1280 Controls the manner in which the access time is updated when \fBatime=on\fR is set. Turning this property \fBon\fR causes the access time to be updated relative to the modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time or if the existing access time hasn't been updated within the past 24 hours. The default value is \fBoff\fR.
1281 .sp
1282 The values \fBon\fR and \fBoff\fR are equivalent to the \fBrelatime\fR and \fBnorelatime\fR mount options.
1283 .RE
1284
1285 .sp
1286 .ne 2
1287 .na
1288 \fB\fBreservation\fR=\fBnone\fR | \fIsize\fR\fR
1289 .ad
1290 .sp .6
1291 .RS 4n
1292 The 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.
1293 .sp
1294 This property can also be referred to by its shortened column name, \fBreserv\fR.
1295 .RE
1296
1297 .sp
1298 .ne 2
1299 .na
1300 \fB\fBsecondarycache\fR=\fBall\fR | \fBnone\fR | \fBmetadata\fR\fR
1301 .ad
1302 .sp .6
1303 .RS 4n
1304 Controls 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.
1305 .RE
1306
1307 .sp
1308 .ne 2
1309 .na
1310 \fB\fBsetuid\fR=\fBon\fR | \fBoff\fR\fR
1311 .ad
1312 .sp .6
1313 .RS 4n
1314 Controls whether the setuid bit is respected for the file system. The default value is \fBon\fR.
1315 .sp
1316 The values \fBon\fR and \fBoff\fR are equivalent to the \fBsuid\fR and \fBnosuid\fR mount options.
1317 .RE
1318
1319 .sp
1320 .ne 2
1321 .na
1322 \fB\fBsharesmb\fR=\fBoff\fR | \fBon\fR
1323 .ad
1324 .sp .6
1325 .RS 4n
1326 Controls whether the file system is shared by using \fBSamba USERSHARES\fR, and what options are to be used. 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 \fBnet\fR(8) command is invoked to create a \fBUSERSHARE\fR.
1327 .sp
1328 Because \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 invalid in the resource name, are replaced with underscore (\fB_\fR) characters. Linux does not currently support additional options which might be available on Solaris.
1329 .sp
1330 If the \fBsharesmb\fR property is set to \fBoff\fR, the file systems are unshared.
1331 .sp
1332 In Linux, the share is created with the ACL (Access Control List) "Everyone:F" ("F" stands for "full permissions", ie. read and write permissions) and no guest access (which means Samba must be able to authenticate a real user, system passwd/shadow, LDAP or smbpasswd based) by default. This means that any additional access control (disallow specific user specific access etc) must be done on the underlaying filesystem.
1333 .sp
1334 .in +2
1335 Example to mount a SMB filesystem shared through ZFS (share/tmp):
1336 Note that a user and his/her password \fBmust\fR be given!
1337 .sp
1338 .in +2
1339 smbmount //127.0.0.1/share_tmp /mnt/tmp -o user=workgroup/turbo,password=obrut,uid=1000
1340 .in -2
1341 .in -2
1342 .sp
1343 .ne 2
1344 .na
1345 \fBMinimal /etc/samba/smb.conf configuration\fR
1346 .sp
1347 .in +2
1348 * Samba will need to listen to 'localhost' (127.0.0.1) for the zfs utilities to communicate with Samba. This is the default behavior for most Linux distributions.
1349 .sp
1350 * Samba must be able to authenticate a user. This can be done in a number of ways, depending on if using the system password file, LDAP or the Samba specific smbpasswd file. How to do this is outside the scope of this manual. Please refer to the smb.conf(5) manpage for more information.
1351 .sp
1352 * See the \fBUSERSHARE\fR section of the \fBsmb.conf\fR(5) man page for all configuration options in case you need to modify any options to the share afterwards. Do note that any changes done with the 'net' command will be undone if the share is every unshared (such as at a reboot etc). In the future, ZoL will be able to set specific options directly using sharesmb=<option>.
1353 .sp
1354 .in -2
1355 .RE
1356
1357 .sp
1358 .ne 2
1359 .na
1360 \fB\fBsharenfs\fR=\fBoff\fR | \fBon\fR | \fIopts\fR\fR
1361 .ad
1362 .sp .6
1363 .RS 4n
1364 Controls 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 with the \fBexportfs\fR(8) command and entries in \fB/etc/exports\fR file. 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 dataset is shared using the \fBexportfs\fR(8) command in the following manner (see \fBexportfs\fR(8) for the meaning of the different options):
1365 .sp
1366 .in +4
1367 .nf
1368 /usr/sbin/exportfs -i -o sec=sys,rw,crossmnt,no_subtree_check,no_root_squash,mountpoint *:<mountpoint of dataset>
1369 .fi
1370 .in -4
1371 .sp
1372 Otherwise, the \fBexportfs\fR(8) command is invoked with options equivalent to the contents of this property.
1373 .sp
1374 When 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.
1375 .RE
1376
1377 .sp
1378 .ne 2
1379 .na
1380 \fB\fBlogbias\fR=\fBlatency\fR | \fBthroughput\fR\fR
1381 .ad
1382 .sp .6
1383 .RS 4n
1384 Provide 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.
1385 .RE
1386
1387 .sp
1388 .ne 2
1389 .na
1390 \fB\fBsnapdev\fR=\fBhidden\fR | \fBvisible\fR\fR
1391 .ad
1392 .sp .6
1393 .RS 4n
1394 Controls whether the snapshots devices of zvol's are hidden or visible. The default value is \fBhidden\fR.
1395 .sp
1396 In this context, hidden does not refer to the concept of hiding files or directories by starting their name with a "." character. Even with \fBvisible\fR, the directory is still named \fB\&.zfs\fR. Instead, \fBhidden\fR means that the directory is not returned by \fBreaddir\fR(3), so it doesn't show up in directory listings done by any program, including \fBls\fR \fB-a\fR. It is still possible to chdir(2) into the directory, so \fBcd\fR \fB\&.zfs\fR works even with \fBhidden\fR. This unusual behavior is to protect against unwanted effects from applications recursing into the special \fB\&.zfs\fR directory.
1397 .RE
1398
1399 .sp
1400 .ne 2
1401 .na
1402 \fB\fBsnapdir\fR=\fBhidden\fR | \fBvisible\fR\fR
1403 .ad
1404 .sp .6
1405 .RS 4n
1406 Controls 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.
1407 .RE
1408
1409 .sp
1410 .ne 2
1411 .na
1412 \fB\fBsync\fR=\fBstandard\fR | \fBalways\fR | \fBdisabled\fR\fR
1413 .ad
1414 .sp .6
1415 .RS 4n
1416 Controls the behavior of synchronous requests (e.g. fsync, O_DSYNC).
1417 \fBstandard\fR is the POSIX specified behavior of ensuring all synchronous
1418 requests are written to stable storage and all devices are flushed to ensure
1419 data is not cached by device controllers (this is the default). \fBalways\fR
1420 causes every file system transaction to be written and flushed before its
1421 system call returns. This has a large performance penalty. \fBdisabled\fR
1422 disables synchronous requests. File system transactions are only committed to
1423 stable storage periodically. This option will give the highest performance.
1424 However, it is very dangerous as ZFS would be ignoring the synchronous
1425 transaction demands of applications such as databases or NFS. Administrators
1426 should only use this option when the risks are understood.
1427 .RE
1428
1429 .sp
1430 .ne 2
1431 .na
1432 \fB\fBversion\fR=\fB5\fR | \fB4\fR | \fB3\fR | \fB2\fR | \fB1\fR | \fBcurrent\fR\fR
1433 .ad
1434 .sp .6
1435 .RS 4n
1436 The on-disk version of this file system, which is independent of the pool version. This property can only be set to later supported versions. The value \fBcurrent\fR automatically selects the latest supported version. See the \fBzfs upgrade\fR command.
1437 .RE
1438
1439 .sp
1440 .ne 2
1441 .na
1442 \fB\fBvolsize\fR=\fIsize\fR\fR
1443 .ad
1444 .sp .6
1445 .RS 4n
1446 For volumes, specifies the logical size of the volume. By default, creating a volume establishes a \fBrefreservation\fR equal to the volume size plus the metadata required for a fully-written volume. (For pool version 8 or lower, a \fBreservation\fR is set instead.) Any changes to \fBvolsize\fR are reflected in an equivalent change to the \fBrefreservation\fR. The \fBvolsize\fR can only be set to a multiple of \fBvolblocksize\fR, and cannot be zero.
1447 .sp
1448 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.
1449 .sp
1450 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 removing (or changing) the \fBrefreservation\fR after the volume has been created. A "sparse volume" is a volume where the \fBrefreservation\fR is unset or 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.
1451 .RE
1452
1453 .sp
1454 .ne 2
1455 .na
1456 \fB\fBvscan\fR=\fBoff\fR | \fBon\fR\fR
1457 .ad
1458 .sp .6
1459 .RS 4n
1460 Controls 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.
1461 .sp
1462 This property is not used on Linux.
1463 .RE
1464
1465 .sp
1466 .ne 2
1467 .na
1468 \fB\fBxattr\fR=\fBon\fR | \fBoff\fR | \fBsa\fR\fR
1469 .ad
1470 .sp .6
1471 .RS 4n
1472 Controls whether extended attributes are enabled for this file system. Two
1473 styles of extended attributes are supported either directory based or system
1474 attribute based.
1475 .sp
1476 The default value of \fBon\fR enables directory based extended attributes.
1477 This style of xattr imposes no practical limit on either the size or number of
1478 xattrs which may be set on a file. Although under Linux the \fBgetxattr\fR(2)
1479 and \fBsetxattr\fR(2) system calls limit the maximum xattr size to 64K. This
1480 is the most compatible style of xattr and it is supported by the majority of
1481 ZFS implementations.
1482 .sp
1483 System attribute based xattrs may be enabled by setting the value to \fBsa\fR.
1484 The key advantage of this type of xattr is improved performance. Storing
1485 xattrs as system attributes significantly decreases the amount of disk IO
1486 required. Up to 64K of xattr data may be stored per file in the space reserved
1487 for system attributes. If there is not enough space available for an xattr then
1488 it will be automatically written as a directory based xattr. System attribute
1489 based xattrs are not accessible on platforms which do not support the
1490 \fBxattr=sa\fR feature.
1491 .sp
1492 The use of system attribute based xattrs is strongly encouraged for users of
1493 SELinux or Posix ACLs. Both of these features heavily rely of xattrs and
1494 benefit significantly from the reduced xattr access time.
1495 .sp
1496 The values \fBon\fR and \fBoff\fR are equivalent to the \fBxattr\fR and \fBnoxattr\fR mount options.
1497 .RE
1498
1499 .sp
1500 .ne 2
1501 .na
1502 \fB\fBzoned\fR=\fBoff\fR | \fBon\fR\fR
1503 .ad
1504 .sp .6
1505 .RS 4n
1506 Controls 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.
1507 .RE
1508
1509 .sp
1510 .LP
1511 The 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.
1512 .sp
1513 .ne 2
1514 .na
1515 \fB\fBcasesensitivity\fR=\fBsensitive\fR | \fBinsensitive\fR | \fBmixed\fR\fR
1516 .ad
1517 .sp .6
1518 .RS 4n
1519 Indicates 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.
1520 .sp
1521 The \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.
1522 .RE
1523
1524 .sp
1525 .ne 2
1526 .na
1527 \fB\fBnormalization\fR = \fBnone\fR | \fBformC\fR | \fBformD\fR | \fBformKC\fR | \fBformKD\fR\fR
1528 .ad
1529 .sp .6
1530 .RS 4n
1531 Indicates whether the file system should perform a Unicode normalization of file names whenever two file names are compared, and which normalization algorithm should be used.
1532 .sp
1533 If this property is set to a value other than \fBnone\fR (the default), and the \fButf8only\fR property was left unspecified, the \fButf8only\fR property is automatically set to \fBon\fR. See the cautionary note in the \fButf8only\fR section before modifying \fBnormalization\fR.
1534 .sp
1535 File names are always stored unmodified; names are normalized as part of any comparison process. Thus, \fBformC\fR and \fBformD\fR are equivalent, as are \fBformKC\fR and \fBformKD\fR. Given that, only \fBformD\fR and \fBformKD\fR make sense, as they are slightly faster because they avoid the additional canonical composition step.
1536 .\" unicode.org says it's possible to quickly detect if a string is already in a given form. Since most text (basically everything but OS X) is already in NFC, this means formC could potentially be made faster. But the additional complexity probably isn't worth the likely undetectable in practice speed improvement.
1537 .sp
1538 The practical impact of this property is: \fBnone\fR (like traditional filesystems) allows a directory to contain two files that appear (to humans) to have the same name. The other options solve this problem, for different definitions of "the same". If you need to solve this problem and are not sure what to choose,\fBformD\fR.
1539 .sp
1540 This property cannot be changed after the file system is created.
1541 .RE
1542
1543 .sp
1544 .ne 2
1545 .na
1546 \fB\fButf8only\fR=\fBoff\fR | \fBon\fR\fR
1547 .ad
1548 .sp .6
1549 .RS 4n
1550 Indicates whether the file system should reject file names that include characters that are not present in the \fBUTF-8\fR character set. If this property is explicitly set to \fBoff\fR, the \fBnormalization\fR property must either not be explicitly set or be set to \fBnone\fR. The default value for the \fButf8only\fR property is \fBoff\fR.
1551 .sp
1552 Note that forcing the use of \fBUTF-8\fR filenames may cause pain for users. For example, extracting files from an archive will fail if the filenames within the archive are encoded in another character set.
1553 .sp
1554 If you are thinking of setting this (to \fBon\fR), you probably want to set \fBnormalization\fR=\fBformD\fR which will set this property to \fBon\fR implicitly.
1555 .sp
1556 This property cannot be changed after the file system is created.
1557 .RE
1558
1559 .sp
1560 .LP
1561 The \fBcasesensitivity\fR, \fBnormalization\fR, and \fButf8only\fR properties are also permissions that can be assigned to non-privileged users by using the \fBZFS\fR delegated administration feature.
1562 .RE
1563
1564 .sp
1565 .ne 2
1566 .na
1567 \fB\fBcontext\fR=\fBnone\fR | \fISELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level\fR\fR
1568 .ad
1569 .sp .6
1570 .RS 4n
1571 This flag sets the SELinux context for all files in the filesystem under the mountpoint for that filesystem. See \fBselinux\fR(8) for more information.
1572 .RE
1573
1574 .sp
1575 .ne 2
1576 .na
1577 \fB\fBfscontext\fR=\fBnone\fR | \fISELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level\fR\fR
1578 .ad
1579 .sp .6
1580 .RS 4n
1581 This flag sets the SELinux context for the filesystem being mounted. See \fBselinux\fR(8) for more information.
1582 .RE
1583
1584 .sp
1585 .ne 2
1586 .na
1587 \fB\fBdefcontext\fR=\fBnone\fR | \fISELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level\fR\fR
1588 .ad
1589 .sp .6
1590 .RS 4n
1591 This flag sets the SELinux context for unlabeled files. See \fBselinux\fR(8) for more information.
1592 .RE
1593
1594 .sp
1595 .ne 2
1596 .na
1597 \fB\fBrootcontext\fR=\fBnone\fR | \fISELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level\fR\fR
1598 .ad
1599 .sp .6
1600 .RS 4n
1601 This flag sets the SELinux context for the root inode of the filesystem. See \fBselinux\fR(8) for more information.
1602 .RE
1603
1604 .sp
1605 .ne 2
1606 .na
1607 \fB\fBoverlay\fR=\fBoff\fR | \fBon\fR\fR
1608 .ad
1609 .sp .6
1610 .RS 4n
1611 Allow mounting on a busy directory or a directory which already contains files/directories. This is the default mount behavior for Linux filesystems. However, for consistency with ZFS on other platforms overlay mounts are disabled by default. Set \fBoverlay=on\fR to enable overlay mounts.
1612 .RE
1613
1614 .SS "Temporary Mount Point Properties"
1615 .LP
1616 When 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:
1617 .sp
1618 .in +2
1619 .nf
1620 PROPERTY MOUNT OPTION
1621 atime atime/noatime
1622 canmount auto/noauto
1623 devices devices/nodevices
1624 exec exec/noexec
1625 readonly ro/rw
1626 relatime relatime/norelatime
1627 setuid suid/nosuid
1628 xattr xattr/noxattr
1629 nbmand nbmand/nonbmand (Solaris)
1630 .fi
1631 .in -2
1632 .sp
1633
1634 .sp
1635 .LP
1636 In 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.
1637 .SS "User Properties"
1638 .LP
1639 In 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). Unlike native properties, user properties are editable on snapshots.
1640 .sp
1641 .LP
1642 User 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).
1643 .sp
1644 .LP
1645 When 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 definition by Oracle Corporation (which acquired Sun Microsystems).
1646 .sp
1647 .LP
1648 The 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 8192 bytes.
1649 .SS "ZFS Volumes as Swap"
1650 .LP
1651 \fBZFS\fR volumes may be used as Linux swap devices. After creating the volume
1652 with the \fBzfs create\fR command set up and enable the swap area using the
1653 \fBmkswap\fR(8) and \fBswapon\fR(8) commands. Do not swap to a file on a
1654 \fBZFS\fR file system. A \fBZFS\fR swap file configuration is not supported.
1655 .SH SUBCOMMANDS
1656 .LP
1657 All subcommands that modify state are logged persistently to the pool in their original form. The log can be viewed with \fBzpool history\fR.
1658 .sp
1659 .ne 2
1660 .na
1661 \fB\fBzfs ?\fR\fR
1662 .ad
1663 .sp .6
1664 .RS 4n
1665 Displays a help message.
1666 .RE
1667
1668 .sp
1669 .ne 2
1670 .na
1671 \fB\fBzfs create\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem\fR\fR
1672 .ad
1673 .sp .6
1674 .RS 4n
1675 Creates a new \fBZFS\fR file system. The file system is automatically mounted according to the \fBmountpoint\fR and \fBcanmount\fR properties.
1676 .sp
1677 .ne 2
1678 .na
1679 \fB\fB-p\fR\fR
1680 .ad
1681 .sp .6
1682 .RS 4n
1683 Creates all the non-existing parent datasets. Datasets created in this manner inherit their properties; any property specified on the command line using the \fB-o\fR option applies only to the final child file system. If the target filesystem already exists, the operation completes successfully and no properties are changed.
1684 .RE
1685
1686 .sp
1687 .ne 2
1688 .na
1689 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1690 .ad
1691 .sp .6
1692 .RS 4n
1693 Sets 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.
1694 .RE
1695
1696 .RE
1697
1698 .sp
1699 .ne 2
1700 .na
1701 \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
1702 .ad
1703 .sp .6
1704 .RS 4n
1705 Creates 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 \fBrefreservation\fR is created.
1706 .sp
1707 \fIsize\fR is automatically rounded up to the nearest 128KiB to ensure that the volume has an integral number of blocks regardless of \fIblocksize\fR.
1708 .sp
1709 .ne 2
1710 .na
1711 \fB\fB-p\fR\fR
1712 .ad
1713 .sp .6
1714 .RS 4n
1715 Creates all the non-existing parent datasets as file systems. Datasets created in this manner inherit their properties; any property specified on the command line using the \fB-o\fR option applies only to the final child volume. If the target volume already exists, the operation completes successfully and no properties are changed.
1716 .RE
1717
1718 .sp
1719 .ne 2
1720 .na
1721 \fB\fB-s\fR\fR
1722 .ad
1723 .sp .6
1724 .RS 4n
1725 Creates a sparse volume by omitting the automatic creation of a \fBrefreservation\fR. See \fBvolsize\fR in the Native Properties section for more information about sparse volumes. If this option is specified in conjunction with \fB-o\fR \fBrefreservation\fR, the \fBrefreservation\fR will be honored; this allows for a partial reservation on a sparse volume.
1726 .RE
1727
1728 .sp
1729 .ne 2
1730 .na
1731 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1732 .ad
1733 .sp .6
1734 .RS 4n
1735 Sets 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.
1736 .sp
1737 If \fB-o\fR \fBvolsize\fR is provided, the resulting behavior is undefined; it conflicts with the -V option, which is required in this mode.
1738 .RE
1739
1740 .sp
1741 .ne 2
1742 .na
1743 \fB\fB-b\fR \fIblocksize\fR\fR
1744 .ad
1745 .sp .6
1746 .RS 4n
1747 Equivalent 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.
1748 .RE
1749
1750 .RE
1751
1752 .sp
1753 .ne 2
1754 .na
1755 \fBzfs destroy\fR [\fB-fnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR
1756 .ad
1757 .sp .6
1758 .RS 4n
1759 Destroys 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).
1760 .sp
1761 .ne 2
1762 .na
1763 \fB\fB-r\fR\fR
1764 .ad
1765 .sp .6
1766 .RS 4n
1767 Recursively destroy all children.
1768 .RE
1769
1770 .sp
1771 .ne 2
1772 .na
1773 \fB\fB-R\fR\fR
1774 .ad
1775 .sp .6
1776 .RS 4n
1777 Recursively destroy all dependents, including cloned file systems outside the target hierarchy.
1778 .RE
1779
1780 .sp
1781 .ne 2
1782 .na
1783 \fB\fB-f\fR\fR
1784 .ad
1785 .sp .6
1786 .RS 4n
1787 Force an unmount of any file systems using the \fBzfs unmount -f\fR command. This option has no effect on non-file systems or unmounted file systems.
1788 .RE
1789
1790 .sp
1791 .ne 2
1792 .na
1793 \fB\fB-n\fR\fR
1794 .ad
1795 .sp .6
1796 .RS 4n
1797 Do a dry-run ("No-op") deletion. No data will be deleted. This is
1798 useful in conjunction with the \fB-v\fR or \fB-p\fR flags to determine what
1799 data would be deleted.
1800 .RE
1801
1802 .sp
1803 .ne 2
1804 .na
1805 \fB\fB-p\fR\fR
1806 .ad
1807 .sp .6
1808 .RS 4n
1809 Print machine-parsable verbose information about the deleted data.
1810 .RE
1811
1812 .sp
1813 .ne 2
1814 .na
1815 \fB\fB-v\fR\fR
1816 .ad
1817 .sp .6
1818 .RS 4n
1819 Print verbose information about the deleted data.
1820 .RE
1821 .sp
1822
1823 Extreme 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.
1824 .RE
1825
1826 .sp
1827 .ne 2
1828 .na
1829 \fBzfs destroy\fR [\fB-dnpRrv\fR] \fIfilesystem\fR|\fIvolume\fR@\fIsnap\fR[%\fIsnap\fR][,...]
1830 .ad
1831 .sp .6
1832 .RS 4n
1833 The specified snapshots are destroyed immediately if they have no clones and the user-initiated reference count is zero (i.e. there are no holds set with \fBzfs hold\fR). If these conditions are not met, this command returns an error, unless \fB-d\fR is supplied.
1834 .sp
1835 An inclusive range of snapshots may be specified by separating the
1836 first and last snapshots with a percent sign.
1837 The first and/or last snapshots may be left blank, in which case the
1838 filesystem's oldest or newest snapshot will be implied.
1839 .sp
1840 Multiple snapshots
1841 (or ranges of snapshots) of the same filesystem or volume may be specified
1842 in a comma-separated list of snapshots.
1843 Only the snapshot's short name (the
1844 part after the \fB@\fR) should be specified when using a range or
1845 comma-separated list to identify multiple snapshots.
1846 .sp
1847 .ne 2
1848 .na
1849 \fB\fB-d\fR\fR
1850 .ad
1851 .sp .6
1852 .RS 4n
1853 If a snapshot does not qualify for immediate destruction, rather than returning an error, 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.
1854 .RE
1855
1856 .sp
1857 .ne 2
1858 .na
1859 \fB\fB-r\fR\fR
1860 .ad
1861 .sp .6
1862 .RS 4n
1863 Destroy (or mark for deferred destruction) all snapshots with this name in descendent file systems.
1864 .RE
1865
1866 .sp
1867 .ne 2
1868 .na
1869 \fB\fB-R\fR\fR
1870 .ad
1871 .sp .6
1872 .RS 4n
1873 Recursively destroy all clones of these snapshots, including the clones,
1874 snapshots, and children. If this flag is specified, the \fB-d\fR flag will
1875 have no effect.
1876 .RE
1877
1878 .sp
1879 .ne 2
1880 .na
1881 \fB\fB-n\fR\fR
1882 .ad
1883 .sp .6
1884 .RS 4n
1885 Do a dry-run ("No-op") deletion. No data will be deleted. This is
1886 useful in conjunction with the \fB-v\fR or \fB-p\fR flags to determine what
1887 data would be deleted.
1888 .RE
1889
1890 .sp
1891 .ne 2
1892 .na
1893 \fB\fB-p\fR\fR
1894 .ad
1895 .sp .6
1896 .RS 4n
1897 Print machine-parsable verbose information about the deleted data.
1898 .RE
1899
1900 .sp
1901 .ne 2
1902 .na
1903 \fB\fB-v\fR\fR
1904 .ad
1905 .sp .6
1906 .RS 4n
1907 Print verbose information about the deleted data.
1908 .RE
1909
1910 .sp
1911 Extreme care should be taken when applying either the \fB-r\fR or the \fB-R\fR
1912 options, as they can destroy large portions of a pool and cause unexpected
1913 behavior for mounted file systems in use.
1914 .RE
1915
1916 .RE
1917
1918 .sp
1919 .ne 2
1920 .na
1921 \fBzfs destroy\fR \fIfilesystem\fR|\fIvolume\fR#\fIbookmark\fR
1922 .ad
1923 .sp .6
1924 .RS 4n
1925 The given bookmark is destroyed.
1926
1927 .RE
1928
1929 .sp
1930 .ne 2
1931 .na
1932 \fB\fBzfs snapshot\fR [\fB-r\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIfilesystem@snapname\fR|\fIvolume@snapname\fR\fR ...
1933 .ad
1934 .sp .6
1935 .RS 4n
1936 Creates snapshots with the given names. All previous modifications by successful system calls to the file system are part of the snapshots. Snapshots are taken atomically, so that all snapshots correspond to the same moment in time. See the "Snapshots" section for details.
1937 .sp
1938 .ne 2
1939 .na
1940 \fB\fB-r\fR\fR
1941 .ad
1942 .sp .6
1943 .RS 4n
1944 Recursively create snapshots of all descendent datasets.
1945 .RE
1946
1947 .sp
1948 .ne 2
1949 .na
1950 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
1951 .ad
1952 .sp .6
1953 .RS 4n
1954 Sets the specified property; see \fBzfs set\fR for details.
1955 .RE
1956
1957 .RE
1958
1959 .sp
1960 .ne 2
1961 .na
1962 \fB\fBzfs rollback\fR [\fB-rRf\fR] \fIsnapshot\fR\fR
1963 .ad
1964 .sp .6
1965 .RS 4n
1966 Roll 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 and bookmarks must be destroyed by specifying the \fB-r\fR option.
1967 .sp
1968 The \fB-rR\fR options do not recursively destroy the child snapshots of a recursive snapshot. Only direct snapshots of the specified filesystem are destroyed by either of these options. To completely roll back a recursive snapshot, you must rollback the individual child snapshots.
1969 .sp
1970 .ne 2
1971 .na
1972 \fB\fB-r\fR\fR
1973 .ad
1974 .sp .6
1975 .RS 4n
1976 Destroy any snapshots and bookmarks more recent than the one specified.
1977 .RE
1978
1979 .sp
1980 .ne 2
1981 .na
1982 \fB\fB-R\fR\fR
1983 .ad
1984 .sp .6
1985 .RS 4n
1986 Recursively destroy any more recent snapshots and bookmarks, as well as any clones of those snapshots.
1987 .RE
1988
1989 .sp
1990 .ne 2
1991 .na
1992 \fB\fB-f\fR\fR
1993 .ad
1994 .sp .6
1995 .RS 4n
1996 Used with the \fB-R\fR option to force an unmount (see \fBzfs unmount -f\fR) of any clone file systems that are to be destroyed.
1997 .RE
1998
1999 .RE
2000
2001 .sp
2002 .ne 2
2003 .na
2004 \fB\fBzfs clone\fR [\fB-p\fR] [\fB-o\fR \fIproperty\fR=\fIvalue\fR] ... \fIsnapshot\fR \fIfilesystem\fR|\fIvolume\fR\fR
2005 .ad
2006 .sp .6
2007 .RS 4n
2008 Creates 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.
2009 .sp
2010 .ne 2
2011 .na
2012 \fB\fB-p\fR\fR
2013 .ad
2014 .sp .6
2015 .RS 4n
2016 Creates all the non-existing parent datasets; see \fBzfs create\fR for details.
2017 .RE
2018
2019 .sp
2020 .ne 2
2021 .na
2022 \fB\fB-o\fR \fIproperty\fR=\fIvalue\fR\fR
2023 .ad
2024 .sp .6
2025 .RS 4n
2026 Sets the specified property; see \fBzfs set\fR for details.
2027 .RE
2028
2029 .RE
2030
2031 .sp
2032 .ne 2
2033 .na
2034 \fB\fBzfs promote\fR \fIclone-filesystem\fR\fR
2035 .ad
2036 .sp .6
2037 .RS 4n
2038 Promotes 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.
2039 .sp
2040 The 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 \fBzfs rename\fR command can be used to rename any conflicting snapshots.
2041 .RE
2042
2043 .sp
2044 .ne 2
2045 .na
2046 \fB\fBzfs rename\fR [\fB-f\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2047 .ad
2048 .br
2049 .na
2050 \fB\fBzfs rename\fR [\fB-fp\fR] \fIfilesystem\fR|\fIvolume\fR \fIfilesystem\fR|\fIvolume\fR\fR
2051 .ad
2052 .sp .6
2053 .RS 4n
2054 Renames 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.
2055 .sp
2056 .ne 2
2057 .na
2058 \fB\fB-p\fR\fR
2059 .ad
2060 .sp .6
2061 .RS 4n
2062 Creates all the nonexistent parent datasets; see \fBzfs create\fR for details.
2063 .RE
2064
2065 .sp
2066 .ne 2
2067 .na
2068 \fB\fB-f\fR\fR
2069 .ad
2070 .sp .6
2071 .RS 4n
2072 Force unmount any filesystems that need to be unmounted in the process.
2073 .RE
2074
2075 .RE
2076
2077 .sp
2078 .ne 2
2079 .na
2080 \fB\fBzfs rename\fR \fB-r\fR \fIsnapshot\fR \fIsnapshot\fR\fR
2081 .ad
2082 .sp .6
2083 .RS 4n
2084 Recursively rename the snapshots of all descendent datasets. Snapshots are the only dataset that can be renamed recursively.
2085 .RE
2086
2087 .sp
2088 .ne 2
2089 .na
2090 \fB\fBzfs\fR \fBlist\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-Hp\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|\fImountpoint\fR] ...\fR
2091 .ad
2092 .sp .6
2093 .RS 4n
2094 Lists the property information for the given datasets in tabular form. If a mount point is specified, it can be an absolute pathname or a relative pathname starting with "./" (e.g. \fBzfs list ./\fR). By default, all file systems and volumes are displayed. Snapshots are displayed if the pool's \fBlistsnapshots\fR property is \fBon\fR (the default is \fBoff\fR). When listing hundreds or thousands of snapshots performance can be improved by restricting the output to only the name. In that case, it is recommended to use \fB-o name -s name\fR. The following fields are displayed by default: \fBname, used, available, referenced, mountpoint\fR
2095 .sp
2096 .ne 2
2097 .na
2098 \fB\fB-H\fR\fR
2099 .ad
2100 .sp .6
2101 .RS 4n
2102 Used for scripting mode. Do not print headers and separate fields by a single tab instead of arbitrary white space.
2103 .RE
2104
2105 .sp
2106 .ne 2
2107 .na
2108 \fB\fB-p\fR\fR
2109 .sp .6
2110 .RS 4n
2111 Display numbers in parsable (exact) values.
2112 .RE
2113
2114 .sp
2115 .ne 2
2116 .na
2117 \fB\fB-r\fR\fR
2118 .ad
2119 .sp .6
2120 .RS 4n
2121 Recursively display any children of the dataset on the command line.
2122 .RE
2123
2124 .sp
2125 .ne 2
2126 .na
2127 \fB\fB-d\fR \fIdepth\fR\fR
2128 .ad
2129 .sp .6
2130 .RS 4n
2131 Recursively 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.
2132 .RE
2133
2134 .sp
2135 .ne 2
2136 .na
2137 \fB\fB-o\fR \fIproperty\fR\fR
2138 .ad
2139 .sp .6
2140 .RS 4n
2141 A comma-separated list of properties to display. The property must be:
2142 .RS +4
2143 .TP
2144 .ie t \(bu
2145 .el o
2146 One of the properties described in the "Native Properties" section
2147 .RE
2148 .RS +4
2149 .TP
2150 .ie t \(bu
2151 .el o
2152 A user property
2153 .RE
2154 .RS +4
2155 .TP
2156 .ie t \(bu
2157 .el o
2158 The value \fBname\fR to display the dataset name
2159 .RE
2160 .RS +4
2161 .TP
2162 .ie t \(bu
2163 .el o
2164 The 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.
2165 .RE
2166 .RE
2167
2168 .sp
2169 .ne 2
2170 .na
2171 \fB\fB-s\fR \fIproperty\fR\fR
2172 .ad
2173 .sp .6
2174 .RS 4n
2175 A 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.
2176 .sp
2177 The following is a list of sorting criteria:
2178 .RS +4
2179 .TP
2180 .ie t \(bu
2181 .el o
2182 Numeric types sort in numeric order.
2183 .RE
2184 .RS +4
2185 .TP
2186 .ie t \(bu
2187 .el o
2188 String types sort in alphabetical order.
2189 .RE
2190 .RS +4
2191 .TP
2192 .ie t \(bu
2193 .el o
2194 Types inappropriate for a row sort that row to the literal bottom, regardless of the specified ordering.
2195 .RE
2196 .RS +4
2197 .TP
2198 .ie t \(bu
2199 .el o
2200 If no sorting options are specified the existing behavior of \fBzfs list\fR is preserved.
2201 .RE
2202 .RE
2203
2204 .sp
2205 .ne 2
2206 .na
2207 \fB\fB-S\fR \fIproperty\fR\fR
2208 .ad
2209 .sp .6
2210 .RS 4n
2211 Same as the \fB-s\fR option, but sorts by property in descending order.
2212 .RE
2213
2214 .sp
2215 .ne 2
2216 .na
2217 \fB\fB-t\fR \fItype\fR\fR
2218 .ad
2219 .sp .6
2220 .RS 4n
2221 A comma-separated list of types to display, where \fItype\fR is one of \fBfilesystem\fR, \fBsnapshot\fR, \fBsnap\fR, \fBvolume\fR, \fBbookmark\fR, or \fBall\fR. For example, specifying \fB-t snapshot\fR displays only snapshots.
2222 .RE
2223
2224 .RE
2225
2226 .sp
2227 .ne 2
2228 .na
2229 \fB\fBzfs set\fR \fIproperty\fR=\fIvalue\fR[ \fIproperty\fR=\fIvalue\fR]...
2230 \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR|\fIbookmark\fR ...\fR
2231 .ad
2232 .sp .6
2233 .RS 4n
2234 Sets the property or list of properties to the given value(s) for each dataset.
2235 Only some properties can be edited. See the "Properties" section for more
2236 information on which properties can be set and acceptable values. User properties
2237 can be set on snapshots. For more information, see the "User Properties" section.
2238 .RE
2239
2240 .sp
2241 .ne 2
2242 \fB\fBzfs get\fR [\fB-r\fR|\fB-d\fR \fIdepth\fR] [\fB-Hp\fR] [\fB-o\fR \fIfield\fR[,...] [\fB-t\fR \fItype\fR[,...]] [\fB-s\fR \fIsource\fR[,...] "\fIall\fR" | \fIproperty\fR[,...] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR|\fIbookmark\fR ...\fR
2243 .ad
2244 .sp .6
2245 .RS 4n
2246 Displays 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:
2247 .sp
2248 .in +2
2249 .nf
2250 name Dataset name
2251 property Property name
2252 value Property value
2253 source Property source. Can either be local, default,
2254 temporary, inherited, received, or none (-).
2255 .fi
2256 .in -2
2257 .sp
2258
2259 All 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.
2260 .sp
2261 The special value \fBall\fR can be used to display all properties that apply to the given dataset's type (filesystem, volume snapshot, or bookmark).
2262 .sp
2263 .ne 2
2264 .na
2265 \fB\fB-r\fR\fR
2266 .ad
2267 .sp .6
2268 .RS 4n
2269 Recursively display properties for any children.
2270 .RE
2271
2272 .sp
2273 .ne 2
2274 .na
2275 \fB\fB-d\fR \fIdepth\fR\fR
2276 .ad
2277 .sp .6
2278 .RS 4n
2279 Recursively 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.
2280 .RE
2281
2282 .sp
2283 .ne 2
2284 .na
2285 \fB\fB-H\fR\fR
2286 .ad
2287 .sp .6
2288 .RS 4n
2289 Display 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.
2290 .RE
2291
2292 .sp
2293 .ne 2
2294 .na
2295 \fB\fB-o\fR \fIfield\fR\fR
2296 .ad
2297 .sp .6
2298 .RS 4n
2299 A comma-separated list of columns to display. \fBname,property,value,source\fR is the default value.
2300 .RE
2301
2302 .sp
2303 .ne 2
2304 .na
2305 \fB\fB-s\fR \fIsource\fR\fR
2306 .ad
2307 .sp .6
2308 .RS 4n
2309 A 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,received,temporary,none\fR. The default value is all sources.
2310 .RE
2311
2312 .sp
2313 .ne 2
2314 .na
2315 \fB\fB-p\fR\fR
2316 .ad
2317 .sp .6
2318 .RS 4n
2319 Display numbers in parsable (exact) values.
2320 .RE
2321
2322 .RE
2323
2324 .sp
2325 .ne 2
2326 .na
2327 \fB\fBzfs inherit\fR [\fB-rS\fR] \fIproperty\fR \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR ...\fR
2328 .ad
2329 .sp .6
2330 .RS 4n
2331 Clears the specified property, causing it to be inherited from an ancestor, restored to default if no ancestor has the property set, or with the \fB-S\fR option reverted to the received value if one exists. See the "Properties" section for a listing of default values, and details on which properties can be inherited.
2332 .sp
2333 .ne 2
2334 .na
2335 \fB\fB-r\fR\fR
2336 .ad
2337 .sp .6
2338 .RS 4n
2339 Recursively inherit the given property for all children.
2340 .RE
2341 .sp
2342 .ne 2
2343 .na
2344 \fB\fB-S\fR\fR
2345 .ad
2346 .sp .6
2347 .RS 4n
2348 Revert the property to the received value if one exists; otherwise operate as
2349 if the \fB-S\fR option was not specified.
2350 .RE
2351
2352 .RE
2353
2354 .sp
2355 .ne 2
2356 .na
2357 \fB\fBzfs upgrade\fR
2358 .ad
2359 .sp .6
2360 .RS 4n
2361 Displays a list of file systems that are not the most recent version.
2362 .RE
2363
2364 .sp
2365 .ne 2
2366 .na
2367 \fB\fBzfs upgrade\fR \fB-v\fR\fR
2368 .ad
2369 .sp .6
2370 .RS 4n
2371 Displays a list of file system versions.
2372 .RE
2373
2374
2375 .sp
2376 .ne 2
2377 .na
2378 \fB\fBzfs upgrade\fR [\fB-r\fR] [\fB-V\fR \fIversion\fR] [\fB-a\fR | \fIfilesystem\fR]\fR
2379 .ad
2380 .sp .6
2381 .RS 4n
2382 Upgrades 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.
2383 .sp
2384 In general, the file system version is independent of the pool version. See \fBzpool\fR(8) for information on the \fBzpool upgrade\fR command.
2385 .sp
2386 In 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.
2387 .sp
2388 .ne 2
2389 .na
2390 \fB\fB-a\fR\fR
2391 .ad
2392 .sp .6
2393 .RS 4n
2394 Upgrades all file systems on all imported pools.
2395 .RE
2396
2397 .sp
2398 .ne 2
2399 .na
2400 \fB\fIfilesystem\fR\fR
2401 .ad
2402 .sp .6
2403 .RS 4n
2404 Upgrades the specified file system.
2405 .RE
2406
2407 .sp
2408 .ne 2
2409 .na
2410 \fB\fB-r\fR\fR
2411 .ad
2412 .sp .6
2413 .RS 4n
2414 Upgrades the specified file system and all descendent file systems
2415 .RE
2416
2417 .sp
2418 .ne 2
2419 .na
2420 \fB\fB-V\fR \fIversion\fR\fR
2421 .ad
2422 .sp .6
2423 .RS 4n
2424 Upgrades 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.
2425 .RE
2426
2427 .RE
2428
2429 .sp
2430 .ne 2
2431 .na
2432 \fBzfs\fR \fBuserspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]]
2433 [\fB-s\fR \fIfield\fR] ...
2434 [\fB-S\fR \fIfield\fR] ...
2435 [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
2436 .ad
2437 .sp .6
2438 .RS 4n
2439 Displays space consumed by, and quotas on, each user in the specified
2440 filesystem or snapshot. This corresponds to the \fBuserused@\fR\fIuser\fR, \fBuserobjused@\fR\fIuser\fR,
2441 \fBuserquota@\fR\fIuser\fR, and \fBuserobjquota@\fR\fIuser\fR properties.
2442 .sp
2443 .ne 2
2444 .na
2445 \fB\fB-n\fR\fR
2446 .ad
2447 .sp .6
2448 .RS 4n
2449 Print numeric ID instead of user/group name.
2450 .RE
2451
2452 .sp
2453 .ne 2
2454 .na
2455 \fB\fB-H\fR\fR
2456 .ad
2457 .sp .6
2458 .RS 4n
2459 Display 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.
2460 .RE
2461
2462 .sp
2463 .ne 2
2464 .na
2465 \fB\fB-p\fR\fR
2466 .ad
2467 .sp .6
2468 .RS 4n
2469 Use exact (parsable) numeric output.
2470 .RE
2471
2472 .sp
2473 .ne 2
2474 .na
2475 \fB\fB-o\fR \fIfield\fR[,...]\fR
2476 .ad
2477 .sp .6
2478 .RS 4n
2479 Display only the specified fields from the following
2480 set: \fBtype, name, used, quota\fR. The default is to display all fields.
2481 .RE
2482
2483 .sp
2484 .ne 2
2485 .na
2486 \fB\fB-s\fR \fIfield\fR\fR
2487 .ad
2488 .sp .6
2489 .RS 4n
2490 Sort output by this field. The \fIs\fR and \fIS\fR flags may be specified
2491 multiple times to sort first by one field, then by another. The default is
2492 \fB-s type\fR \fB-s name\fR.
2493 .RE
2494
2495 .sp
2496 .ne 2
2497 .na
2498 \fB\fB-S\fR \fIfield\fR\fR
2499 .ad
2500 .sp .6
2501 .RS 4n
2502 Sort by this field in reverse order. See \fB-s\fR.
2503 .RE
2504
2505 .sp
2506 .ne 2
2507 .na
2508 \fB\fB-t\fR \fItype\fR[,...]\fR
2509 .ad
2510 .sp .6
2511 .RS 4n
2512 Print only the specified types from the following
2513 set: \fBall, posixuser, smbuser, posixgroup, smbgroup\fR. The default
2514 is \fB-t posixuser,smbuser\fR. The default can be changed to include group
2515 types.
2516 .RE
2517
2518 .sp
2519 .ne 2
2520 .na
2521 \fB\fB-i\fR\fR
2522 .ad
2523 .sp .6
2524 .RS 4n
2525 Translate SID to POSIX ID. The POSIX ID may be ephemeral if no mapping exists.
2526 Normal POSIX interfaces (for example, \fBstat\fR(2), \fBls\fR(1) \fB-l\fR) perform
2527 this translation, so the \fB-i\fR option allows the output from \fBzfs
2528 userspace\fR to be compared directly with those utilities. However, \fB-i\fR
2529 may lead to confusion if some files were created by an SMB user before a
2530 SMB-to-POSIX name mapping was established. In such a case, some files will be owned
2531 by the SMB entity and some by the POSIX entity. However, the \fB-i\fR option
2532 will report that the POSIX entity has the total usage and quota for both.
2533 .sp
2534 This option is not useful on Linux.
2535 .RE
2536
2537 .RE
2538
2539 .sp
2540 .ne 2
2541 .na
2542 \fBzfs\fR \fBgroupspace\fR [\fB-Hinp\fR] [\fB-o\fR \fIfield\fR[,...]]
2543 [\fB-s\fR \fIfield\fR] ...
2544 [\fB-S\fR \fIfield\fR] ...
2545 [\fB-t\fR \fItype\fR[,...]] \fIfilesystem\fR|\fIsnapshot\fR
2546 .ad
2547 .sp .6
2548 .RS 4n
2549 Displays space consumed by, and quotas on, each group in the specified
2550 filesystem or snapshot. This subcommand is identical to \fBzfs userspace\fR,
2551 except that the default types to display are \fB-t posixgroup,smbgroup\fR.
2552 .RE
2553
2554 .sp
2555 .ne 2
2556 .na
2557 \fB\fBzfs mount\fR\fR
2558 .ad
2559 .sp .6
2560 .RS 4n
2561 Displays all \fBZFS\fR file systems currently mounted.
2562 .RE
2563
2564 .sp
2565 .ne 2
2566 .na
2567 \fB\fBzfs mount\fR [\fB-vO\fR] [\fB-o\fR \fIoptions\fR] \fB-a\fR | \fIfilesystem\fR\fR
2568 .ad
2569 .sp .6
2570 .RS 4n
2571 Mounts \fBZFS\fR file systems. This is invoked automatically as part of the boot process.
2572 .sp
2573 .ne 2
2574 .na
2575 \fB\fB-o\fR \fIoptions\fR\fR
2576 .ad
2577 .sp .6
2578 .RS 4n
2579 An optional, comma-separated list of mount options to use temporarily for the
2580 duration of the mount. See the "Temporary Mount Point Properties" section for
2581 details.
2582 .RE
2583
2584 .sp
2585 .ne 2
2586 .na
2587 \fB\fB-O\fR\fR
2588 .ad
2589 .sp .6
2590 .RS 4n
2591 Allow mounting the filesystem even if the target directory is not empty.
2592 .sp
2593 On Solaris, the behavior of \fBzfs mount\fR matches \fBmount\fR and \fBzfs mount -O\fR matches \fBmount -O\fR. See \fBmount\fR(1M).
2594 .sp
2595 On Linux, this is the default for \fBmount\fR(8). In other words, \fBzfs mount -O\fR matches \fBmount\fR and there is no \fBmount\fR equivalent to a plain \fBzfs mount\fR.
2596 .RE
2597
2598 .sp
2599 .ne 2
2600 .na
2601 \fB\fB-v\fR\fR
2602 .ad
2603 .sp .6
2604 .RS 4n
2605 Report mount progress. This is intended for use with \fBzfs mount -a\fR on a system with a significant number of filesystems.
2606 .RE
2607
2608 .sp
2609 .ne 2
2610 .na
2611 \fB\fB-a\fR\fR
2612 .ad
2613 .sp .6
2614 .RS 4n
2615 Mount all available \fBZFS\fR file systems. Invoked automatically as part of
2616 the boot process.
2617 .RE
2618
2619 .sp
2620 .ne 2
2621 .na
2622 \fB\fIfilesystem\fR\fR
2623 .ad
2624 .sp .6
2625 .RS 4n
2626 Mount the specified filesystem.
2627 .RE
2628
2629 .RE
2630
2631 .sp
2632 .ne 2
2633 .na
2634 \fB\fBzfs unmount\fR [\fB-f\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2635 .ad
2636 .sp .6
2637 .RS 4n
2638 Unmounts currently mounted \fBZFS\fR file systems. Invoked automatically as part of the shutdown process.
2639 .sp
2640 .ne 2
2641 .na
2642 \fB\fB-f\fR\fR
2643 .ad
2644 .sp .6
2645 .RS 4n
2646 Forcefully unmount the file system, even if it is currently in use.
2647 .RE
2648
2649 .sp
2650 .ne 2
2651 .na
2652 \fB\fB-a\fR\fR
2653 .ad
2654 .sp .6
2655 .RS 4n
2656 Unmount all available \fBZFS\fR file systems. Invoked automatically as part of the shutdown process.
2657 .RE
2658
2659 .sp
2660 .ne 2
2661 .na
2662 \fIfilesystem\fR|\fImountpoint\fR
2663 .ad
2664 .sp .6
2665 .RS 4n
2666 Unmount the specified filesystem. The command can also be given a path to a \fBZFS\fR file system mount point on the system.
2667 .RE
2668
2669 .RE
2670
2671 .sp
2672 .ne 2
2673 .na
2674 \fB\fBzfs share\fR [\fBnfs\fR|\fBsmb\fR] \fB-a\fR | \fIfilesystem\fR\fR
2675 .ad
2676 .sp .6
2677 .RS 4n
2678 Shares available \fBZFS\fR file systems.
2679 .sp
2680 .ne 2
2681 .na
2682 \fB\fB-a\fR\fR
2683 .ad
2684 .sp .6
2685 .RS 4n
2686 Share all available \fBZFS\fR file systems. Invoked automatically as part of the boot process. Additionally if one of \fBnfs\fR|\fBsmb\fR protocols is specified only share file systems whose \fBsharenfs\fR|\fBsharesmb\fR is set.
2687 .RE
2688
2689 .sp
2690 .ne 2
2691 .na
2692 \fB\fIfilesystem\fR\fR
2693 .ad
2694 .sp .6
2695 .RS 4n
2696 Share 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.
2697 .RE
2698
2699 .RE
2700
2701 .sp
2702 .ne 2
2703 .na
2704 \fB\fBzfs unshare\fR [\fBnfs\fR|\fBsmb\fR] \fB-a\fR | \fIfilesystem\fR|\fImountpoint\fR\fR
2705 .ad
2706 .sp .6
2707 .RS 4n
2708 Unshares currently shared \fBZFS\fR file systems. This is invoked automatically as part of the shutdown process. Additionally if one of \fBnfs\fR|\fBsmb\fR is specified unshare only file systems currently shared by that protocol.
2709 .sp
2710 .ne 2
2711 .na
2712 \fB\fB-a\fR\fR
2713 .ad
2714 .sp .6
2715 .RS 4n
2716 Unshare all available \fBZFS\fR file systems. Invoked automatically as part of the boot process.
2717 .RE
2718
2719 .sp
2720 .ne 2
2721 .na
2722 \fB\fIfilesystem\fR|\fImountpoint\fR\fR
2723 .ad
2724 .sp .6
2725 .RS 4n
2726 Unshare the specified filesystem. The command can also be given a path to a \fBZFS\fR file system shared on the system.
2727 .RE
2728
2729 .RE
2730
2731 .sp
2732 .ne 2
2733 .na
2734 \fB\fBzfs bookmark\fR \fIsnapshot\fR \fIbookmark\fR\fR
2735 .ad
2736 .sp .6
2737 .RS 4n
2738 Creates a bookmark of the given snapshot. Bookmarks mark the point in time
2739 when the snapshot was created, and can be used as the incremental source for
2740 a \fBzfs send\fR command.
2741 .sp
2742 This feature must be enabled to be used.
2743 See \fBzpool-features\fR(5) for details on ZFS feature flags and the
2744 \fBbookmarks\fR feature.
2745 .RE
2746
2747
2748 .RE
2749 .sp
2750 .ne 2
2751 .na
2752 \fBzfs send\fR [\fB-DnPpRveLc\fR] [\fB-\fR[\fBi\fR|\fBI\fR] \fIsnapshot\fR] \fIsnapshot\fR
2753 .ad
2754 .sp .6
2755 .RS 4n
2756 Creates a stream representation of the (second, if \fB-i\fR is specified) \fIsnapshot\fR, which is written to standard output. The output can be redirected to a file or to a pipe (for example, using \fBssh\fR(1) to send it to a different system with \fBzfs receive\fR). By default, a full stream is generated; specifying \fB-i\fR or \fB-I\fR changes this behavior.
2757 .sp
2758 .ne 2
2759 .na
2760 \fB\fB-i\fR \fIsnapshot\fR\fR
2761 .ad
2762 .sp .6
2763 .RS 4n
2764 Generate an incremental stream from the first \fIsnapshot\fR (the incremental source) to the second \fIsnapshot\fR (the incremental target). The incremental source can be specified as the last component of the snapshot name (the \fB@\fR character and following) and it is assumed to be from the same file system as the incremental target.
2765 .sp
2766 If 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).
2767 .RE
2768
2769 .sp
2770 .ne 2
2771 .na
2772 \fB\fB-I\fR \fIsnapshot\fR\fR
2773 .ad
2774 .sp .6
2775 .RS 4n
2776 Generate 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 may be specified as with the \fB-i\fR option.
2777 .RE
2778
2779 .sp
2780 .ne 2
2781 .na
2782 \fB\fB-R\fR, \fB--replicate\fR\fR
2783 .ad
2784 .sp .6
2785 .RS 4n
2786 Generate 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.
2787 .sp
2788 If 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.
2789 .RE
2790
2791 .sp
2792 .ne 2
2793 .na
2794 \fB\fB-D\fR, \fB--dedup\fR\fR
2795 .ad
2796 .sp .6
2797 .RS 4n
2798 Generate a deduplicated stream. Blocks which would have been sent multiple times in the send stream will only be sent once. The receiving system must also support this feature to receive a deduplicated stream. This flag can be used regardless of the dataset's dedup property, but performance will be much better if the filesystem uses a dedup-capable checksum (eg. sha256).
2799 .RE
2800
2801 .sp
2802 .ne 2
2803 .na
2804 \fB\fB-L\fR, \fB--large-block\fR\fR
2805 .ad
2806 .sp .6
2807 .RS 4n
2808 Generate a stream which may contain blocks larger than 128KiB. This flag
2809 has no effect if the \fBlarge_blocks\fR pool feature is disabled, or if
2810 the \fRrecordsize\fR property of this filesystem has never been set above
2811 128KiB. The receiving system must have the \fBlarge_blocks\fR pool feature
2812 enabled as well. See \fBzpool-features\fR(5) for details on ZFS feature
2813 flags and the \fBlarge_blocks\fR feature.
2814 .RE
2815
2816 .sp
2817 .ne 2
2818 .na
2819 \fB\fB-e\fR, \fB--embed\fR\fR
2820 .ad
2821 .sp .6
2822 .RS 4n
2823 Generate a more compact stream by using WRITE_EMBEDDED records for blocks
2824 which are stored more compactly on disk by the \fBembedded_data\fR pool
2825 feature. This flag has no effect if the \fBembedded_data\fR feature is
2826 disabled. The receiving system must have the \fBembedded_data\fR feature
2827 enabled. If the \fBlz4_compress\fR feature is active on the sending system,
2828 then the receiving system must have that feature enabled as well. See
2829 \fBzpool-features\fR(5) for details on ZFS feature flags and the
2830 \fBembedded_data\fR feature.
2831 .RE
2832
2833 .sp
2834 .ne 2
2835 .na
2836 \fB\fB-c\fR, \fB--compressed\fR\fR
2837 .ad
2838 .sp .6
2839 .RS 4n
2840 Generate a more compact stream by using compressed WRITE records for blocks
2841 which are compressed on disk and in memory (see the \fBcompression\fR property
2842 for details). If the \fBlz4_compress\fR feature is active on the sending
2843 system, then the receiving system must have that feature enabled as well. If
2844 the \fBlarge_blocks\fR feature is enabled on the sending system but the \fB-L\fR
2845 option is not supplied in conjunction with \fB-c\fR, then the data will be
2846 decompressed before sending so it can be split into smaller block sizes.
2847 .RE
2848
2849 .sp
2850 .ne 2
2851 .na
2852 \fB\fB-p\fR, \fB--props\fR\fR
2853 .ad
2854 .sp .6
2855 .RS 4n
2856 Include the dataset's properties in the stream. This flag is implicit when -R is specified. The receiving system must also support this feature.
2857 .RE
2858
2859 .sp
2860 .ne 2
2861 .na
2862 \fB\fB-n\fR, \fB--dryrun\fR\fR
2863 .ad
2864 .sp .6
2865 .RS 4n
2866 Do a dry-run ("No-op") send. Do not generate any actual send data. This is
2867 useful in conjunction with the \fB-v\fR or \fB-P\fR flags to determine what
2868 data will be sent. In this case, the verbose output will be written to
2869 standard output (contrast with a non-dry-run, where the stream is written
2870 to standard output and the verbose output goes to standard error).
2871 .RE
2872
2873 .sp
2874 .ne 2
2875 .na
2876 \fB\fB-P\fR, \fB--parsable\fR\fR
2877 .ad
2878 .sp .6
2879 .RS 4n
2880 Print machine-parsable verbose information about the stream package generated.
2881 .RE
2882
2883 .sp
2884 .ne 2
2885 .na
2886 \fB\fB-v\fR, \fB--verbose\fR\fR
2887 .ad
2888 .sp .6
2889 .RS 4n
2890 Print verbose information about the stream package generated. This information
2891 includes a per-second report of how much data has been sent.
2892 .RE
2893
2894 The format of the stream is committed. You will be able to receive your streams on future versions of \fBZFS\fR.
2895 .RE
2896
2897 .RE
2898 .sp
2899 .ne 2
2900 .na
2901 \fBzfs send\fR [\fB-Lec\fR] [\fB-i\fR \fIsnapshot\fR|\fIbookmark\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR
2902 .ad
2903 .sp .6
2904 .RS 4n
2905 Generate a send stream, which may be of a filesystem, and may be
2906 incremental from a bookmark. If the destination is a filesystem or volume,
2907 the pool must be read-only, or the filesystem must not be mounted. When the
2908 stream generated from a filesystem or volume is received, the default snapshot
2909 name will be "--head--".
2910
2911 .sp
2912 .ne 2
2913 .na
2914 \fB\fB-L\fR, \fB--large-block\fR\fR
2915 .ad
2916 .sp .6
2917 .RS 4n
2918 Generate a stream which may contain blocks larger than 128KiB. This flag
2919 has no effect if the \fBlarge_blocks\fR pool feature is disabled, or if
2920 the \fRrecordsize\fR property of this filesystem has never been set above
2921 128KiB. The receiving system must have the \fBlarge_blocks\fR pool feature
2922 enabled as well. See \fBzpool-features\fR(5) for details on ZFS feature
2923 flags and the \fBlarge_blocks\fR feature.
2924 .RE
2925
2926 .sp
2927 .ne 2
2928 .na
2929 \fB\fB-e\fR, \fB--embed\fR\fR
2930 .ad
2931 .sp .6
2932 .RS 4n
2933 Generate a more compact stream by using WRITE_EMBEDDED records for blocks
2934 which are stored more compactly on disk by the \fBembedded_data\fR pool
2935 feature. This flag has no effect if the \fBembedded_data\fR feature is
2936 disabled. The receiving system must have the \fBembedded_data\fR feature
2937 enabled. If the \fBlz4_compress\fR feature is active on the sending system,
2938 then the receiving system must have that feature enabled as well. See
2939 \fBzpool-features\fR(5) for details on ZFS feature flags and the
2940 \fBembedded_data\fR feature.
2941 .RE
2942
2943 .sp
2944 .ne 2
2945 .na
2946 \fB\fB-c\fR, \fB--compressed\fR\fR
2947 .ad
2948 .sp .6
2949 .RS 4n
2950 Generate a more compact stream by using compressed WRITE records for blocks
2951 which are compressed on disk and in memory (see the \fBcompression\fR property
2952 for details). If the \fBlz4_compress\fR feature is active on the sending
2953 system, then the receiving system must have that feature enabled as well. If
2954 the \fBlarge_blocks\fR feature is enabled on the sending system but the \fB-L\fR
2955 option is not supplied in conjunction with \fB-c\fR, then the data will be
2956 decompressed before sending so it can be split into smaller block sizes.
2957 .RE
2958
2959 .sp
2960 .ne 2
2961 .na
2962 \fB-i\fR \fIsnapshot\fR|\fIbookmark\fR
2963 .ad
2964 .sp .6
2965 .RS 4n
2966 Generate an incremental send stream. The incremental source must be an earlier snapshot in the destination's history. It will commonly be an earlier snapshot in the destination's filesystem, in which case it can be specified as the last component of the name (the \fB#\fR or \fB@\fR character and following).
2967 .sp
2968 If the incremental target is a clone, the incremental source can be the origin snapshot, or an earlier snapshot in the origin's filesystem, or the origin's origin, etc.
2969 .RE
2970
2971 .RE
2972 .sp
2973 .ne 2
2974 .na
2975 \fB\fBzfs send\fR [\fB-Penv\fR] \fB-t\fR \fIreceive_resume_token\fR\fR
2976 .ad
2977 .sp .6
2978 .RS 4n
2979 Creates a send stream which resumes an interrupted receive. The \fIreceive_resume_token\fR is the value of this property on the filesystem or volume that was being received into. See the documentation for \fBzfs receive -s\fR for more details.
2980
2981 .RE
2982
2983 .RE
2984 .sp
2985 .ne 2
2986 .na
2987 \fB\fBzfs receive\fR [\fB-Fnsuv\fR] [\fB-o origin\fR=\fIsnapshot\fR] \fIfilesystem\fR|\fIvolume\fR|\fIsnapshot\fR\fR
2988 .ad
2989 .br
2990 .na
2991 \fB\fBzfs receive\fR [\fB-Fnsuv\fR] [\fB-d\fR|\fB-e\fR] [\fB-o origin\fR=\fIsnapshot\fR] \fIfilesystem\fR\fR
2992 .ad
2993 .sp .6
2994 .RS 4n
2995 Creates 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.
2996 .sp
2997 If 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.
2998 .sp
2999 When 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.
3000 .sp
3001 The name of the snapshot (and file system, if a full stream is received) that this subcommand creates depends on the argument type and the use of the \fB-d\fR or \fB-e\fR options.
3002 .sp
3003 If 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 neither of the \fB-d\fR or \fB-e\fR options are specified, the provided target snapshot name is used exactly as provided.
3004 .sp
3005 The \fB-d\fR and \fB-e\fR options cause the file system name of the target snapshot to be determined by appending a portion of the sent snapshot's name to the specified target \fIfilesystem\fR. If the \fB-d\fR option is specified, all but the first element of the sent snapshot's file system path (usually the pool name) is used and any required intermediate file systems within the specified one are created. If the \fB-e\fR option is specified, then only the last element of the sent snapshot's file system name (i.e. the name of the source file system itself) is used as the target file system name.
3006 .sp
3007 .ne 2
3008 .na
3009 \fB\fB-F\fR\fR
3010 .ad
3011 .sp .6
3012 .RS 4n
3013 Force 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.
3014 .RE
3015
3016 .sp
3017 .ne 2
3018 .mk
3019 .na
3020 \fB\fB-n\fR\fR
3021 .ad
3022 .sp .6
3023 .RS 4n
3024 Do 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.
3025 .RE
3026
3027 .sp
3028 .ne 2
3029 .na
3030 \fB\fB-s\fR\fR
3031 .ad
3032 .sp .6
3033 .RS 4n
3034 If the receive is interrupted, save the partially received state, rather than deleting it. Interruption may be due to premature termination of the stream (e.g. due to network failure or failure of the remote system if the stream is being read over a network connection), a checksum error in the stream, termination of the \fBzfs receive\fR process, or unclean shutdown of the system.
3035 .sp
3036 The receive can be resumed with a stream generated by \fBzfs send -t\fR token, where the \fItoken\fR is the value of the \fBreceive_resume_token\fR property of the filesystem or volume which is received into.
3037 .sp
3038 To use this flag, the storage pool must have the \fBextensible_dataset\fR feature enabled. See \fBzpool-features\fR(5) for details on ZFS feature flags.
3039 .RE
3040
3041 .sp
3042 .ne 2
3043 .na
3044 \fB\fB-u\fR\fR
3045 .ad
3046 .sp .6
3047 .RS 4n
3048 Do not mount the file system that is associated with the received stream.
3049 .RE
3050
3051 .sp
3052 .ne 2
3053 .na
3054 \fB\fB-v\fR\fR
3055 .ad
3056 .sp .6
3057 .RS 4n
3058 Print verbose information about the stream and the time required to perform the receive operation.
3059 .RE
3060
3061 .sp
3062 .ne 2
3063 .na
3064 \fB\fB-d\fR\fR
3065 .ad
3066 .sp .6
3067 .RS 4n
3068 Discard the first element of the sent snapshot's file system name, using the remaining elements to determine the name of the target file system for the new snapshot as described in the paragraph above.
3069 .RE
3070
3071 .sp
3072 .ne 2
3073 .na
3074 \fB\fB-e\fR\fR
3075 .ad
3076 .sp .6
3077 .RS 4n
3078 Discard all but the last element of the sent snapshot's file system name, using that element to determine the name of the target file system for the new snapshot as described in the paragraph above.
3079 .RE
3080
3081 .sp
3082 .ne 2
3083 .na
3084 \fB\fB-o\fR \fBorigin\fR=\fIsnapshot\fR
3085 .ad
3086 .sp .6
3087 .RS 4n
3088 Forces the stream to be received as a clone of the given snapshot.
3089 If the stream is a full send stream, this will create the filesystem
3090 described by the stream as a clone of the specified snapshot. Which
3091 snapshot was specified will not affect the success or failure of the
3092 receive, as long as the snapshot does exist. If the stream is an
3093 incremental send stream, all the normal verification will be performed.
3094 .RE
3095
3096 .RE
3097
3098 .sp
3099 .ne 2
3100 .na
3101 \fB\fBzfs receive\fR [\fB-A\fR] \fIfilesystem\fR|\fIvolume\fR
3102 .ad
3103 .sp .6
3104 .RS 4n
3105 Abort an interrupted \fBzfs receive \fB-s\fR\fR, deleting its saved partially received state.
3106
3107 .RE
3108
3109 .sp
3110 .ne 2
3111 .na
3112 \fB\fBzfs allow\fR \fIfilesystem\fR | \fIvolume\fR\fR
3113 .ad
3114 .sp .6
3115 .RS 4n
3116 Displays permissions that have been delegated on the specified filesystem or volume. See the other forms of \fBzfs allow\fR for more information.
3117 .sp
3118 Delegations are supported under Linux with the exception of \fBmount\fR,
3119 \fBunmount\fR, \fBmountpoint\fR, \fBcanmount\fR, \fBrename\fR, and \fBshare\fR.
3120 These permissions cannot be delegated because the Linux \fBmount(8)\fR command
3121 restricts modifications of the global namespace to the root user.
3122 .RE
3123
3124 .sp
3125 .ne 2
3126 .na
3127 \fB\fBzfs allow\fR [\fB-ldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR| \fIvolume\fR\fR
3128 .ad
3129 .br
3130 .na
3131 \fB\fBzfs allow\fR [\fB-ld\fR] \fB-e\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR | \fIvolume\fR\fR
3132 .ad
3133 .sp .6
3134 .RS 4n
3135 Delegates \fBZFS\fR administration permission for the file systems to non-privileged users.
3136 .sp
3137 .ne 2
3138 .na
3139 \fB[\fB-ug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...]\fR
3140 .ad
3141 .sp .6
3142 .RS 4n
3143 Specifies 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.
3144 .RE
3145
3146 .sp
3147 .ne 2
3148 .na
3149 \fB[\fB-e\fR] \fIperm\fR|@\fIsetname\fR[,...]\fR
3150 .ad
3151 .sp .6
3152 .RS 4n
3153 Specifies 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.
3154 .RE
3155
3156 .sp
3157 .ne 2
3158 .na
3159 \fB[\fB-ld\fR] \fIfilesystem\fR|\fIvolume\fR\fR
3160 .ad
3161 .sp .6
3162 .RS 4n
3163 Specifies 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.
3164 .RE
3165
3166 .RE
3167
3168 .sp
3169 .LP
3170 Permissions are generally the ability to use a \fBzfs\fR subcommand or change a property. The following permissions are available:
3171 .sp
3172 .in +2
3173 .nf
3174 NAME TYPE NOTES
3175 allow subcommand Must also have the permission that is being
3176 allowed
3177 clone subcommand Must also have the 'create' ability and 'mount'
3178 ability in the origin file system
3179 create subcommand Must also have the 'mount' ability
3180 destroy subcommand Must also have the 'mount' ability
3181 diff subcommand Allows lookup of paths within a dataset
3182 given an object number, and the ability to
3183 create snapshots necessary to 'zfs diff'.
3184 mount subcommand Allows mount/umount of ZFS datasets
3185 promote subcommand Must also have the 'mount'
3186 and 'promote' ability in the origin file system
3187 receive subcommand Must also have the 'mount' and 'create' ability
3188 rename subcommand Must also have the 'mount' and 'create'
3189 ability in the new parent
3190 rollback subcommand Must also have the 'mount' ability
3191 send subcommand
3192 share subcommand Allows sharing file systems over NFS or SMB
3193 protocols
3194 snapshot subcommand Must also have the 'mount' ability
3195 groupobjquota other Allows accessing any groupobjquota@... property
3196 groupquota other Allows accessing any groupquota@... property
3197 groupobjused other Allows reading any groupobjused@... property
3198 groupused other Allows reading any groupused@... property
3199 userprop other Allows changing any user property
3200 userobjquota other Allows accessing any userobjquota@... property
3201 userquota other Allows accessing any userquota@... property
3202 userobjused other Allows reading any userobjused@... property
3203 userused other Allows reading any userused@... property
3204
3205 acltype property
3206 aclinherit property
3207 atime property
3208 canmount property
3209 casesensitivity property
3210 checksum property
3211 compression property
3212 copies property
3213 dedup property
3214 devices property
3215 exec property
3216 filesystem_limit property
3217 logbias property
3218 mlslabel property
3219 mountpoint property
3220 nbmand property
3221 normalization property
3222 primarycache property
3223 quota property
3224 readonly property
3225 recordsize property
3226 refquota property
3227 refreservation property
3228 reservation property
3229 secondarycache property
3230 setuid property
3231 sharenfs property
3232 sharesmb property
3233 snapdir property
3234 snapshot_limit property
3235 utf8only property
3236 version property
3237 volblocksize property
3238 volsize property
3239 vscan property
3240 xattr property
3241 zoned property
3242 .fi
3243 .in -2
3244 .sp
3245
3246 .sp
3247 .ne 2
3248 .na
3249 \fB\fBzfs allow\fR \fB-c\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR\fR
3250 .ad
3251 .sp .6
3252 .RS 4n
3253 Sets "create time" permissions. These permissions are granted (locally) to the creator of any newly-created descendent file system.
3254 .RE
3255
3256 .sp
3257 .ne 2
3258 .na
3259 \fB\fBzfs allow\fR \fB-s\fR @\fIsetname\fR \fIperm\fR|@\fIsetname\fR[,...] \fIfilesystem\fR|\fIvolume\fR\fR
3260 .ad
3261 .sp .6
3262 .RS 4n
3263 Defines 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.
3264 .RE
3265
3266 .sp
3267 .ne 2
3268 .na
3269 \fB\fBzfs unallow\fR [\fB-rldug\fR] "\fIeveryone\fR"|\fIuser\fR|\fIgroup\fR[,...] [\fIperm\fR|@\fIsetname\fR[, ...]] \fIfilesystem\fR|\fIvolume\fR\fR
3270 .ad
3271 .br
3272 .na
3273 \fB\fBzfs unallow\fR [\fB-rld\fR] \fB-e\fR [\fIperm\fR|@\fIsetname\fR [,...]] \fIfilesystem\fR|\fIvolume\fR\fR
3274 .ad
3275 .br
3276 .na
3277 \fB\fBzfs unallow\fR [\fB-r\fR] \fB-c\fR [\fIperm\fR|@\fIsetname\fR[,...]]\fR \fB\fIfilesystem\fR|\fIvolume\fR\fR
3278 .ad
3279 .sp .6
3280 .RS 4n
3281 Removes 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.
3282 .sp
3283 .ne 2
3284 .na
3285 \fB\fB-r\fR\fR
3286 .ad
3287 .sp .6
3288 .RS 4n
3289 Recursively remove the permissions from this file system and all descendents.
3290 .RE
3291
3292 .RE
3293
3294 .sp
3295 .ne 2
3296 .na
3297 \fB\fBzfs unallow\fR [\fB-r\fR] \fB-s\fR @\fIsetname\fR [\fIperm\fR|@\fIsetname\fR[,...]]\fR \fB\fIfilesystem\fR|\fIvolume\fR\fR
3298 .ad
3299 .sp .6
3300 .RS 4n
3301 Removes permissions from a permission set. If no permissions are specified, then all permissions are removed, thus removing the set entirely.
3302 .RE
3303
3304 .sp
3305 .ne 2
3306 .na
3307 \fB\fBzfs hold\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
3308 .ad
3309 .sp .6
3310 .RS 4n
3311 Adds 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.
3312 .sp
3313 If a hold exists on a snapshot, attempts to destroy that snapshot by using the \fBzfs destroy\fR command return \fBEBUSY\fR.
3314 .sp
3315 .ne 2
3316 .na
3317 \fB\fB-r\fR\fR
3318 .ad
3319 .sp .6
3320 .RS 4n
3321 Specifies that a hold with the given tag is applied recursively to the snapshots of all descendent file systems.
3322 .RE
3323
3324 .RE
3325
3326 .sp
3327 .ne 2
3328 .na
3329 \fB\fBzfs holds\fR [\fB-r\fR] \fIsnapshot\fR...\fR
3330 .ad
3331 .sp .6
3332 .RS 4n
3333 Lists all existing user references for the given snapshot or snapshots.
3334 .sp
3335 .ne 2
3336 .na
3337 \fB\fB-r\fR\fR
3338 .ad
3339 .sp .6
3340 .RS 4n
3341 Lists the holds that are set on the named descendent snapshots, in addition to listing the holds on the named snapshot.
3342 .RE
3343
3344 .RE
3345
3346 .sp
3347 .ne 2
3348 .na
3349 \fB\fBzfs release\fR [\fB-r\fR] \fItag\fR \fIsnapshot\fR...\fR
3350 .ad
3351 .sp .6
3352 .RS 4n
3353 Removes a single reference, named with the \fItag\fR argument, from the specified snapshot or snapshots. The tag must already exist for each snapshot.
3354 .sp
3355 .ne 2
3356 .na
3357 \fB\fB-r\fR\fR
3358 .ad
3359 .sp .6
3360 .RS 4n
3361 Recursively releases a hold with the given tag on the snapshots of all descendent file systems.
3362 .RE
3363
3364 .RE
3365
3366 .sp
3367 .ne 2
3368 .na
3369 \fB\fBzfs diff\fR [\fB-FHt\fR] \fIsnapshot\fR \fIsnapshot\fR|\fIfilesystem\fR
3370 .ad
3371 .sp .6
3372 .RS 4n
3373 Display the difference between a snapshot of a given filesystem and another
3374 snapshot of that filesystem from a later time or the current contents of the
3375 filesystem. The first column is a character indicating the type of change,
3376 the other columns indicate pathname, new pathname (in case of rename), change
3377 in link count, and optionally file type and/or change time.
3378
3379 The types of change are:
3380 .in +2
3381 .nf
3382 - The path has been removed
3383 + The path has been created
3384 M The path has been modified
3385 R The path has been renamed
3386 .fi
3387 .in -2
3388 .sp
3389 .ne 2
3390 .na
3391 \fB-F\fR
3392 .ad
3393 .sp .6
3394 .RS 4n
3395 Display an indication of the type of file, in a manner similar to the \fB-F\fR
3396 option of \fBls\fR(1).
3397 .in +2
3398 .nf
3399 B Block device
3400 C Character device
3401 / Directory
3402 > Door
3403 | Named pipe
3404 @ Symbolic link
3405 P Event port
3406 = Socket
3407 F Regular file
3408 .fi
3409 .in -2
3410 .RE
3411 .sp
3412 .ne 2
3413 .na
3414 \fB-H\fR
3415 .ad
3416 .sp .6
3417 .RS 4n
3418 Give more parsable tab-separated output, without header lines and without arrows.
3419 .RE
3420 .sp
3421 .ne 2
3422 .na
3423 \fB-t\fR
3424 .ad
3425 .sp .6
3426 .RS 4n
3427 Display the path's inode change time as the first column of output.
3428 .RE
3429
3430 .SH EXAMPLES
3431 .LP
3432 \fBExample 1 \fRCreating a ZFS File System Hierarchy
3433 .sp
3434 .LP
3435 The 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.
3436
3437 .sp
3438 .in +2
3439 .nf
3440 # \fBzfs create pool/home\fR
3441 # \fBzfs set mountpoint=/export/home pool/home\fR
3442 # \fBzfs create pool/home/bob\fR
3443 .fi
3444 .in -2
3445 .sp
3446
3447 .LP
3448 \fBExample 2 \fRCreating a ZFS Snapshot
3449 .sp
3450 .LP
3451 The following command creates a snapshot named \fBbackup\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.
3452
3453 .sp
3454 .in +2
3455 .nf
3456 # \fBzfs snapshot pool/home/bob@backup\fR
3457 .fi
3458 .in -2
3459 .sp
3460
3461 .LP
3462 \fBExample 3 \fRCreating and Destroying Multiple Snapshots
3463 .sp
3464 .LP
3465 The following command creates snapshots named \fBbackup\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.
3466
3467 .sp
3468 .in +2
3469 .nf
3470 # \fBzfs snapshot -r pool/home@backup\fR
3471 # \fBzfs destroy -r pool/home@backup\fR
3472 .fi
3473 .in -2
3474 .sp
3475
3476 .LP
3477 \fBExample 4 \fRDisabling and Enabling File System Compression
3478 .sp
3479 .LP
3480 The 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.
3481
3482 .sp
3483 .in +2
3484 .nf
3485 # \fBzfs set compression=off pool/home\fR
3486 # \fBzfs set compression=on pool/home/anne\fR
3487 .fi
3488 .in -2
3489 .sp
3490
3491 .LP
3492 \fBExample 5 \fRListing ZFS Datasets
3493 .sp
3494 .LP
3495 The following command lists all active file systems and volumes in the system. Snapshots are displayed if the pool's \fBlistsnapshots\fR property is \fBon\fR (the default is \fBoff\fR). See \fBzpool\fR(8) for more information on pool properties.
3496
3497 .sp
3498 .in +2
3499 .nf
3500 # \fBzfs list\fR
3501 NAME USED AVAIL REFER MOUNTPOINT
3502 pool 450K 457G 18K /pool
3503 pool/home 315K 457G 21K /export/home
3504 pool/home/anne 18K 457G 18K /export/home/anne
3505 pool/home/bob 276K 457G 276K /export/home/bob
3506 .fi
3507 .in -2
3508 .sp
3509
3510 .LP
3511 \fBExample 6 \fRSetting a Quota on a ZFS File System
3512 .sp
3513 .LP
3514 The following command sets a quota of 50 GiB for \fBpool/home/bob\fR.
3515
3516 .sp
3517 .in +2
3518 .nf
3519 # \fBzfs set quota=50G pool/home/bob\fR
3520 .fi
3521 .in -2
3522 .sp
3523
3524 .LP
3525 \fBExample 7 \fRListing ZFS Properties
3526 .sp
3527 .LP
3528 The following command lists all properties for \fBpool/home/bob\fR.
3529
3530 .sp
3531 .in +2
3532 .nf
3533 # \fBzfs get all pool/home/bob\fR
3534 NAME PROPERTY VALUE SOURCE
3535 pool/home/bob type filesystem -
3536 pool/home/bob creation Tue Jul 21 15:53 2009 -
3537 pool/home/bob used 21K -
3538 pool/home/bob available 20.0G -
3539 pool/home/bob referenced 21K -
3540 pool/home/bob compressratio 1.00x -
3541 pool/home/bob mounted yes -
3542 pool/home/bob quota 20G local
3543 pool/home/bob reservation none default
3544 pool/home/bob recordsize 128K default
3545 pool/home/bob mountpoint /pool/home/bob default
3546 pool/home/bob sharenfs off default
3547 pool/home/bob checksum on default
3548 pool/home/bob compression on local
3549 pool/home/bob atime on default
3550 pool/home/bob devices on default
3551 pool/home/bob exec on default
3552 pool/home/bob setuid on default
3553 pool/home/bob readonly off default
3554 pool/home/bob zoned off default
3555 pool/home/bob snapdir hidden default
3556 pool/home/bob acltype off default
3557 pool/home/bob aclinherit restricted default
3558 pool/home/bob canmount on default
3559 pool/home/bob xattr on default
3560 pool/home/bob copies 1 default
3561 pool/home/bob version 4 -
3562 pool/home/bob utf8only off -
3563 pool/home/bob normalization none -
3564 pool/home/bob casesensitivity sensitive -
3565 pool/home/bob vscan off default
3566 pool/home/bob nbmand off default
3567 pool/home/bob sharesmb off default
3568 pool/home/bob refquota none default
3569 pool/home/bob refreservation none default
3570 pool/home/bob primarycache all default
3571 pool/home/bob secondarycache all default
3572 pool/home/bob usedbysnapshots 0 -
3573 pool/home/bob usedbydataset 21K -
3574 pool/home/bob usedbychildren 0 -
3575 pool/home/bob usedbyrefreservation 0 -
3576 pool/home/bob logbias latency default
3577 pool/home/bob dedup off default
3578 pool/home/bob mlslabel none default
3579 pool/home/bob relatime off default
3580 .fi
3581 .in -2
3582 .sp
3583
3584 .sp
3585 .LP
3586 The following command gets a single property value.
3587
3588 .sp
3589 .in +2
3590 .nf
3591 # \fBzfs get -H -o value compression pool/home/bob\fR
3592 on
3593 .fi
3594 .in -2
3595 .sp
3596
3597 .sp
3598 .LP
3599 The following command lists all properties with local settings for \fBpool/home/bob\fR.
3600
3601 .sp
3602 .in +2
3603 .nf
3604 # \fBzfs get -r -s local -o name,property,value all pool/home/bob\fR
3605 NAME PROPERTY VALUE
3606 pool/home/bob quota 20G
3607 pool/home/bob compression on
3608 .fi
3609 .in -2
3610 .sp
3611
3612 .LP
3613 \fBExample 8 \fRRolling Back a ZFS File System
3614 .sp
3615 .LP
3616 The following command reverts the contents of \fBpool/home/anne\fR to the snapshot named \fByesterday\fR, deleting all intermediate snapshots.
3617
3618 .sp
3619 .in +2
3620 .nf
3621 # \fBzfs rollback -r pool/home/anne@yesterday\fR
3622 .fi
3623 .in -2
3624 .sp
3625
3626 .LP
3627 \fBExample 9 \fRCreating a ZFS Clone
3628 .sp
3629 .LP
3630 The following command creates a writable file system whose initial contents are the same as \fBpool/home/bob@yesterday\fR.
3631
3632 .sp
3633 .in +2
3634 .nf
3635 # \fBzfs clone pool/home/bob@yesterday pool/clone\fR
3636 .fi
3637 .in -2
3638 .sp
3639
3640 .LP
3641 \fBExample 10 \fRPromoting a ZFS Clone
3642 .sp
3643 .LP
3644 The 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:
3645
3646 .sp
3647 .in +2
3648 .nf
3649 # \fBzfs create pool/project/production\fR
3650 populate /pool/project/production with data
3651 # \fBzfs snapshot pool/project/production@today\fR
3652 # \fBzfs clone pool/project/production@today pool/project/beta\fR
3653 make changes to /pool/project/beta and test them
3654 # \fBzfs promote pool/project/beta\fR
3655 # \fBzfs rename pool/project/production pool/project/legacy\fR
3656 # \fBzfs rename pool/project/beta pool/project/production\fR
3657 once the legacy version is no longer needed, it can be destroyed
3658 # \fBzfs destroy pool/project/legacy\fR
3659 .fi
3660 .in -2
3661 .sp
3662
3663 .LP
3664 \fBExample 11 \fRInheriting ZFS Properties
3665 .sp
3666 .LP
3667 The following command causes \fBpool/home/bob\fR and \fBpool/home/anne\fR to inherit the \fBchecksum\fR property from their parent.
3668
3669 .sp
3670 .in +2
3671 .nf
3672 # \fBzfs inherit checksum pool/home/bob pool/home/anne\fR
3673 .fi
3674 .in -2
3675 .sp
3676 .LP
3677 The following command causes \fBpool/home/bob\fR to revert to the received
3678 value for the \fBquota\fR property if it exists.
3679
3680 .sp
3681 .in +2
3682 .nf
3683 # \fBzfs inherit -S quota pool/home/bob
3684 .fi
3685 .in -2
3686 .sp
3687
3688 .LP
3689 \fBExample 12 \fRRemotely Replicating ZFS Data
3690 .sp
3691 .LP
3692 The 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.
3693
3694 .sp
3695 .in +2
3696 .nf
3697 # \fBzfs send pool/fs@a | \e\fR
3698 \fBssh host zfs receive poolB/received/fs@a\fR
3699 # \fBzfs send -i a pool/fs@b | ssh host \e\fR
3700 \fBzfs receive poolB/received/fs\fR
3701 .fi
3702 .in -2
3703 .sp
3704
3705 .LP
3706 \fBExample 13 \fRUsing the \fBzfs receive\fR \fB-d\fR Option
3707 .sp
3708 .LP
3709 The 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.
3710
3711 .sp
3712 .in +2
3713 .nf
3714 # \fBzfs send poolA/fsA/fsB@snap | \e
3715 ssh host zfs receive -d poolB/received\fR
3716 .fi
3717 .in -2
3718 .sp
3719
3720 .LP
3721 \fBExample 14 \fRSetting User Properties
3722 .sp
3723 .LP
3724 The following example sets the user-defined \fBcom.example:department\fR property for a dataset.
3725
3726 .sp
3727 .in +2
3728 .nf
3729 # \fBzfs set com.example:department=12345 tank/accounting\fR
3730 .fi
3731 .in -2
3732 .sp
3733
3734 .LP
3735 \fBExample 15 \fRPerforming a Rolling Snapshot
3736 .sp
3737 .LP
3738 The 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:
3739
3740 .sp
3741 .in +2
3742 .nf
3743 # \fBzfs destroy -r pool/users@7daysago\fR
3744 # \fBzfs rename -r pool/users@6daysago @7daysago\fR
3745 # \fBzfs rename -r pool/users@5daysago @6daysago\fR
3746 # \fBzfs rename -r pool/users@4daysago @5daysago\fR
3747 # \fBzfs rename -r pool/users@3daysago @4daysago\fR
3748 # \fBzfs rename -r pool/users@2daysago @3daysago\fR
3749 # \fBzfs rename -r pool/users@yesterday @2daysago\fR
3750 # \fBzfs rename -r pool/users@today @yesterday\fR
3751 # \fBzfs snapshot -r pool/users@today\fR
3752 .fi
3753 .in -2
3754 .sp
3755
3756 .LP
3757 \fBExample 16 \fRSetting \fBsharenfs\fR Property Options on a ZFS File System
3758 .sp
3759 .LP
3760 The 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.
3761
3762 .sp
3763 .in +2
3764 .nf
3765 # \fBzfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home\fR
3766 .fi
3767 .in -2
3768 .sp
3769
3770 .sp
3771 .LP
3772 If you are using \fBDNS\fR for host name resolution, specify the fully qualified hostname.
3773
3774 .sp
3775 .LP
3776 If you want to access snapdir through NFS, be sure to add \fBcrossmnt\fR to the options.
3777
3778 .LP
3779 \fBExample 17 \fRDelegating ZFS Administration Permissions on a ZFS Dataset
3780 .sp
3781 The 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.
3782
3783 .sp
3784 .in +2
3785 .nf
3786 # \fBzfs allow cindys create,destroy,mount,snapshot tank/cindys\fR
3787 # \fBzfs allow tank/cindys\fR
3788 -------------------------------------------------------------
3789 Local+Descendent permissions on (tank/cindys)
3790 user cindys create,destroy,mount,snapshot
3791 -------------------------------------------------------------
3792 .fi
3793 .in -2
3794 .sp
3795
3796 .sp
3797 .LP
3798 Because 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:
3799 .sp
3800 .in +2
3801 .nf
3802 # \fBchmod A+user:cindys:add_subdirectory:allow /tank/cindys\fR
3803 .fi
3804 .in -2
3805 .sp
3806
3807 .LP
3808 \fBExample 18 \fRDelegating Create Time Permissions on a ZFS Dataset
3809 .sp
3810 .LP
3811 The 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.
3812
3813 .sp
3814 .in +2
3815 .nf
3816 # \fBzfs allow staff create,mount tank/users\fR
3817 # \fBzfs allow -c destroy tank/users\fR
3818 # \fBzfs allow tank/users\fR
3819 -------------------------------------------------------------
3820 Create time permissions on (tank/users)
3821 create,destroy
3822 Local+Descendent permissions on (tank/users)
3823 group staff create,mount
3824 -------------------------------------------------------------
3825 .fi
3826 .in -2
3827 .sp
3828
3829 .LP
3830 \fBExample 19 \fRDefining and Granting a Permission Set on a ZFS Dataset
3831 .sp
3832 .LP
3833 The 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.
3834
3835 .sp
3836 .in +2
3837 .nf
3838 # \fBzfs allow -s @pset create,destroy,snapshot,mount tank/users\fR
3839 # \fBzfs allow staff @pset tank/users\fR
3840 # \fBzfs allow tank/users\fR
3841 -------------------------------------------------------------
3842 Permission sets on (tank/users)
3843 @pset create,destroy,mount,snapshot
3844 Create time permissions on (tank/users)
3845 create,destroy
3846 Local+Descendent permissions on (tank/users)
3847 group staff @pset,create,mount
3848 -------------------------------------------------------------
3849 .fi
3850 .in -2
3851 .sp
3852
3853 .LP
3854 \fBExample 20 \fRDelegating Property Permissions on a ZFS Dataset
3855 .sp
3856 .LP
3857 The 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.
3858
3859 .sp
3860 .in +2
3861 .nf
3862 # \fBzfs allow cindys quota,reservation users/home\fR
3863 # \fBzfs allow users/home\fR
3864 -------------------------------------------------------------
3865 Local+Descendent permissions on (users/home)
3866 user cindys quota,reservation
3867 -------------------------------------------------------------
3868 cindys% \fBzfs set quota=10G users/home/marks\fR
3869 cindys% \fBzfs get quota users/home/marks\fR
3870 NAME PROPERTY VALUE SOURCE
3871 users/home/marks quota 10G local
3872 .fi
3873 .in -2
3874 .sp
3875
3876 .LP
3877 \fBExample 21 \fRRemoving ZFS Delegated Permissions on a ZFS Dataset
3878 .sp
3879 .LP
3880 The 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.
3881
3882 .sp
3883 .in +2
3884 .nf
3885 # \fBzfs unallow staff snapshot tank/users\fR
3886 # \fBzfs allow tank/users\fR
3887 -------------------------------------------------------------
3888 Permission sets on (tank/users)
3889 @pset create,destroy,mount,snapshot
3890 Create time permissions on (tank/users)
3891 create,destroy
3892 Local+Descendent permissions on (tank/users)
3893 group staff @pset,create,mount
3894 -------------------------------------------------------------
3895 .fi
3896 .in -2
3897 .sp
3898
3899 .LP
3900 \fBExample 22\fR Showing the differences between a snapshot and a ZFS Dataset
3901 .sp
3902 .LP
3903 The following example shows how to see what has changed between a prior
3904 snapshot of a ZFS Dataset and its current state. The \fB-F\fR option is used
3905 to indicate type information for the files affected.
3906
3907 .sp
3908 .in +2
3909 .nf
3910 # zfs diff -F tank/test@before tank/test
3911 M / /tank/test/
3912 M F /tank/test/linked (+1)
3913 R F /tank/test/oldname -> /tank/test/newname
3914 - F /tank/test/deleted
3915 + F /tank/test/created
3916 M F /tank/test/modified
3917 .fi
3918 .in -2
3919 .sp
3920
3921 .LP
3922 \fBExample 23\fR Creating a bookmark
3923 .sp
3924 .LP
3925 The following example create a bookmark to a snapshot. This bookmark can then
3926 be used instead of snapshot in send streams.
3927
3928 .sp
3929 .in +2
3930 .nf
3931 # zfs bookmark rpool@snapshot rpool#bookmark
3932 .fi
3933 .in -2
3934 .sp
3935
3936 .SH "ENVIRONMENT VARIABLES"
3937 .TP
3938 .B "ZFS_ABORT
3939 Cause \fBzfs\fR to dump core on exit for the purposes of running \fB::findleaks\fR.
3940
3941 .SH EXIT STATUS
3942 .LP
3943 The following exit values are returned:
3944 .sp
3945 .ne 2
3946 .na
3947 \fB\fB0\fR\fR
3948 .ad
3949 .sp .6
3950 .RS 4n
3951 Successful completion.
3952 .RE
3953
3954 .sp
3955 .ne 2
3956 .na
3957 \fB\fB1\fR\fR
3958 .ad
3959 .sp .6
3960 .RS 4n
3961 An error occurred.
3962 .RE
3963
3964 .sp
3965 .ne 2
3966 .na
3967 \fB\fB2\fR\fR
3968 .ad
3969 .sp .6
3970 .RS 4n
3971 Invalid command line options were specified.
3972 .RE
3973
3974 .SH SEE ALSO
3975 .LP
3976 \fBchmod\fR(2), \fBfsync\fR(2), \fBgzip\fR(1), \fBls\fR(1), \fBmount\fR(8), \fBopen\fR(2), \fBreaddir\fR(3), \fBssh\fR(1), \fBstat\fR(2), \fBwrite\fR(2), \fBzpool\fR(8), \fBzfs-module-parameters\fR(5)
3977 .sp
3978 On Solaris: \fBdfstab(4)\fR, \fBiscsitadm(1M)\fR, \fBmount(1M)\fR, \fBshare(1M)\fR, \fBsharemgr(1M)\fR, \fBunshare(1M)\fR