]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - cddl/contrib/opensolaris/cmd/zfs/zfs.8
MFC r260183:
[FreeBSD/stable/9.git] / cddl / contrib / opensolaris / cmd / zfs / zfs.8
1 '\" te
2 .\" Copyright (c) 2013, Martin Matuska <mm@FreeBSD.org>.
3 .\" All Rights Reserved.
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 .\" Copyright (c) 2010, Sun Microsystems, Inc. All Rights Reserved.
21 .\" Copyright (c) 2013 by Delphix. All rights reserved.
22 .\" Copyright (c) 2011, Pawel Jakub Dawidek <pjd@FreeBSD.org>
23 .\" Copyright (c) 2012, Bryan Drewery <bdrewery@FreeBSD.org>
24 .\" Copyright (c) 2012, Glen Barber <gjb@FreeBSD.org>
25 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
26 .\" Copyright (c) 2013 Nexenta Systems, Inc. All Rights Reserved.
27 .\" Copyright (c) 2013, Joyent, Inc. All rights reserved.
28 .\" Copyright (c) 2013, Steven Hartland <smh@FreeBSD.org>
29 .\" Copyright (c) 2014, Xin LI <delphij@FreeBSD.org>
30 .\"
31 .\" $FreeBSD$
32 .\"
33 .Dd January 2, 2014
34 .Dt ZFS 8
35 .Os
36 .Sh NAME
37 .Nm zfs
38 .Nd configures ZFS file systems
39 .Sh SYNOPSIS
40 .Nm
41 .Op Fl \&?
42 .Nm
43 .Cm create
44 .Op Fl p
45 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ... Ar filesystem
46 .Nm
47 .Cm create
48 .Op Fl ps
49 .Op Fl b Ar blocksize
50 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
51 .Fl V
52 .Ar size volume
53 .Nm
54 .Cm destroy
55 .Op Fl fnpRrv
56 .Ar filesystem Ns | Ns Ar volume
57 .Nm
58 .Cm destroy
59 .Op Fl dnpRrv
60 .Sm off
61 .Ar filesystem Ns | Ns volume
62 .Ns @snap
63 .Op % Ns Ar snap
64 .Op , Ns Ar snap Op % Ns Ar snap
65 .Op , Ns ...
66 .Sm on
67 .Nm
68 .Cm destroy
69 .Ar filesystem Ns | Ns Ar volume Ns # Ns Ar bookmark
70 .Nm
71 .Cm snapshot Ns | Ns Cm snap
72 .Op Fl r
73 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
74 .Ar filesystem@snapname Ns | Ns Ar volume@snapname
75 .Ar filesystem@snapname Ns | Ns Ar volume@snapname Ns ...
76 .Nm
77 .Cm rollback
78 .Op Fl rRf
79 .Ar snapshot
80 .Nm
81 .Cm clone
82 .Op Fl p
83 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
84 .Ar snapshot filesystem Ns | Ns Ar volume
85 .Nm
86 .Cm promote
87 .Ar clone-filesystem
88 .Nm
89 .Cm rename
90 .Op Fl f
91 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
92 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
93 .Nm
94 .Cm rename
95 .Op Fl f
96 .Fl p
97 .Ar filesystem Ns | Ns Ar volume
98 .Ar filesystem Ns | Ns Ar volume
99 .Nm
100 .Cm rename
101 .Fl r
102 .Ar snapshot snapshot
103 .Nm
104 .Cm rename
105 .Fl u
106 .Op Fl p
107 .Ar filesystem filesystem
108 .Nm
109 .Cm list
110 .Op Fl r Ns | Ns Fl d Ar depth
111 .Op Fl Hp
112 .Op Fl o Ar property Ns Oo , Ns property Ns Oc Ns ...
113 .Op Fl t Ar type Ns Oo , Ns type Ns Oc Ns ...
114 .Oo Fl s Ar property Oc Ns ...
115 .Oo Fl S Ar property Oc Ns ...
116 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
117 .Nm
118 .Cm set
119 .Ar property Ns = Ns Ar value
120 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
121 .Nm
122 .Cm get
123 .Op Fl r Ns | Ns Fl d Ar depth
124 .Op Fl Hp
125 .Op Fl o Ar all | field Ns Oo , Ns Ar field Oc Ns ...
126 .Op Fl t Ar type Ns Oo Ns , Ar type Oc Ns ...
127 .Op Fl s Ar source Ns Oo Ns , Ns Ar source Oc Ns ...
128 .Ar all | property Ns Oo Ns , Ns Ar property Oc Ns ...
129 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
130 .Nm
131 .Cm inherit
132 .Op Fl rS
133 .Ar property
134 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
135 .Nm
136 .Cm upgrade
137 .Op Fl v
138 .Nm
139 .Cm upgrade
140 .Op Fl r
141 .Op Fl V Ar version
142 .Fl a | Ar filesystem
143 .Nm
144 .Cm userspace
145 .Op Fl Hinp
146 .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
147 .Oo Fl s Ar field Oc Ns ...
148 .Oo Fl S Ar field Oc Ns ...
149 .Op Fl t Ar type Ns Oo Ns , Ns Ar type Oc Ns ...
150 .Ar filesystem Ns | Ns Ar snapshot
151 .Nm
152 .Cm groupspace
153 .Op Fl Hinp
154 .Op Fl o Ar field Ns Oo , Ns field Oc Ns ...
155 .Oo Fl s Ar field Oc Ns ...
156 .Oo Fl S Ar field Oc Ns ...
157 .Op Fl t Ar type Ns Oo Ns , Ns Ar type Oc Ns ...
158 .Ar filesystem Ns | Ns Ar snapshot
159 .Nm
160 .Cm mount
161 .Nm
162 .Cm mount
163 .Op Fl vO
164 .Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
165 .Fl a | Ar filesystem
166 .Nm
167 .Cm unmount Ns | Ns Cm umount
168 .Op Fl f
169 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
170 .Nm
171 .Cm share
172 .Fl a | Ar filesystem
173 .Nm
174 .Cm unshare
175 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
176 .Nm
177 .Cm bookmark
178 .Ar snapshot
179 .Ar bookmark
180 .Nm
181 .Cm send
182 .Op Fl DnPpRv
183 .Op Fl i Ar snapshot | Fl I Ar snapshot
184 .Ar snapshot
185 .Nm
186 .Cm send
187 .Op Fl i Ar snapshot Ns | Ns bookmark
188 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
189 .Nm
190 .Cm receive Ns | Ns Cm recv
191 .Op Fl vnFu
192 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
193 .Nm
194 .Cm receive Ns | Ns Cm recv
195 .Op Fl vnFu
196 .Op Fl d | e
197 .Ar filesystem
198 .Nm
199 .Cm allow
200 .Ar filesystem Ns | Ns Ar volume
201 .Nm
202 .Cm allow
203 .Op Fl ldug
204 .Ar user Ns | Ns Ar group Ns Oo Ns , Ns Ar user Ns | Ns Ar group Oc Ns ...
205 .Ar perm Ns | Ns Ar @setname Ns
206 .Oo Ns , Ns Ar perm Ns | Ns Ar @setname Oc Ns ...
207 .Ar filesystem Ns | Ns Ar volume
208 .Nm
209 .Cm allow
210 .Op Fl ld
211 .Fl e Ns | Ns Cm everyone
212 .Ar perm Ns | Ns Ar @setname Ns Op Ns , Ns Ar perm Ns | Ns Ar @setname Ns
213 .Ns ...
214 .Ar filesystem Ns | Ns Ar volume
215 .Nm
216 .Cm allow
217 .Fl c
218 .Ar perm Ns | Ns Ar @setname Ns Op Ns , Ns Ar perm Ns | Ns Ar @setname Ns
219 .Ns ...
220 .Ar filesystem Ns | Ns Ar volume
221 .Nm
222 .Cm allow
223 .Fl s
224 .Ar @setname
225 .Ar perm Ns | Ns Ar @setname Ns Op Ns , Ns Ar perm Ns | Ns Ar @setname Ns
226 .Ns ...
227 .Ar filesystem Ns | Ns Ar volume
228 .Nm
229 .Cm unallow
230 .Op Fl rldug
231 .Ar user Ns | Ns Ar group Ns Oo Ns , Ns Ar user Ns | Ns Ar group Oc Ns ...
232 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
233 .Ns ... Oc
234 .Ar filesystem Ns | Ns Ar volume
235 .Nm
236 .Cm unallow
237 .Op Fl rld
238 .Fl e Ns | Ns Cm everyone
239 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
240 .Ns ... Oc
241 .Ar filesystem Ns | Ns Ar volume
242 .Nm
243 .Cm unallow
244 .Op Fl r
245 .Fl c
246 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
247 .Ns ... Oc
248 .Ar filesystem Ns | Ns Ar volume
249 .Nm
250 .Cm unallow
251 .Op Fl r
252 .Fl s
253 .Ar @setname
254 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
255 .Ns ... Oc
256 .Ar filesystem Ns | Ns Ar volume
257 .Nm
258 .Cm hold
259 .Op Fl r
260 .Ar tag snapshot Ns ...
261 .Nm
262 .Cm holds
263 .Op Fl r
264 .Ar snapshot Ns ...
265 .Nm
266 .Cm release
267 .Op Fl r
268 .Ar tag snapshot Ns ...
269 .Nm
270 .Cm diff
271 .Op Fl FHt
272 .Ar snapshot
273 .Op Ar snapshot Ns | Ns Ar filesystem
274 .Nm
275 .Cm jail
276 .Ar jailid Ns | Ns Ar jailname filesystem
277 .Nm
278 .Cm unjail
279 .Ar jailid Ns | Ns Ar jailname filesystem
280 .Sh DESCRIPTION
281 The
282 .Nm
283 command configures
284 .Tn ZFS
285 datasets within a
286 .Tn ZFS
287 storage pool, as described in
288 .Xr zpool 8 .
289 A dataset is identified by a unique path within the
290 .Tn ZFS
291 namespace. For example:
292 .Bd -ragged -offset 4n
293 .No pool/ Ns Brq filesystem,volume,snapshot
294 .Ed
295 .Pp
296 where the maximum length of a dataset name is
297 .Dv MAXNAMELEN
298 (256 bytes).
299 .Pp
300 A dataset can be one of the following:
301 .Bl -hang -width 12n
302 .It Sy file system
303 A
304 .Tn ZFS
305 dataset of type
306 .Em filesystem
307 can be mounted within the standard system namespace and behaves like other file
308 systems. While
309 .Tn ZFS
310 file systems are designed to be
311 .Tn POSIX
312 compliant, known issues exist that prevent compliance in some cases.
313 Applications that depend on standards conformance might fail due to nonstandard
314 behavior when checking file system free space.
315 .It Sy volume
316 A logical volume exported as a raw or block device. This type of dataset should
317 only be used under special circumstances. File systems are typically used in
318 most environments.
319 .It Sy snapshot
320 A read-only version of a file system or volume at a given point in time. It is
321 specified as
322 .Em filesystem@name
323 or
324 .Em volume@name .
325 .El
326 .Ss ZFS File System Hierarchy
327 A
328 .Tn ZFS
329 storage pool is a logical collection of devices that provide space for
330 datasets. A storage pool is also the root of the
331 .Tn ZFS
332 file system hierarchy.
333 .Pp
334 The root of the pool can be accessed as a file system, such as mounting and
335 unmounting, taking snapshots, and setting properties. The physical storage
336 characteristics, however, are managed by the
337 .Xr zpool 8
338 command.
339 .Pp
340 See
341 .Xr zpool 8
342 for more information on creating and administering pools.
343 .Ss Snapshots
344 A snapshot is a read-only copy of a file system or volume. Snapshots can be
345 created extremely quickly, and initially consume no additional space within the
346 pool. As data within the active dataset changes, the snapshot consumes more
347 data than would otherwise be shared with the active dataset.
348 .Pp
349 Snapshots can have arbitrary names. Snapshots of volumes can be cloned or
350 rolled back, but cannot be accessed independently.
351 .Pp
352 File system snapshots can be accessed under the
353 .Pa \&.zfs/snapshot
354 directory in the root of the file system. Snapshots are automatically mounted
355 on demand and may be unmounted at regular intervals. The visibility of the
356 .Pa \&.zfs
357 directory can be controlled by the
358 .Sy snapdir
359 property.
360 .Ss Clones
361 A clone is a writable volume or file system whose initial contents are the same
362 as another dataset. As with snapshots, creating a clone is nearly
363 instantaneous, and initially consumes no additional space.
364 .Pp
365 Clones can only be created from a snapshot. When a snapshot is cloned, it
366 creates an implicit dependency between the parent and child. Even though the
367 clone is created somewhere else in the dataset hierarchy, the original snapshot
368 cannot be destroyed as long as a clone exists. The
369 .Sy origin
370 property exposes this dependency, and the
371 .Cm destroy
372 command lists any such dependencies, if they exist.
373 .Pp
374 The clone parent-child dependency relationship can be reversed by using the
375 .Cm promote
376 subcommand. This causes the "origin" file system to become a clone of the
377 specified file system, which makes it possible to destroy the file system that
378 the clone was created from.
379 .Ss Mount Points
380 Creating a
381 .Tn ZFS
382 file system is a simple operation, so the number of file systems per system is
383 likely to be numerous. To cope with this,
384 .Tn ZFS
385 automatically manages mounting and unmounting file systems without the need to
386 edit the
387 .Pa /etc/fstab
388 file. All automatically managed file systems are mounted by
389 .Tn ZFS
390 at boot time.
391 .Pp
392 By default, file systems are mounted under
393 .Pa /path ,
394 where
395 .Ar path
396 is the name of the file system in the
397 .Tn ZFS
398 namespace. Directories are created and destroyed as needed.
399 .Pp
400 A file system can also have a mount point set in the
401 .Sy mountpoint
402 property. This directory is created as needed, and
403 .Tn ZFS
404 automatically mounts the file system when the
405 .Qq Nm Cm mount Fl a
406 command is invoked (without editing
407 .Pa /etc/fstab ) .
408 The
409 .Sy mountpoint
410 property can be inherited, so if
411 .Em pool/home
412 has a mount point of
413 .Pa /home ,
414 then
415 .Em pool/home/user
416 automatically inherits a mount point of
417 .Pa /home/user .
418 .Pp
419 A file system
420 .Sy mountpoint
421 property of
422 .Cm none
423 prevents the file system from being mounted.
424 .Pp
425 If needed,
426 .Tn ZFS
427 file systems can also be managed with traditional tools
428 .Pq Xr mount 8 , Xr umount 8 , Xr fstab 5 .
429 If a file system's mount point is set to
430 .Cm legacy ,
431 .Tn ZFS
432 makes no attempt to manage the file system, and the administrator is
433 responsible for mounting and unmounting the file system.
434 .Ss Jails
435 .No A Tn ZFS
436 dataset can be attached to a jail by using the
437 .Qq Nm Cm jail
438 subcommand. You cannot attach a dataset to one jail and the children of the
439 same dataset to another jails. To allow management of the dataset from within
440 a jail, the
441 .Sy jailed
442 property has to be set. The
443 .Sy quota
444 property cannot be changed from within a jail.
445 .Pp
446 .No A Tn ZFS
447 dataset can be detached from a jail using the
448 .Qq Nm Cm unjail
449 subcommand.
450 .Pp
451 After a dataset is attached to a jail and the jailed property is set, a jailed
452 file system cannot be mounted outside the jail, since the jail administrator
453 might have set the mount point to an unacceptable value.
454 .Ss Deduplication
455 Deduplication is the process for removing redundant data at the block-level,
456 reducing the total amount of data stored. If a file system has the
457 .Cm dedup
458 property enabled, duplicate data blocks are removed synchronously. The result
459 is that only unique data is stored and common components are shared among
460 files.
461 .Ss Native Properties
462 Properties are divided into two types, native properties and user-defined (or
463 "user") properties. Native properties either export internal statistics or
464 control
465 .Tn ZFS
466 behavior. In addition, native properties are either editable or read-only. User
467 properties have no effect on
468 .Tn ZFS
469 behavior, but you can use them to annotate datasets in a way that is meaningful
470 in your environment. For more information about user properties, see the
471 .Qq Sx User Properties
472 section, below.
473 .Pp
474 Every dataset has a set of properties that export statistics about the dataset
475 as well as control various behaviors. Properties are inherited from the parent
476 unless overridden by the child. Some properties apply only to certain types of
477 datasets (file systems, volumes, or snapshots).
478 .Pp
479 The values of numeric properties can be specified using human-readable suffixes
480 (for example,
481 .Sy k , KB , M , Gb ,
482 and so forth, up to
483 .Sy Z
484 for zettabyte). The following are all valid (and equal) specifications:
485 .Bd -ragged -offset 4n
486 1536M, 1.5g, 1.50GB
487 .Ed
488 .Pp
489 The values of non-numeric properties are case sensitive and must be lowercase,
490 except for
491 .Sy mountpoint , sharenfs , No and Sy sharesmb .
492 .Pp
493 The following native properties consist of read-only statistics about the
494 dataset. These properties can be neither set, nor inherited. Native properties
495 apply to all dataset types unless otherwise noted.
496 .Bl -tag -width 2n
497 .It Sy available
498 The amount of space available to the dataset and all its children, assuming
499 that there is no other activity in the pool. Because space is shared within a
500 pool, availability can be limited by any number of factors, including physical
501 pool size, quotas, reservations, or other datasets within the pool.
502 .Pp
503 This property can also be referred to by its shortened column name,
504 .Sy avail .
505 .It Sy compressratio
506 For non-snapshots, the compression ratio achieved for the
507 .Sy used
508 space of this dataset, expressed as a multiplier.  The
509 .Sy used
510 property includes descendant datasets, and, for clones, does not include
511 the space shared with the origin snapshot.  For snapshots, the
512 .Sy compressratio
513 is the same as the
514 .Sy refcompressratio
515 property. Compression can be turned on by running:
516 .Qq Nm Cm set compression=on Ar dataset
517 The default value is
518 .Cm off .
519 .It Sy creation
520 The time this dataset was created.
521 .It Sy clones
522 For snapshots, this property is a comma-separated list of filesystems or
523 volumes which are clones of this snapshot.  The clones'
524 .Sy origin
525 property is this snapshot.  If the
526 .Sy clones
527 property is not empty, then this snapshot can not be destroyed (even with the
528 .Fl r
529 or
530 .Fl f
531 options).
532 .It Sy defer_destroy
533 This property is
534 .Cm on
535 if the snapshot has been marked for deferred destroy by using the
536 .Qq Nm Cm destroy -d
537 command. Otherwise, the property is
538 .Cm off .
539 .It Sy logicalreferenced
540 The amount of space that is
541 .Qq logically
542 accessible by this dataset.
543 See the
544 .Sy referenced
545 property.
546 The logical space ignores the effect of the
547 .Sy compression
548 and
549 .Sy copies
550 properties, giving a quantity closer to the amount of data that applications
551 see.
552 However, it does include space consumed by metadata.
553 .Pp
554 This property can also be referred to by its shortened column name,
555 .Sy lrefer .
556 .It Sy logicalused
557 The amount of space that is
558 .Qq logically
559 consumed by this dataset and all its descendents.
560 See the
561 .Sy used
562 property.
563 The logical space ignores the effect of the
564 .Sy compression
565 and
566 .Sy copies
567 properties, giving a quantity closer to the amount of data that applications
568 see.
569 .Pp
570 This property can also be referred to by its shortened column name,
571 .Sy lused .
572 .It Sy mounted
573 For file systems, indicates whether the file system is currently mounted. This
574 property can be either
575 .Cm yes
576 or
577 .Cm no .
578 .It Sy origin
579 For cloned file systems or volumes, the snapshot from which the clone was
580 created. See also the
581 .Sy clones
582 property.
583 .It Sy referenced
584 The amount of data that is accessible by this dataset, which may or may not be
585 shared with other datasets in the pool. When a snapshot or clone is created, it
586 initially references the same amount of space as the file system or snapshot it
587 was created from, since its contents are identical.
588 .Pp
589 This property can also be referred to by its shortened column name,
590 .Sy refer .
591 .It Sy refcompressratio
592 The compression ratio achieved for the
593 .Sy referenced
594 space of this dataset, expressed as a multiplier.  See also the
595 .Sy compressratio
596 property.
597 .It Sy type
598 The type of dataset:
599 .Sy filesystem , volume , No or Sy snapshot .
600 .It Sy used
601 The amount of space consumed by this dataset and all its descendents. This is
602 the value that is checked against this dataset's quota and reservation. The
603 space used does not include this dataset's reservation, but does take into
604 account the reservations of any descendent datasets. The amount of space that a
605 dataset consumes from its parent, as well as the amount of space that are freed
606 if this dataset is recursively destroyed, is the greater of its space used and
607 its reservation.
608 .Pp
609 When snapshots (see the
610 .Qq Sx Snapshots
611 section) are created, their space is
612 initially shared between the snapshot and the file system, and possibly with
613 previous snapshots. As the file system changes, space that was previously
614 shared becomes unique to the snapshot, and counted in the snapshot's space
615 used. Additionally, deleting snapshots can increase the amount of space unique
616 to (and used by) other snapshots.
617 .Pp
618 The amount of space used, available, or referenced does not take into account
619 pending changes. Pending changes are generally accounted for within a few
620 seconds. Committing a change to a disk using
621 .Xr fsync 2
622 or
623 .Sy O_SYNC
624 does not necessarily guarantee that the space usage information is updated
625 immediately.
626 .It Sy usedby*
627 The
628 .Sy usedby*
629 properties decompose the
630 .Sy used
631 properties into the various reasons that space is used. Specifically,
632 .Sy used No =
633 .Sy usedbysnapshots + usedbydataset + usedbychildren + usedbyrefreservation .
634 These properties are only available for datasets created
635 with
636 .Tn ZFS
637 pool version 13 pools and higher.
638 .It Sy usedbysnapshots
639 The amount of space consumed by snapshots of this dataset. In particular, it is
640 the amount of space that would be freed if all of this dataset's snapshots were
641 destroyed. Note that this is not simply the sum of the snapshots'
642 .Sy used
643 properties because space can be shared by multiple snapshots.
644 .It Sy usedbydataset
645 The amount of space used by this dataset itself, which would be freed if the
646 dataset were destroyed (after first removing any
647 .Sy refreservation
648 and destroying any necessary snapshots or descendents).
649 .It Sy usedbychildren
650 The amount of space used by children of this dataset, which would be freed if
651 all the dataset's children were destroyed.
652 .It Sy usedbyrefreservation
653 The amount of space used by a
654 .Sy refreservation
655 set on this dataset, which would be freed if the
656 .Sy refreservation
657 was removed.
658 .It Sy userused@ Ns Ar user
659 The amount of space consumed by the specified user in this dataset. Space is
660 charged to the owner of each file, as displayed by
661 .Qq Nm ls Fl l .
662 The amount of space charged is displayed by
663 .Qq Nm du
664 and
665 .Qq Nm ls Fl s .
666 See the
667 .Qq Nm Cm userspace
668 subcommand for more information.
669 .Pp
670 Unprivileged users can access only their own space usage. The root user, or a
671 user who has been granted the
672 .Sy userused
673 privilege with
674 .Qq Nm Cm allow ,
675 can access everyone's usage.
676 .Pp
677 The
678 .Sy userused@ Ns ...
679 properties are not displayed by
680 .Qq Nm Cm get all .
681 The user's name must be appended after the
682 .Sy @
683 symbol, using one of the following forms:
684 .Bl -bullet -offset 2n
685 .It
686 POSIX name (for example,
687 .Em joe )
688 .It
689 POSIX numeric ID (for example,
690 .Em 1001 )
691 .El
692 .It Sy userrefs
693 This property is set to the number of user holds on this snapshot. User holds
694 are set by using the
695 .Qq Nm Cm hold
696 command.
697 .It Sy groupused@ Ns Ar group
698 The amount of space consumed by the specified group in this dataset. Space is
699 charged to the group of each file, as displayed by
700 .Nm ls Fl l .
701 See the
702 .Sy userused@ Ns Ar user
703 property for more information.
704 .Pp
705 Unprivileged users can only access their own groups' space usage. The root
706 user, or a user who has been granted the
707 .Sy groupused
708 privilege with
709 .Qq Nm Cm allow ,
710 can access all groups' usage.
711 .It Sy volblocksize Ns = Ns Ar blocksize
712 For volumes, specifies the block size of the volume. The
713 .Ar blocksize
714 cannot be changed once the volume has been written, so it should be set at
715 volume creation time. The default
716 .Ar blocksize
717 for volumes is 8 Kbytes. Any
718 power of 2 from 512 bytes to 128 Kbytes is valid.
719 .Pp
720 This property can also be referred to by its shortened column name,
721 .Sy volblock .
722 .It Sy written
723 The amount of
724 .Sy referenced
725 space written to this dataset since the previous snapshot.
726 .It Sy written@ Ns Ar snapshot
727 The amount of
728 .Sy referenced
729 space written to this dataset since the specified snapshot.  This is the space
730 that is referenced by this dataset but was not referenced by the specified
731 snapshot.
732 .Pp
733 The
734 .Ar snapshot
735 may be specified as a short snapshot name (just the part after the
736 .Sy @ ) ,
737 in which case it will be interpreted as a snapshot in the same filesystem as
738 this dataset. The
739 .Ar snapshot
740 may be a full snapshot name
741 .Pq Em filesystem@snapshot ,
742 which for clones may be a snapshot in the origin's filesystem (or the origin of
743 the origin's filesystem, etc).
744 .El
745 .Pp
746 The following native properties can be used to change the behavior of a
747 .Tn ZFS
748 dataset.
749 .Bl -tag -width 2n
750 .It Xo
751 .Sy aclinherit Ns = Ns Cm discard |
752 .Cm noallow |
753 .Cm restricted |
754 .Cm passthrough |
755 .Cm passthrough-x
756 .Xc
757 Controls how
758 .Tn ACL
759 entries are inherited when files and directories are created. A file system
760 with an
761 .Sy aclinherit
762 property of
763 .Cm discard
764 does not inherit any
765 .Tn ACL
766 entries. A file system with an
767 .Sy aclinherit
768 property value of
769 .Cm noallow
770 only inherits inheritable
771 .Tn ACL
772 entries that specify "deny" permissions. The property value
773 .Cm restricted
774 (the default) removes the
775 .Em write_acl
776 and
777 .Em write_owner
778 permissions when the
779 .Tn ACL
780 entry is inherited. A file system with an
781 .Sy aclinherit
782 property value of
783 .Cm passthrough
784 inherits all inheritable
785 .Tn ACL
786 entries without any modifications made to the
787 .Tn ACL
788 entries when they are inherited. A file system with an
789 .Sy aclinherit
790 property value of
791 .Cm passthrough-x
792 has the same meaning as
793 .Cm passthrough ,
794 except that the
795 .Em owner@ , group@ , No and Em everyone@ Tn ACE Ns s
796 inherit the execute permission only if the file creation mode also requests the
797 execute bit.
798 .Pp
799 When the property value is set to
800 .Cm passthrough ,
801 files are created with a mode determined by the inheritable
802 .Tn ACE Ns s.
803 If no inheritable
804 .Tn ACE Ns s
805 exist that affect the mode, then the mode is set in accordance to the requested
806 mode from the application.
807 .It Sy aclmode Ns = Ns Cm discard | groupmask | passthrough | restricted
808 Controls how an
809 .Tn ACL
810 is modified during
811 .Xr chmod 2 .
812 A file system with an
813 .Sy aclmode
814 property of
815 .Cm discard
816 (the default) deletes all
817 .Tn ACL
818 entries that do not represent the mode of the file. An
819 .Sy aclmode
820 property of
821 .Cm groupmask
822 reduces permissions granted in all
823 .Em ALLOW
824 entries found in the
825 .Tn ACL
826 such that they are no greater than the group permissions specified by
827 .Xr chmod 2 .
828 A file system with an
829 .Sy aclmode
830 property of
831 .Cm passthrough
832 indicates that no changes are made to the
833 .Tn ACL
834 other than creating or updating the necessary
835 .Tn ACL
836 entries to represent the new mode of the file or directory.
837 An
838 .Sy aclmode
839 property of
840 .Cm restricted
841 will cause the
842 .Xr chmod 2
843 operation to return an error when used on any file or directory which has
844 a non-trivial
845 .Tn ACL
846 whose entries can not be represented by a mode.
847 .Xr chmod 2
848 is required to change the set user ID, set group ID, or sticky bits on a file
849 or directory, as they do not have equivalent
850 .Tn ACL
851 entries.
852 In order to use
853 .Xr chmod 2
854 on a file or directory with a non-trivial
855 .Tn ACL
856 when
857 .Sy aclmode
858 is set to
859 .Cm restricted ,
860 you must first remove all
861 .Tn ACL
862 entries which do not represent the current mode.
863 .It Sy atime Ns = Ns Cm on | off
864 Controls whether the access time for files is updated when they are read.
865 Turning this property off avoids producing write traffic when reading files and
866 can result in significant performance gains, though it might confuse mailers
867 and other similar utilities. The default value is
868 .Cm on .
869 .It Sy canmount Ns = Ns Cm on | off | noauto
870 If this property is set to
871 .Cm off ,
872 the file system cannot be mounted, and is ignored by
873 .Qq Nm Cm mount Fl a .
874 Setting this property to
875 .Cm off
876 is similar to setting the
877 .Sy mountpoint
878 property to
879 .Cm none ,
880 except that the dataset still has a normal
881 .Sy mountpoint
882 property, which can be inherited. Setting this property to
883 .Cm off
884 allows datasets to be used solely as a mechanism to inherit properties. One
885 example of setting
886 .Sy canmount Ns = Ns Cm off
887 is to have two datasets with the same
888 .Sy mountpoint ,
889 so that the children of both datasets appear in the same directory, but might
890 have different inherited characteristics.
891 .Pp
892 When the
893 .Cm noauto
894 value is set, a dataset can only be mounted and unmounted explicitly. The
895 dataset is not mounted automatically when the dataset is created or imported,
896 nor is it mounted by the
897 .Qq Nm Cm mount Fl a
898 command or unmounted by the
899 .Qq Nm Cm umount Fl a
900 command.
901 .Pp
902 This property is not inherited.
903 .It Sy checksum Ns = Ns Cm on | off | fletcher2 | fletcher4 | sha256 | noparity
904 Controls the checksum used to verify data integrity. The default value is
905 .Cm on ,
906 which automatically selects an appropriate algorithm (currently,
907 .Cm fletcher4 ,
908 but this may change in future releases). The value
909 .Cm off
910 disables integrity checking on user data.
911 The value
912 .Cm noparity
913 not only
914 disables integrity but also disables maintaining parity for user data.  This
915 setting is used internally by a dump device residing on a RAID-Z pool and should
916 not be used by any other dataset.
917 Disabling checksums is
918 .Em NOT
919 a recommended practice.
920 .It Sy compression Ns = Ns Cm on | off | lzjb | gzip | gzip- Ns Ar N | zle | Cm lz4
921 Controls the compression algorithm used for this dataset. The
922 .CM lzjb
923 compression algorithm is optimized for performance while providing decent data
924 compression. Setting compression to
925 .Cm on
926 uses the
927 .Cm lzjb
928 compression algorithm. The
929 .Cm gzip
930 compression algorithm uses the same compression as the
931 .Xr gzip 1
932 command. You can specify the
933 .Cm gzip
934 level by using the value
935 .Cm gzip- Ns Ar N
936 where
937 .Ar N
938 is an integer from 1 (fastest) to 9 (best compression ratio). Currently,
939 .Cm gzip
940 is equivalent to
941 .Cm gzip-6
942 (which is also the default for
943 .Xr gzip 1 ) .
944 The
945 .Cm zle
946 compression algorithm compresses runs of zeros.
947 .Pp
948 The
949 .Sy lz4
950 compression algorithm is a high-performance replacement
951 for the
952 .Sy lzjb
953 algorithm. It features significantly faster
954 compression and decompression, as well as a moderately higher
955 compression ratio than
956 .Sy lzjb ,
957 but can only be used on pools with
958 the
959 .Sy lz4_compress
960 feature set to
961 .Sy enabled .
962 See
963 .Xr zpool-features 7
964 for details on ZFS feature flags and the
965 .Sy lz4_compress
966 feature.
967 .Pp
968 This property can also be referred to by its shortened column name
969 .Cm compress .
970 Changing this property affects only newly-written data.
971 .It Sy copies Ns = Ns Cm 1 | 2 | 3
972 Controls the number of copies of data stored for this dataset. These copies are
973 in addition to any redundancy provided by the pool, for example, mirroring or
974 RAID-Z. The copies are stored on different disks, if possible. The space used
975 by multiple copies is charged to the associated file and dataset, changing the
976 .Sy used
977 property and counting against quotas and reservations.
978 .Pp
979 Changing this property only affects newly-written data. Therefore, set this
980 property at file system creation time by using the
981 .Fl o Cm copies= Ns Ar N
982 option.
983 .It Sy dedup Ns = Ns Cm on | off | verify | sha256 Ns Op Cm ,verify
984 Configures deduplication for a dataset. The default value is
985 .Cm off .
986 The default deduplication checksum is
987 .Cm sha256
988 (this may change in the future).
989 When
990 .Sy dedup
991 is enabled, the checksum defined here overrides the
992 .Sy checksum
993 property. Setting the value to
994 .Cm verify
995 has the same effect as the setting
996 .Cm sha256,verify .
997 .Pp
998 If set to
999 .Cm verify ,
1000 .Tn ZFS
1001 will do a byte-to-byte comparsion in case of two blocks having the same
1002 signature to make sure the block contents are identical.
1003 .It Sy devices Ns = Ns Cm on | off
1004 The
1005 .Sy devices
1006 property is currently not supported on
1007 .Fx .
1008 .It Sy exec Ns = Ns Cm on | off
1009 Controls whether processes can be executed from within this file system. The
1010 default value is
1011 .Cm on .
1012 .It Sy mlslabel Ns = Ns Ar label | Cm none
1013 The
1014 .Sy mlslabel
1015 property is currently not supported on
1016 .Fx .
1017 .It Sy mountpoint Ns = Ns Ar path | Cm none | legacy
1018 Controls the mount point used for this file system. See the
1019 .Qq Sx Mount Points
1020 section for more information on how this property is used.
1021 .Pp
1022 When the
1023 .Sy mountpoint
1024 property is changed for a file system, the file system and any children that
1025 inherit the mount point are unmounted. If the new value is
1026 .Cm legacy ,
1027 then they remain unmounted. Otherwise, they are automatically remounted in the
1028 new location if the property was previously
1029 .Cm legacy
1030 or
1031 .Cm none ,
1032 or if they were mounted before the property was changed. In addition, any
1033 shared file systems are unshared and shared in the new location.
1034 .It Sy nbmand Ns = Ns Cm on | off
1035 The
1036 .Sy nbmand
1037 property is currently not supported on
1038 .Fx .
1039 .It Sy primarycache Ns = Ns Cm all | none | metadata
1040 Controls what is cached in the primary cache (ARC). If this property is set to
1041 .Cm all ,
1042 then both user data and metadata is cached. If this property is set to
1043 .Cm none ,
1044 then neither user data nor metadata is cached. If this property is set to
1045 .Cm metadata ,
1046 then only metadata is cached. The default value is
1047 .Cm all .
1048 .It Sy quota Ns = Ns Ar size | Cm none
1049 Limits the amount of space a dataset and its descendents can consume. This
1050 property enforces a hard limit on the amount of space used. This includes all
1051 space consumed by descendents, including file systems and snapshots. Setting a
1052 quota on a descendent of a dataset that already has a quota does not override
1053 the ancestor's quota, but rather imposes an additional limit.
1054 .Pp
1055 Quotas cannot be set on volumes, as the
1056 .Sy volsize
1057 property acts as an implicit quota.
1058 .It Sy userquota@ Ns Ar user Ns = Ns Ar size | Cm none
1059 Limits the amount of space consumed by the specified user.
1060 Similar to the
1061 .Sy refquota
1062 property, the
1063 .Sy userquota
1064 space calculation does not include space that is used by descendent datasets,
1065 such as snapshots and clones. User space consumption is identified by the
1066 .Sy userspace@ Ns Ar user
1067 property.
1068 .Pp
1069 Enforcement of user quotas may be delayed by several seconds. This delay means
1070 that a user might exceed their quota before the system notices that they are
1071 over quota and begins to refuse additional writes with the
1072 .Em EDQUOT
1073 error message. See the
1074 .Cm userspace
1075 subcommand for more information.
1076 .Pp
1077 Unprivileged users can only access their own groups' space usage. The root
1078 user, or a user who has been granted the
1079 .Sy userquota
1080 privilege with
1081 .Qq Nm Cm allow ,
1082 can get and set everyone's quota.
1083 .Pp
1084 This property is not available on volumes, on file systems before version 4, or
1085 on pools before version 15. The
1086 .Sy userquota@ Ns ...
1087 properties are not displayed by
1088 .Qq Nm Cm get all .
1089 The user's name must be appended after the
1090 .Sy @
1091 symbol, using one of the following forms:
1092 .Bl -bullet -offset 2n
1093 .It
1094 POSIX name (for example,
1095 .Em joe )
1096 .It
1097 POSIX numeric ID (for example,
1098 .Em 1001 )
1099 .El
1100 .It Sy groupquota@ Ns Ar group Ns = Ns Ar size | Cm none
1101 Limits the amount of space consumed by the specified group. Group space
1102 consumption is identified by the
1103 .Sy userquota@ Ns Ar user
1104 property.
1105 .Pp
1106 Unprivileged users can access only their own groups' space usage. The root
1107 user, or a user who has been granted the
1108 .Sy groupquota
1109 privilege with
1110 .Qq Nm Cm allow ,
1111 can get and set all groups' quotas.
1112 .It Sy readonly Ns = Ns Cm on | off
1113 Controls whether this dataset can be modified. The default value is
1114 .Cm off .
1115 .It Sy recordsize Ns = Ns Ar size
1116 Specifies a suggested block size for files in the file system. This property is
1117 designed solely for use with database workloads that access files in fixed-size
1118 records.
1119 .Tn ZFS
1120 automatically tunes block sizes according to internal algorithms optimized for
1121 typical access patterns.
1122 .Pp
1123 For databases that create very large files but access them in small random
1124 chunks, these algorithms may be suboptimal. Specifying a
1125 .Sy recordsize
1126 greater than or equal to the record size of the database can result in
1127 significant performance gains. Use of this property for general purpose file
1128 systems is strongly discouraged, and may adversely affect performance.
1129 .Pp
1130 The size specified must be a power of two greater than or equal to 512 and less
1131 than or equal to 128 Kbytes.
1132 .Pp
1133 Changing the file system's
1134 .Sy recordsize
1135 affects only files created afterward; existing files are unaffected.
1136 .Pp
1137 This property can also be referred to by its shortened column name,
1138 .Sy recsize .
1139 .It Sy refquota Ns = Ns Ar size | Cm none
1140 Limits the amount of space a dataset can consume. This property enforces a hard
1141 limit on the amount of space used. This hard limit does not include space used
1142 by descendents, including file systems and snapshots.
1143 .It Sy refreservation Ns = Ns Ar size | Cm none
1144 The minimum amount of space guaranteed to a dataset, not including its
1145 descendents. When the amount of space used is below this value, the dataset is
1146 treated as if it were taking up the amount of space specified by
1147 .Sy refreservation .
1148 The
1149 .Sy refreservation
1150 reservation is accounted for in the parent datasets' space used, and counts
1151 against the parent datasets' quotas and reservations.
1152 .Pp
1153 If
1154 .Sy refreservation
1155 is set, a snapshot is only allowed if there is enough free pool space outside
1156 of this reservation to accommodate the current number of "referenced" bytes in
1157 the dataset.
1158 .Pp
1159 This property can also be referred to by its shortened column name,
1160 .Sy refreserv .
1161 .It Sy reservation Ns = Ns Ar size | Cm none
1162 The minimum amount of space guaranteed to a dataset and its descendents. When
1163 the amount of space used is below this value, the dataset is treated as if it
1164 were taking up the amount of space specified by its reservation. Reservations
1165 are accounted for in the parent datasets' space used, and count against the
1166 parent datasets' quotas and reservations.
1167 .Pp
1168 This property can also be referred to by its shortened column name,
1169 .Sy reserv .
1170 .It Sy secondarycache Ns = Ns Cm all | none | metadata
1171 Controls what is cached in the secondary cache (L2ARC). If this property is set
1172 to
1173 .Cm all ,
1174 then both user data and metadata is cached. If this property is set to
1175 .Cm none ,
1176 then neither user data nor metadata is cached. If this property is set to
1177 .Cm metadata ,
1178 then only metadata is cached. The default value is
1179 .Cm all .
1180 .It Sy setuid Ns = Ns Cm on | off
1181 Controls whether the
1182 .No set- Ns Tn UID
1183 bit is respected for the file system. The default value is
1184 .Cm on .
1185 .It Sy sharesmb Ns = Ns Cm on | off | Ar opts
1186 The
1187 .Sy sharesmb
1188 property currently has no effect on
1189 .Fx .
1190 .It Sy sharenfs Ns = Ns Cm on | off | Ar opts
1191 Controls whether the file system is shared via
1192 .Tn NFS ,
1193 and what options are used. A file system with a
1194 .Sy sharenfs
1195 property of
1196 .Cm off
1197 is managed the traditional way via
1198 .Xr exports 5 .
1199 Otherwise, the file system is automatically shared and unshared with the
1200 .Qq Nm Cm share
1201 and
1202 .Qq Nm Cm unshare
1203 commands. If the property is set to
1204 .Cm on
1205 no
1206 .Tn NFS
1207 export options are used. Otherwise,
1208 .Tn NFS
1209 export options are equivalent to the contents of this property. The export
1210 options may be comma-separated. See
1211 .Xr exports 5
1212 for a list of valid options.
1213 .Pp
1214 When the
1215 .Sy sharenfs
1216 property is changed for a dataset, the
1217 .Xr mountd 8
1218 daemon is reloaded.
1219 .It Sy logbias Ns = Ns Cm latency | throughput
1220 Provide a hint to
1221 .Tn ZFS
1222 about handling of synchronous requests in this dataset.
1223 If
1224 .Sy logbias
1225 is set to
1226 .Cm latency
1227 (the default),
1228 .Tn ZFS
1229 will use pool log devices (if configured) to handle the requests at low
1230 latency. If
1231 .Sy logbias
1232 is set to
1233 .Cm throughput ,
1234 .Tn ZFS
1235 will not use configured pool log devices.
1236 .Tn ZFS
1237 will instead optimize synchronous operations for global pool throughput and
1238 efficient use of resources.
1239 .It Sy snapdir Ns = Ns Cm hidden | visible
1240 Controls whether the
1241 .Pa \&.zfs
1242 directory is hidden or visible in the root of the file system as discussed in
1243 the
1244 .Qq Sx Snapshots
1245 section. The default value is
1246 .Cm hidden .
1247 .It Sy sync Ns = Ns Cm standard | always | disabled
1248 Controls the behavior of synchronous requests (e.g.
1249 .Xr fsync 2 ,
1250 O_DSYNC). This property accepts the following values:
1251 .Bl -tag -offset 4n -width 8n
1252 .It Sy standard
1253 This is the POSIX specified behavior of ensuring all synchronous requests are
1254 written to stable storage and all devices are flushed to ensure data is not
1255 cached by device controllers (this is the default).
1256 .It Sy always
1257 All file system transactions are written and flushed before their system calls
1258 return. This has a large performance penalty.
1259 .It Sy disabled
1260 Disables synchronous requests. File system transactions are only committed to
1261 stable storage periodically. This option will give the highest performance.
1262 However, it is very dangerous as
1263 .Tn ZFS
1264 would be ignoring the synchronous transaction demands of applications such as
1265 databases or
1266 .Tn NFS .
1267 Administrators should only use this option when the risks are understood.
1268 .El
1269 .It Sy volsize Ns = Ns Ar size
1270 For volumes, specifies the logical size of the volume. By default, creating a
1271 volume establishes a reservation of equal size. For storage pools with a
1272 version number of 9 or higher, a
1273 .Sy refreservation
1274 is set instead. Any changes to
1275 .Sy volsize
1276 are reflected in an equivalent change to the reservation (or
1277 .Sy refreservation ) .
1278 The
1279 .Sy volsize
1280 can only be set to a multiple of
1281 .Cm volblocksize ,
1282 and cannot be zero.
1283 .Pp
1284 The reservation is kept equal to the volume's logical size to prevent
1285 unexpected behavior for consumers. Without the reservation, the volume could
1286 run out of space, resulting in undefined behavior or data corruption, depending
1287 on how the volume is used. These effects can also occur when the volume size is
1288 changed while it is in use (particularly when shrinking the size). Extreme care
1289 should be used when adjusting the volume size.
1290 .Pp
1291 Though not recommended, a "sparse volume" (also known as "thin provisioning")
1292 can be created by specifying the
1293 .Fl s
1294 option to the
1295 .Qq Nm Cm create Fl V
1296 command, or by changing the reservation after the volume has been created. A
1297 "sparse volume" is a volume where the reservation is less then the volume size.
1298 Consequently, writes to a sparse volume can fail with
1299 .Sy ENOSPC
1300 when the pool is low on space. For a sparse volume, changes to
1301 .Sy volsize
1302 are not reflected in the reservation.
1303 .It Sy vscan Ns = Ns Cm off | on
1304 The
1305 .Sy vscan
1306 property is currently not supported on
1307 .Fx .
1308 .It Sy xattr Ns = Ns Cm off | on
1309 The
1310 .Sy xattr
1311 property is currently not supported on
1312 .Fx .
1313 .It Sy jailed Ns = Ns Cm off | on
1314 Controls whether the dataset is managed from a jail. See the
1315 .Qq Sx Jails
1316 section for more information. The default value is
1317 .Cm off .
1318 .El
1319 .Pp
1320 The following three properties cannot be changed after the file system is
1321 created, and therefore, should be set when the file system is created. If the
1322 properties are not set with the
1323 .Qq Nm Cm create
1324 or
1325 .Nm zpool Cm create
1326 commands, these properties are inherited from the parent dataset. If the parent
1327 dataset lacks these properties due to having been created prior to these
1328 features being supported, the new file system will have the default values for
1329 these properties.
1330 .Bl -tag -width 4n
1331 .It Sy casesensitivity Ns = Ns Cm sensitive | insensitive | mixed
1332 The
1333 .Sy casesensitivity
1334 property is currently not supported on
1335 .Fx .
1336 .It Sy normalization Ns = Ns Cm none | formC | formD | formKC | formKD
1337 Indicates whether the file system should perform a
1338 .Sy unicode
1339 normalization of file names whenever two file names are compared, and which
1340 normalization algorithm should be used. File names are always stored
1341 unmodified, names are normalized as part of any comparison process. If this
1342 property is set to a legal value other than
1343 .Cm none ,
1344 and the
1345 .Sy utf8only
1346 property was left unspecified, the
1347 .Sy utf8only
1348 property is automatically set to
1349 .Cm on .
1350 The default value of the
1351 .Sy normalization
1352 property is
1353 .Cm none .
1354 This property cannot be changed after the file system is created.
1355 .It Sy utf8only Ns = Ns Cm on | off
1356 Indicates whether the file system should reject file names that include
1357 characters that are not present in the
1358 .Sy UTF-8
1359 character code set. If this property is explicitly set to
1360 .Cm off ,
1361 the normalization property must either not be explicitly set or be set to
1362 .Cm none .
1363 The default value for the
1364 .Sy utf8only
1365 property is
1366 .Cm off .
1367 This property cannot be changed after the file system is created.
1368 .El
1369 .Pp
1370 The
1371 .Sy casesensitivity , normalization , No and Sy utf8only
1372 properties are also new permissions that can be assigned to non-privileged
1373 users by using the
1374 .Tn ZFS
1375 delegated administration feature.
1376 .Ss Temporary Mount Point Properties
1377 When a file system is mounted, either through
1378 .Xr mount 8
1379 for legacy mounts or the
1380 .Qq Nm Cm mount
1381 command for normal file systems, its mount options are set according to its
1382 properties. The correlation between properties and mount options is as follows:
1383 .Bl -column -offset 4n "PROPERTY" "MOUNT OPTION"
1384 .It PROPERTY    MOUNT OPTION
1385 .It atime       atime/noatime
1386 .It exec        exec/noexec
1387 .It readonly    ro/rw
1388 .It setuid      suid/nosuid
1389 .El
1390 .Pp
1391 In addition, these options can be set on a per-mount basis using the
1392 .Fl o
1393 option, without affecting the property that is stored on disk. The values
1394 specified on the command line override the values stored in the dataset. These
1395 properties are reported as "temporary" by the
1396 .Qq Nm Cm get
1397 command. If the properties are changed while the dataset is mounted, the new
1398 setting overrides any temporary settings.
1399 .Ss User Properties
1400 In addition to the standard native properties,
1401 .Tn ZFS
1402 supports arbitrary user properties. User properties have no effect on
1403 .Tn ZFS
1404 behavior, but applications or administrators can use them to annotate datasets
1405 (file systems, volumes, and snapshots).
1406 .Pp
1407 User property names must contain a colon
1408 .Pq Sy \&:
1409 character to distinguish them from native properties. They may contain
1410 lowercase letters, numbers, and the following punctuation characters: colon
1411 .Pq Sy \&: ,
1412 dash
1413 .Pq Sy \&- ,
1414 period
1415 .Pq Sy \&.
1416 and underscore
1417 .Pq Sy \&_ .
1418 The expected convention is that the property name is divided into two portions
1419 such as
1420 .Em module Ns Sy \&: Ns Em property ,
1421 but this namespace is not enforced by
1422 .Tn ZFS .
1423 User property names can be at most 256 characters, and cannot begin with a dash
1424 .Pq Sy \&- .
1425 .Pp
1426 When making programmatic use of user properties, it is strongly suggested to
1427 use a reversed
1428 .Tn DNS
1429 domain name for the
1430 .Ar module
1431 component of property names to reduce the chance that two
1432 independently-developed packages use the same property name for different
1433 purposes. Property names beginning with
1434 .Em com.sun
1435 are reserved for use by Sun Microsystems.
1436 .Pp
1437 The values of user properties are arbitrary strings, are always inherited, and
1438 are never validated. All of the commands that operate on properties
1439 .Po
1440 .Qq Nm Cm list ,
1441 .Qq Nm Cm get ,
1442 .Qq Nm Cm set
1443 and so forth
1444 .Pc
1445 can be used to manipulate both native properties and user properties. Use the
1446 .Qq Nm Cm inherit
1447 command to clear a user property. If the property is not defined in any parent
1448 dataset, it is removed entirely. Property values are limited to 1024
1449 characters.
1450 .Sh SUBCOMMANDS
1451 All subcommands that modify state are logged persistently to the pool in their
1452 original form.
1453 .Bl -tag -width 2n
1454 .It Xo
1455 .Nm
1456 .Op Fl \&?
1457 .Xc
1458 .Pp
1459 Displays a help message.
1460 .It Xo
1461 .Nm
1462 .Cm create
1463 .Op Fl p
1464 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
1465 .Ar filesystem
1466 .Xc
1467 .Pp
1468 Creates a new
1469 .Tn ZFS
1470 file system. The file system is automatically mounted according to the
1471 .Sy mountpoint
1472 property inherited from the parent.
1473 .Bl -tag -width indent
1474 .It Fl p
1475 Creates all the non-existing parent datasets. Datasets created in this manner
1476 are automatically mounted according to the
1477 .Sy mountpoint
1478 property inherited from their parent. Any property specified on the command
1479 line using the
1480 .Fl o
1481 option is ignored. If the target filesystem already exists, the operation
1482 completes successfully.
1483 .It Fl o Ar property Ns = Ns Ar value
1484 Sets the specified property as if the command
1485 .Qq Nm Cm set Ar property Ns = Ns Ar value
1486 was invoked at the same time the dataset was created. Any editable
1487 .Tn ZFS
1488 property can also be set at creation time. Multiple
1489 .Fl o
1490 options can be specified. An error results if the same property is specified in
1491 multiple
1492 .Fl o
1493 options.
1494 .El
1495 .It Xo
1496 .Nm
1497 .Cm create
1498 .Op Fl ps
1499 .Op Fl b Ar blocksize
1500 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
1501 .Fl V
1502 .Ar size volume
1503 .Xc
1504 .Pp
1505 Creates a volume of the given size. The volume is exported as a block device in
1506 .Pa /dev/zvol/path ,
1507 where
1508 .Ar path
1509 is the name of the volume in the
1510 .Tn ZFS
1511 namespace. The size represents the logical size as exported by the device. By
1512 default, a reservation of equal size is created.
1513 .Pp
1514 .Ar size
1515 is automatically rounded up to the nearest 128 Kbytes to ensure that
1516 the volume has an integral number of blocks regardless of
1517 .Ar blocksize .
1518 .Bl -tag -width indent
1519 .It Fl p
1520 Creates all the non-existing parent datasets. Datasets created in this manner
1521 are automatically mounted according to the
1522 .Sy mountpoint
1523 property inherited from their parent. Any property specified on the command
1524 line using the
1525 .Fl o
1526 option is ignored. If the target filesystem already exists, the operation
1527 completes successfully.
1528 .It Fl s
1529 Creates a sparse volume with no reservation. See
1530 .Sy volsize
1531 in the
1532 .Qq Sx Native Properties
1533 section for more information about sparse volumes.
1534 .It Fl b Ar blocksize
1535 Equivalent to
1536 .Fl o Cm volblocksize Ns = Ns Ar blocksize .
1537 If this option is specified in conjunction with
1538 .Fl o Cm volblocksize ,
1539 the resulting behavior is undefined.
1540 .It Fl o Ar property Ns = Ns Ar value
1541 Sets the specified property as if the
1542 .Qq Nm Cm set Ar property Ns = Ns Ar value
1543 command was invoked at the same time the dataset was created. Any editable
1544 .Tn ZFS
1545 property can also be set at creation time. Multiple
1546 .Fl o
1547 options can be specified. An error results if the same property is specified in
1548 multiple
1549 .Fl o
1550 options.
1551 .El
1552 .It Xo
1553 .Nm
1554 .Cm destroy
1555 .Op Fl fnpRrv
1556 .Ar filesystem Ns | Ns Ar volume
1557 .Xc
1558 .Pp
1559 Destroys the given dataset. By default, the command unshares any file systems
1560 that are currently shared, unmounts any file systems that are currently
1561 mounted, and refuses to destroy a dataset that has active dependents (children
1562 or clones).
1563 .Bl -tag -width indent
1564 .It Fl r
1565 Recursively destroy all children.
1566 .It Fl R
1567 Recursively destroy all dependents, including cloned file systems outside the
1568 target hierarchy.
1569 .It Fl f
1570 Force an unmount of any file systems using the
1571 .Qq Nm Cm unmount Fl f
1572 command. This option has no effect on non-file systems or unmounted file
1573 systems.
1574 .It Fl n
1575 Do a dry-run ("No-op") deletion. No data will be deleted. This is useful in
1576 conjunction with the
1577 .Fl v
1578 or
1579 .Fl p
1580 flags to determine what data would be deleted.
1581 .It Fl p
1582 Print machine-parsable verbose information about the deleted data.
1583 .It Fl v
1584 Print verbose information about the deleted data.
1585 .El
1586 .Pp
1587 Extreme care should be taken when applying either the
1588 .Fl r
1589 or the
1590 .Fl R
1591 options, as they can destroy large portions of a pool and cause unexpected
1592 behavior for mounted file systems in use.
1593 .It Xo
1594 .Nm
1595 .Cm destroy
1596 .Op Fl dnpRrv
1597 .Sm off
1598 .Ar snapshot
1599 .Op % Ns Ar snapname
1600 .Op , Ns ...
1601 .Sm on
1602 .Xc
1603 .Pp
1604 The given snapshots are destroyed immediately if and only if the
1605 .Qq Nm Cm destroy
1606 command without the
1607 .Fl d
1608 option would have destroyed it. Such immediate destruction would occur, for
1609 example, if the snapshot had no clones and the user-initiated reference count
1610 were zero.
1611 .Pp
1612 If a snapshot does not qualify for immediate destruction, it is marked for
1613 deferred deletion. In this state, it exists as a usable, visible snapshot until
1614 both of the preconditions listed above are met, at which point it is destroyed.
1615 .Pp
1616 An inclusive range of snapshots may be specified by separating the
1617 first and last snapshots with a percent sign
1618 .Pq Sy % .
1619 The first and/or last snapshots may be left blank, in which case the
1620 filesystem's oldest or newest snapshot will be implied.
1621 .Pp
1622 Multiple snapshots
1623 (or ranges of snapshots) of the same filesystem or volume may be specified
1624 in a comma-separated list of snapshots.
1625 Only the snapshot's short name (the
1626 part after the
1627 .Sy @ )
1628 should be specified when using a range or comma-separated list to identify
1629 multiple snapshots.
1630 .Bl -tag -width indent
1631 .It Fl r
1632 Destroy (or mark for deferred deletion) all snapshots with this name in
1633 descendent file systems.
1634 .It Fl R
1635 Recursively destroy all clones of these snapshots, including the clones,
1636 snapshots, and children.
1637 If this flag is specified, the
1638 .Op fl d
1639 flag will have no effect.
1640 .It Fl n
1641 Do a dry-run ("No-op") deletion. No data will be deleted. This is useful in
1642 conjunction with the
1643 .Fl v
1644 or
1645 .Fl p
1646 flags to determine what data would be deleted.
1647 .It Fl p
1648 Print machine-parsable verbose information about the deleted data.
1649 .It Fl v
1650 Print verbose information about the deleted data.
1651 .It Fl d
1652 Defer snapshot deletion.
1653 .El
1654 .Pp
1655 Extreme care should be taken when applying either the
1656 .Fl r
1657 or the
1658 .Fl R
1659 options, as they can destroy large portions of a pool and cause unexpected
1660 behavior for mounted file systems in use.
1661 .It Xo
1662 .Nm
1663 .Cm destroy
1664 .Ar filesystem Ns | Ns Ar volume Ns # Ns Ar bookmark
1665 .Xc
1666 .Pp
1667 The given bookmark is destroyed.
1668 .It Xo
1669 .Nm
1670 .Cm snapshot Ns | Ns Cm snap
1671 .Op Fl r
1672 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
1673 .Ar filesystem@snapname Ns | Ns volume@snapname
1674 .Ar filesystem@snapname Ns | Ns volume@snapname Ns ...
1675 .Xc
1676 .Pp
1677 Creates snapshots with the given names. All previous modifications by
1678 successful system calls to the file system are part of the snapshots.
1679 Snapshots are taken atomically, so that all snapshots correspond to the same
1680 moment in time. See the
1681 .Qq Sx Snapshots
1682 section for details.
1683 .Bl -tag -width indent
1684 .It Fl r
1685 Recursively create snapshots of all descendent datasets
1686 .It Fl o Ar property Ns = Ns Ar value
1687 Sets the specified property; see
1688 .Qq Nm Cm create
1689 for details.
1690 .El
1691 .It Xo
1692 .Nm
1693 .Cm rollback
1694 .Op Fl rRf
1695 .Ar snapshot
1696 .Xc
1697 .Pp
1698 Roll back the given dataset to a previous snapshot. When a dataset is rolled
1699 back, all data that has changed since the snapshot is discarded, and the
1700 dataset reverts to the state at the time of the snapshot. By default, the
1701 command refuses to roll back to a snapshot other than the most recent one. In
1702 order to do so, all intermediate snapshots and bookmarks must be destroyed
1703 by specifying the
1704 .Fl r
1705 option.
1706 .Pp
1707 The
1708 .Fl rR
1709 options do not recursively destroy the child snapshots of a
1710 recursive snapshot.
1711 Only direct snapshots of the specified filesystem
1712 are destroyed by either of these options.
1713 To completely roll back a
1714 recursive snapshot, you must rollback the individual child snapshots.
1715 .Bl -tag -width indent
1716 .It Fl r
1717 Destroy any snapshots and bookmarks more recent than the one specified.
1718 .It Fl R
1719 Destroy any more recent snapshots and bookmarks, as well as any clones of those
1720 snapshots.
1721 .It Fl f
1722 Used with the
1723 .Fl R
1724 option to force an unmount of any clone file systems that are to be destroyed.
1725 .El
1726 .It Xo
1727 .Nm
1728 .Cm clone
1729 .Op Fl p
1730 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
1731 .Ar snapshot filesystem Ns | Ns Ar volume
1732 .Xc
1733 .Pp
1734 Creates a clone of the given snapshot. See the
1735 .Qq Sx Clones
1736 section for details. The target dataset can be located anywhere in the
1737 .Tn ZFS
1738 hierarchy, and is created as the same type as the original.
1739 .Bl -tag -width indent
1740 .It Fl p
1741 Creates all the non-existing parent datasets. Datasets created in this manner
1742 are automatically mounted according to the
1743 .Sy mountpoint
1744 property inherited from their parent. If the target filesystem or volume
1745 already exists, the operation completes successfully.
1746 .It Fl o Ar property Ns = Ns Ar value
1747 Sets the specified property; see
1748 .Qq Nm Cm create
1749 for details.
1750 .El
1751 .It Xo
1752 .Nm
1753 .Cm promote
1754 .Ar clone-filesystem
1755 .Xc
1756 .Pp
1757 Promotes a clone file system to no longer be dependent on its "origin"
1758 snapshot. This makes it possible to destroy the file system that the clone was
1759 created from. The clone parent-child dependency relationship is reversed, so
1760 that the origin file system becomes a clone of the specified file system.
1761 .Pp
1762 The snapshot that was cloned, and any snapshots previous to this snapshot, are
1763 now owned by the promoted clone. The space they use moves from the origin file
1764 system to the promoted clone, so enough space must be available to accommodate
1765 these snapshots. No new space is consumed by this operation, but the space
1766 accounting is adjusted. The promoted clone must not have any conflicting
1767 snapshot names of its own. The
1768 .Cm rename
1769 subcommand can be used to rename any conflicting snapshots.
1770 .It Xo
1771 .Nm
1772 .Cm rename
1773 .Op Fl f
1774 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
1775 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
1776 .Xc
1777 .It Xo
1778 .Nm
1779 .Cm rename
1780 .Op Fl f
1781 .Fl p
1782 .Ar filesystem Ns | Ns Ar volume
1783 .Ar filesystem Ns | Ns Ar volume
1784 .Xc
1785 .It Xo
1786 .Nm
1787 .Cm rename
1788 .Fl u
1789 .Op Fl p
1790 .Ar filesystem filesystem
1791 .Xc
1792 .Pp
1793 Renames the given dataset. The new target can be located anywhere in the
1794 .Tn ZFS
1795 hierarchy, with the exception of snapshots. Snapshots can only be renamed
1796 within the parent file system or volume. When renaming a snapshot, the parent
1797 file system of the snapshot does not need to be specified as part of the second
1798 argument. Renamed file systems can inherit new mount points, in which case they
1799 are unmounted and remounted at the new mount point.
1800 .Bl -tag -width indent
1801 .It Fl p
1802 Creates all the nonexistent parent datasets. Datasets created in this manner
1803 are automatically mounted according to the
1804 .Sy mountpoint
1805 property inherited from their parent.
1806 .It Fl u
1807 Do not remount file systems during rename. If a file system's
1808 .Sy mountpoint
1809 property is set to
1810 .Cm legacy
1811 or
1812 .Cm none ,
1813 file system is not unmounted even if this option is not given.
1814 .It Fl f
1815 Force unmount any filesystems that need to be unmounted in the process.
1816 This flag has no effect if used together with the
1817 .Fl u
1818 flag.
1819 .El
1820 .It Xo
1821 .Nm
1822 .Cm rename
1823 .Fl r
1824 .Ar snapshot snapshot
1825 .Xc
1826 .Pp
1827 Recursively rename the snapshots of all descendent datasets. Snapshots are the
1828 only dataset that can be renamed recursively.
1829 .It Xo
1830 .Nm
1831 .Cm list
1832 .Op Fl r Ns | Ns Fl d Ar depth
1833 .Op Fl Hp
1834 .Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
1835 .Op Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
1836 .Oo Fl s Ar property Oc Ns ...
1837 .Oo Fl S Ar property Oc Ns ...
1838 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
1839 .Xc
1840 .Pp
1841 Lists the property information for the given datasets in tabular form. If
1842 specified, you can list property information by the absolute pathname or the
1843 relative pathname. By default, all file systems and volumes are displayed.
1844 Snapshots are displayed if the
1845 .Sy listsnaps
1846 property is
1847 .Cm on
1848 (the default is
1849 .Cm off ) .
1850 The following fields are displayed,
1851 .Sy name , used , available , referenced , mountpoint .
1852 .Bl -tag -width indent
1853 .It Fl r
1854 Recursively display any children of the dataset on the command line.
1855 .It Fl d Ar depth
1856 Recursively display any children of the dataset, limiting the recursion to
1857 .Ar depth .
1858 A depth of
1859 .Sy 1
1860 will display only the dataset and its direct children.
1861 .It Fl H
1862 Used for scripting mode. Do not print headers and separate fields by a single
1863 tab instead of arbitrary white space.
1864 .It Fl p
1865 Display numbers in parsable (exact) values.
1866 .It Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
1867 A comma-separated list of properties to display. The property must be:
1868 .Bl -bullet -offset 2n
1869 .It
1870 One of the properties described in the
1871 .Qq Sx Native Properties
1872 section
1873 .It
1874 A user property
1875 .It
1876 The value
1877 .Cm name
1878 to display the dataset name
1879 .It
1880 The value
1881 .Cm space
1882 to display space usage properties on file systems and volumes. This is a
1883 shortcut for specifying
1884 .Fl o
1885 .Sy name,avail,used,usedsnap,usedds,usedrefreserv,usedchild
1886 .Fl t
1887 .Sy filesystem,volume
1888 syntax.
1889 .El
1890 .It Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
1891 A comma-separated list of types to display, where
1892 .Ar type
1893 is one of
1894 .Sy filesystem , snapshot , snap , volume , bookmark , No or Sy all .
1895 For example, specifying
1896 .Fl t Cm snapshot
1897 displays only snapshots.
1898 .It Fl s Ar property
1899 A property for sorting the output by column in ascending order based on the
1900 value of the property. The property must be one of the properties described in
1901 the
1902 .Qq Sx Properties
1903 section, or the special value
1904 .Cm name
1905 to sort by the dataset name. Multiple properties can be specified at one time
1906 using multiple
1907 .Fl s
1908 property options. Multiple
1909 .Fl s
1910 options are evaluated from left to right in decreasing order of importance.
1911 .Pp
1912 The following is a list of sorting criteria:
1913 .Bl -bullet -offset 2n
1914 .It
1915 Numeric types sort in numeric order.
1916 .It
1917 String types sort in alphabetical order.
1918 .It
1919 Types inappropriate for a row sort that row to the literal bottom, regardless
1920 of the specified ordering.
1921 .It
1922 If no sorting options are specified the existing behavior of
1923 .Qq Nm Cm list
1924 is preserved.
1925 .El
1926 .It Fl S Ar property
1927 Same as the
1928 .Fl s
1929 option, but sorts by property in descending order.
1930 .El
1931 .It Xo
1932 .Nm
1933 .Cm set
1934 .Ar property Ns = Ns Ar value
1935 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
1936 .Xc
1937 .Pp
1938 Sets the property to the given value for each dataset. Only some properties can
1939 be edited. See the "Properties" section for more information on what properties
1940 can be set and acceptable values. Numeric values can be specified as exact
1941 values, or in a human-readable form with a suffix of
1942 .Sy B , K , M , G , T , P , E , Z
1943 (for bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes, or
1944 zettabytes, respectively). User properties can be set on snapshots. For more
1945 information, see the
1946 .Qq Sx User Properties
1947 section.
1948 .It Xo
1949 .Nm
1950 .Cm get
1951 .Op Fl r Ns | Ns Fl d Ar depth
1952 .Op Fl Hp
1953 .Op Fl o Ar all | field Ns Oo , Ns Ar field Oc Ns ...
1954 .Op Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
1955 .Op Fl s Ar source Ns Oo , Ns Ar source Oc Ns ...
1956 .Ar all | property Ns Oo , Ns Ar property Oc Ns ...
1957 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
1958 .Xc
1959 .Pp
1960 Displays properties for the given datasets. If no datasets are specified, then
1961 the command displays properties for all datasets on the system. For each
1962 property, the following columns are displayed:
1963 .Pp
1964 .Bl -hang -width "property" -offset indent -compact
1965 .It name
1966 Dataset name
1967 .It property
1968 Property name
1969 .It value
1970 Property value
1971 .It source
1972 Property source. Can either be local, default, temporary, inherited, or none
1973 (\&-).
1974 .El
1975 .Pp
1976 All columns except the
1977 .Sy RECEIVED
1978 column are displayed by default. The columns to display can be specified
1979 by using the
1980 .Fl o
1981 option. This command takes a comma-separated list of properties as described in
1982 the
1983 .Qq Sx Native Properties
1984 and
1985 .Qq Sx User Properties
1986 sections.
1987 .Pp
1988 The special value
1989 .Cm all
1990 can be used to display all properties that apply to the given dataset's type
1991 (filesystem, volume, snapshot, or bookmark).
1992 .Bl -tag -width indent
1993 .It Fl r
1994 Recursively display properties for any children.
1995 .It Fl d Ar depth
1996 Recursively display any children of the dataset, limiting the recursion to
1997 .Ar depth .
1998 A depth of
1999 .Sy 1
2000 will display only the dataset and its direct children.
2001 .It Fl H
2002 Display output in a form more easily parsed by scripts. Any headers are
2003 omitted, and fields are explicitly separated by a single tab instead of an
2004 arbitrary amount of space.
2005 .It Fl p
2006 Display numbers in parsable (exact) values.
2007 .It Fl o Cm all | Ar field Ns Oo , Ns Ar field Oc Ns ...
2008 A comma-separated list of columns to display. Supported values are
2009 .Sy name,property,value,received,source .
2010 Default values are
2011 .Sy name,property,value,source .
2012 The keyword
2013 .Cm all
2014 specifies all columns.
2015 .It Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
2016 A comma-separated list of types to display, where
2017 .Ar type
2018 is one of
2019 .Sy filesystem , snapshot , volume , No or Sy all .
2020 For example, specifying
2021 .Fl t Cm snapshot
2022 displays only snapshots.
2023 .It Fl s Ar source Ns Oo , Ns Ar source Oc Ns ...
2024 A comma-separated list of sources to display. Those properties coming from a
2025 source other than those in this list are ignored. Each source must be one of
2026 the following:
2027 .Sy local,default,inherited,temporary,received,none .
2028 The default value is all sources.
2029 .El
2030 .It Xo
2031 .Nm
2032 .Cm inherit
2033 .Op Fl rS
2034 .Ar property
2035 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
2036 .Xc
2037 .Pp
2038 Clears the specified property, causing it to be inherited from an ancestor. If
2039 no ancestor has the property set, then the default value is used. See the
2040 .Qq Sx Properties
2041 section for a listing of default values, and details on which properties can be
2042 inherited.
2043 .Bl -tag -width indent
2044 .It Fl r
2045 Recursively inherit the given property for all children.
2046 .It Fl S
2047 For properties with a received value, revert to this value. This flag has no
2048 effect on properties that do not have a received value.
2049 .El
2050 .It Xo
2051 .Nm
2052 .Cm upgrade
2053 .Op Fl v
2054 .Xc
2055 .Pp
2056 Displays a list of file systems that are not the most recent version.
2057 .Bl -tag -width indent
2058 .It Fl v
2059 Displays
2060 .Tn ZFS
2061 filesystem versions supported by the current software. The current
2062 .Tn ZFS
2063 filesystem version and all previous supported versions are displayed, along
2064 with an explanation of the features provided with each version.
2065 .El
2066 .It Xo
2067 .Nm
2068 .Cm upgrade
2069 .Op Fl r
2070 .Op Fl V Ar version
2071 .Fl a | Ar filesystem
2072 .Xc
2073 .Pp
2074 Upgrades file systems to a new on-disk version. Once this is done, the file
2075 systems will no longer be accessible on systems running older versions of the
2076 software.
2077 .Qq Nm Cm send
2078 streams generated from new snapshots of these file systems cannot be accessed
2079 on systems running older versions of the software.
2080 .Pp
2081 In general, the file system version is independent of the pool version. See
2082 .Xr zpool 8
2083 for information on the
2084 .Nm zpool Cm upgrade
2085 command.
2086 .Pp
2087 In some cases, the file system version and the pool version are interrelated
2088 and the pool version must be upgraded before the file system version can be
2089 upgraded.
2090 .Bl -tag -width indent
2091 .It Fl r
2092 Upgrade the specified file system and all descendent file systems.
2093 .It Fl V Ar version
2094 Upgrade to the specified
2095 .Ar version .
2096 If the
2097 .Fl V
2098 flag is not specified, this command upgrades to the most recent version. This
2099 option can only be used to increase the version number, and only up to the most
2100 recent version supported by this software.
2101 .It Fl a
2102 Upgrade all file systems on all imported pools.
2103 .It Ar filesystem
2104 Upgrade the specified file system.
2105 .El
2106 .It Xo
2107 .Nm
2108 .Cm userspace
2109 .Op Fl Hinp
2110 .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
2111 .Oo Fl s Ar field Oc Ns ...
2112 .Oo Fl S Ar field Oc Ns ...
2113 .Op Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
2114 .Ar filesystem Ns | Ns Ar snapshot
2115 .Xc
2116 .Pp
2117 Displays space consumed by, and quotas on, each user in the specified
2118 filesystem or snapshot. This corresponds to the
2119 .Sy userused@ Ns Ar user
2120 and
2121 .Sy userquota@ Ns Ar user
2122 properties.
2123 .Bl -tag -width indent
2124 .It Fl n
2125 Print numeric ID instead of user/group name.
2126 .It Fl H
2127 Do not print headers, use tab-delimited output.
2128 .It Fl p
2129 Use exact (parsable) numeric output.
2130 .It Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
2131 Display only the specified fields from the following set:
2132 .Sy type,name,used,quota .
2133 The default is to display all fields.
2134 .It Fl s Ar field
2135 Sort output by this field. The
2136 .Fl s
2137 and
2138 .Fl S
2139 flags may be specified multiple times to sort first by one field, then by
2140 another. The default is
2141 .Fl s Cm type Fl s Cm name .
2142 .It Fl S Ar field
2143 Sort by this field in reverse order. See
2144 .Fl s .
2145 .It Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
2146 Print only the specified types from the following set:
2147 .Sy all,posixuser,smbuser,posixgroup,smbgroup .
2148 .Pp
2149 The default is
2150 .Fl t Cm posixuser,smbuser .
2151 .Pp
2152 The default can be changed to include group types.
2153 .It Fl i
2154 Translate SID to POSIX ID. This flag currently has no effect on
2155 .Fx .
2156 .El
2157 .It Xo
2158 .Nm
2159 .Cm groupspace
2160 .Op Fl Hinp
2161 .Op Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
2162 .Oo Fl s Ar field Oc Ns ...
2163 .Oo Fl S Ar field Oc Ns ...
2164 .Op Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
2165 .Ar filesystem Ns | Ns Ar snapshot
2166 .Xc
2167 .Pp
2168 Displays space consumed by, and quotas on, each group in the specified
2169 filesystem or snapshot. This subcommand is identical to
2170 .Qq Nm Cm userspace ,
2171 except that the default types to display are
2172 .Fl t Sy posixgroup,smbgroup .
2173 .It Xo
2174 .Nm
2175 .Cm mount
2176 .Xc
2177 .Pp
2178 Displays all
2179 .Tn ZFS
2180 file systems currently mounted.
2181 .Bl -tag -width indent
2182 .It Fl f
2183 .El
2184 .It Xo
2185 .Nm
2186 .Cm mount
2187 .Op Fl vO
2188 .Op Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
2189 .Fl a | Ar filesystem
2190 .Xc
2191 .Pp
2192 Mounts
2193 .Tn ZFS
2194 file systems.
2195 .Bl -tag -width indent
2196 .It Fl v
2197 Report mount progress.
2198 .It Fl O
2199 Perform an overlay mount. Overlay mounts are not supported on
2200 .Fx .
2201 .It Fl o Ar property Ns Oo , Ns Ar property Oc Ns ...
2202 An optional, comma-separated list of mount options to use temporarily for the
2203 duration of the mount. See the
2204 .Qq Sx Temporary Mount Point Properties
2205 section for details.
2206 .It Fl a
2207 Mount all available
2208 .Tn ZFS
2209 file systems.
2210 This command may be executed on
2211 .Fx
2212 system startup by
2213 .Pa /etc/rc.d/zfs .
2214 For more information, see variable
2215 .Va zfs_enable
2216 in
2217 .Xr rc.conf 5 .
2218 .It Ar filesystem
2219 Mount the specified filesystem.
2220 .El
2221 .It Xo
2222 .Nm
2223 .Cm unmount Ns | Ns Cm umount
2224 .Op Fl f
2225 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
2226 .Xc
2227 .Pp
2228 Unmounts currently mounted
2229 .Tn ZFS
2230 file systems.
2231 .Bl -tag -width indent
2232 .It Fl f
2233 Forcefully unmount the file system, even if it is currently in use.
2234 .It Fl a
2235 Unmount all available
2236 .Tn ZFS
2237 file systems.
2238 .It Ar filesystem | mountpoint
2239 Unmount the specified filesystem. The command can also be given a path to a
2240 .Tn ZFS
2241 file system mount point on the system.
2242 .El
2243 .It Xo
2244 .Nm
2245 .Cm share
2246 .Fl a | Ar filesystem
2247 .Xc
2248 .Pp
2249 Shares
2250 .Tn ZFS
2251 file systems that have the
2252 .Sy sharenfs
2253 property set.
2254 .Bl -tag -width indent
2255 .It Fl a
2256 Share all
2257 .Tn ZFS
2258 file systems that have the
2259 .Sy sharenfs
2260 property set.
2261 This command may be executed on
2262 .Fx
2263 system startup by
2264 .Pa /etc/rc.d/zfs .
2265 For more information, see variable
2266 .Va zfs_enable
2267 in
2268 .Xr rc.conf 5 .
2269 .It Ar filesystem
2270 Share the specified filesystem according to the
2271 .Tn sharenfs
2272 property. File systems are shared when the
2273 .Tn sharenfs
2274 property is set.
2275 .El
2276 .It Xo
2277 .Nm
2278 .Cm unshare
2279 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
2280 .Xc
2281 .Pp
2282 Unshares
2283 .Tn ZFS
2284 file systems that have the
2285 .Tn sharenfs
2286 property set.
2287 .Bl -tag -width indent
2288 .It Fl a
2289 Unshares
2290 .Tn ZFS
2291 file systems that have the
2292 .Sy sharenfs
2293 property set.
2294 This command may be executed on
2295 .Fx
2296 system shutdown by
2297 .Pa /etc/rc.d/zfs .
2298 For more information, see variable
2299 .Va zfs_enable
2300 in
2301 .Xr rc.conf 5 .
2302 .It Ar filesystem | mountpoint
2303 Unshare the specified filesystem. The command can also be given a path to a
2304 .Tn ZFS
2305 file system shared on the system.
2306 .El
2307 .It Xo
2308 .Nm
2309 .Cm bookmark
2310 .Ar snapshot
2311 .Ar bookmark
2312 .Xc
2313 .Pp
2314 Creates a bookmark of the given snapshot.
2315 Bookmarks mark the point in time
2316 when the snapshot was created, and can be used as the incremental source for
2317 a
2318 .Qq Nm Cm send
2319 command.
2320 .Pp
2321 This feature must be enabled to be used.
2322 See
2323 .Xr zpool-features 7
2324 for details on ZFS feature flags and the
2325 .Sy bookmark
2326 feature.
2327 .It Xo
2328 .Nm
2329 .Cm send
2330 .Op Fl DnPpRv
2331 .Op Fl i Ar snapshot | Fl I Ar snapshot
2332 .Ar snapshot
2333 .Xc
2334 .Pp
2335 Creates a stream representation of the last
2336 .Ar snapshot
2337 argument (not part of
2338 .Fl i
2339 or
2340 .Fl I )
2341 which is written to standard output. The output can be redirected to
2342 a file or to a different system (for example, using
2343 .Xr ssh 1 ) .
2344 By default, a full stream is generated.
2345 .Bl -tag -width indent
2346 .It Fl i Ar snapshot
2347 Generate an incremental stream from the first
2348 .Ar snapshot Pq the incremental source
2349 to the second
2350 .Ar snapshot Pq the incremental target .
2351 The incremental source can be specified as the last component of the
2352 snapshot name
2353 .Pq the Em @ No character and following
2354 and
2355 it is assumed to be from the same file system as the incremental target.
2356 .Pp
2357 If the destination is a clone, the source may be the origin snapshot, which
2358 must be fully specified (for example,
2359 .Cm pool/fs@origin ,
2360 not just
2361 .Cm @origin ) .
2362 .It Fl I Ar snapshot
2363 Generate a stream package that sends all intermediary snapshots from the first
2364 .Ar snapshot
2365 to the second
2366 .Ar snapshot .
2367 For example,
2368 .Ic -I @a fs@d
2369 is similar to
2370 .Ic -i @a fs@b; -i @b fs@c; -i @c fs@d .
2371 The incremental
2372 source may be specified as with the
2373 .Fl i
2374 option.
2375 .It Fl R
2376 Generate a replication stream package, which will replicate the specified
2377 filesystem, and all descendent file systems, up to the named snapshot. When
2378 received, all properties, snapshots, descendent file systems, and clones are
2379 preserved.
2380 .Pp
2381 If the
2382 .Fl i
2383 or
2384 .Fl I
2385 flags are used in conjunction with the
2386 .Fl R
2387 flag, an incremental replication stream is generated. The current values of
2388 properties, and current snapshot and file system names are set when the stream
2389 is received. If the
2390 .Fl F
2391 flag is specified when this stream is received, snapshots and file systems that
2392 do not exist on the sending side are destroyed.
2393 .It Fl D
2394 Generate a deduplicated stream. Blocks which would have been sent multiple
2395 times in the send stream will only be sent once.  The receiving system must
2396 also support this feature to receive a deduplicated stream.  This flag can
2397 be used regardless of the dataset's
2398 .Sy dedup
2399 property, but performance will be much better if the filesystem uses a
2400 dedup-capable checksum (eg.
2401 .Sy sha256 ) .
2402 .It Fl p
2403 Include the dataset's properties in the stream. This flag is implicit when
2404 .Fl R
2405 is specified. The receiving system must also support this feature.
2406 .It Fl n
2407 Do a dry-run ("No-op") send.  Do not generate any actual send data.  This is
2408 useful in conjunction with the
2409 .Fl v
2410 or
2411 .Fl P
2412 flags to determine what data will be sent.
2413 .It Fl P
2414 Print machine-parsable verbose information about the stream package generated.
2415 .It Fl v
2416 Print verbose information about the stream package generated.
2417 This information includes a per-second report of how much data has been sent.
2418 .El
2419 .Pp
2420 The format of the stream is committed. You will be able to receive your streams
2421 on future versions of
2422 .Tn ZFS .
2423 .It Xo
2424 .Nm
2425 .Cm send
2426 .Op Fl i Ar snapshot Ns | Ns Ar bookmark
2427 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
2428 .Xc
2429 .Pp
2430 Generate a send stream, which may be of a filesystem, and may be
2431 incremental from a bookmark.
2432 If the destination is a filesystem or volume,
2433 the pool must be read-only, or the filesystem must not be mounted.
2434 When the
2435 stream generated from a filesystem or volume is received, the default snapshot
2436 name will be
2437 .Pq --head-- .
2438 .Bl -tag -width indent
2439 .It Fl i Ar snapshot Ns | Ns bookmark
2440 Generate an incremental send stream.
2441 The incremental source must be an earlier
2442 snapshot in the destination's history.
2443 It will commonly be an earlier
2444 snapshot in the destination's filesystem, in which case it can be
2445 specified as the last component of the name
2446 .Pq the Em # No or Em @ No character and following .
2447 .Pp
2448 If the incremental target is a clone, the incremental source can
2449 be the origin snapshot, or an earlier snapshot in the origin's filesystem,
2450 or the origin's origin, etc.
2451 .El
2452 .It Xo
2453 .Nm
2454 .Cm receive Ns | Ns Cm recv
2455 .Op Fl vnFu
2456 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
2457 .Xc
2458 .It Xo
2459 .Nm
2460 .Cm receive Ns | Ns Cm recv
2461 .Op Fl vnFu
2462 .Op Fl d | e
2463 .Ar filesystem
2464 .Xc
2465 .Pp
2466 Creates a snapshot whose contents are as specified in the stream provided on
2467 standard input. If a full stream is received, then a new file system is created
2468 as well. Streams are created using the
2469 .Qq Nm Cm send
2470 subcommand, which by default creates a full stream.
2471 .Qq Nm Cm recv
2472 can be used as an alias for
2473 .Qq Nm Cm receive .
2474 .Pp
2475 If an incremental stream is received, then the destination file system must
2476 already exist, and its most recent snapshot must match the incremental stream's
2477 source. For
2478 .Sy zvol Ns s,
2479 the destination device link is destroyed and recreated, which means the
2480 .Sy zvol
2481 cannot be accessed during the
2482 .Sy receive
2483 operation.
2484 .Pp
2485 When a snapshot replication package stream that is generated by using the
2486 .Qq Nm Cm send Fl R
2487 command is received, any snapshots that do not exist on the sending location
2488 are destroyed by using the
2489 .Qq Nm Cm destroy Fl d
2490 command.
2491 .Pp
2492 The name of the snapshot (and file system, if a full stream is received) that
2493 this subcommand creates depends on the argument type and the
2494 .Fl d
2495 or
2496 .Fl e
2497 option.
2498 .Pp
2499 If the argument is a snapshot name, the specified
2500 .Ar snapshot
2501 is created. If the argument is a file system or volume name, a snapshot with
2502 the same name as the sent snapshot is created within the specified
2503 .Ar filesystem
2504 or
2505 .Ar volume .
2506 If the
2507 .Fl d
2508 or
2509 .Fl e
2510 option is specified, the snapshot name is determined by appending the sent
2511 snapshot's name to the specified
2512 .Ar filesystem .
2513 If the
2514 .Fl d
2515 option is specified, all but the pool name of the sent snapshot path is
2516 appended (for example,
2517 .Sy b/c@1
2518 appended from sent snapshot
2519 .Sy a/b/c@1 ) ,
2520 and if the
2521 .Fl e
2522 option is specified, only the tail of the sent snapshot path is appended (for
2523 example,
2524 .Sy c@1
2525 appended from sent snapshot
2526 .Sy a/b/c@1 ) .
2527 In the case of
2528 .Fl d ,
2529 any file systems needed to replicate the path of the sent snapshot are created
2530 within the specified file system.
2531 .Bl -tag -width indent
2532 .It Fl d
2533 Use the full sent snapshot path without the first element (without pool name)
2534 to determine the name of the new snapshot as described in the paragraph above.
2535 .It Fl e
2536 Use only the last element of the sent snapshot path to determine the name of
2537 the new snapshot as described in the paragraph above.
2538 .It Fl u
2539 File system that is associated with the received stream is not mounted.
2540 .It Fl v
2541 Print verbose information about the stream and the time required to perform the
2542 receive operation.
2543 .It Fl n
2544 Do not actually receive the stream. This can be useful in conjunction with the
2545 .Fl v
2546 option to verify the name the receive operation would use.
2547 .It Fl F
2548 Force a rollback of the file system to the most recent snapshot before
2549 performing the receive operation. If receiving an incremental replication
2550 stream (for example, one generated by
2551 .Qq Nm Cm send Fl R Fi iI ) ,
2552 destroy snapshots and file systems that do not exist on the sending side.
2553 .El
2554 .It Xo
2555 .Nm
2556 .Cm allow
2557 .Ar filesystem Ns | Ns Ar volume
2558 .Xc
2559 .Pp
2560 Displays permissions that have been delegated on the specified filesystem or
2561 volume. See the other forms of
2562 .Qq Nm Cm allow
2563 for more information.
2564 .It Xo
2565 .Nm
2566 .Cm allow
2567 .Op Fl ldug
2568 .Ar user Ns | Ns Ar group Ns Oo Ns , Ns Ar user Ns | Ns Ar group Oc Ns ...
2569 .Ar perm Ns | Ns Ar @setname Ns
2570 .Oo Ns , Ns Ar perm Ns | Ns Ar @setname Oc Ns ...
2571 .Ar filesystem Ns | Ns Ar volume
2572 .Xc
2573 .It Xo
2574 .Nm
2575 .Cm allow
2576 .Op Fl ld
2577 .Fl e Ns | Ns Cm everyone
2578 .Ar perm Ns | Ns Ar @setname Ns Op Ns , Ns Ar perm Ns | Ns Ar @setname Ns
2579 .Ns ...
2580 .Ar filesystem Ns | Ns Ar volume
2581 .Xc
2582 .Pp
2583 Delegates
2584 .Tn ZFS
2585 administration permission for the file systems to non-privileged users.
2586 .Bl -tag -width indent
2587 .It Xo
2588 .Op Fl ug
2589 .Ar user Ns | Ns Ar group Ns Oo , Ar user Ns | Ns Ar group Oc Ns ...
2590 .Xc
2591 Specifies to whom the permissions are delegated. Multiple entities can be
2592 specified as a comma-separated list. If neither of the
2593 .Fl ug
2594 options are specified, then the argument is interpreted preferentially as the
2595 keyword
2596 .Cm everyone ,
2597 then as a user name, and lastly as a group name. To specify
2598 a user or group named
2599 .Qq everyone ,
2600 use the
2601 .Fl u
2602 or
2603 .Fl g
2604 options. To specify a group with the same name as a user, use the
2605 .Fl g
2606 option.
2607 .It Op Fl e Ns | Ns Cm everyone
2608 Specifies that the permissions be delegated to
2609 .Qq everyone .
2610 .It Xo
2611 .Ar perm Ns | Ns Ar @setname Ns Oo , Ns Ar perm Ns | Ns Ar @setname Oc Ns ...
2612 .Xc
2613 The permissions to delegate. Multiple permissions
2614 may be specified as a comma-separated list. Permission names are the same as
2615 .Tn ZFS
2616 subcommand and property names. See the property list below. Property set names,
2617 which begin with an at sign
2618 .Pq Sy @ ,
2619 may be specified. See the
2620 .Fl s
2621 form below for details.
2622 .It Xo
2623 .Op Fl ld
2624 .Ar filesystem Ns | Ns Ar volume
2625 .Xc
2626 Specifies where the permissions are delegated. If neither of the
2627 .Fl ld
2628 options are specified, or both are, then the permissions are allowed for the
2629 file system or volume, and all of its descendents. If only the
2630 .Fl l
2631 option is used, then is allowed "locally" only for the specified file system.
2632 If only the
2633 .Fl d
2634 option is used, then is allowed only for the descendent file systems.
2635 .El
2636 .Pp
2637 Permissions are generally the ability to use a
2638 .Tn ZFS
2639 subcommand or change a
2640 .Tn ZFS
2641 property. The following permissions are available:
2642 .Bl -column -offset 4n "secondarycache" "subcommand"
2643 .It NAME Ta TYPE Ta NOTES
2644 .It allow Ta subcommand Ta Must Xo
2645 also have the permission that is being allowed
2646 .Xc
2647 .It clone Ta subcommand Ta Must Xo
2648 also have the 'create' ability and 'mount' ability in the origin file system
2649 .Xc
2650 .It create Ta subcommand Ta Must also have the 'mount' ability
2651 .It destroy Ta subcommand Ta Must also have the 'mount' ability
2652 .It diff Ta subcommand Ta Allows lookup of paths within a dataset given an
2653 object number, and the ability to create snapshots necessary to 'zfs diff'
2654 .It hold Ta subcommand Ta Allows adding a user hold to a snapshot
2655 .It mount Ta subcommand Ta Allows mount/umount of Tn ZFS No datasets
2656 .It promote Ta subcommand Ta Must Xo
2657 also have the 'mount' and 'promote' ability in the origin file system
2658 .Xc
2659 .It receive Ta subcommand Ta Must also have the 'mount' and 'create' ability
2660 .It release Ta subcommand Ta Allows Xo
2661 releasing a user hold which might destroy the snapshot
2662 .Xc
2663 .It rename Ta subcommand Ta Must Xo
2664 also have the 'mount' and 'create' ability in the new parent
2665 .Xc
2666 .It rollback Ta subcommand Ta Must also have the 'mount' ability
2667 .It send Ta subcommand
2668 .It share Ta subcommand Ta Allows Xo
2669 sharing file systems over the
2670 .Tn NFS
2671 protocol
2672 .Xc
2673 .It snapshot Ta subcommand Ta Must also have the 'mount' ability
2674 .It groupquota Ta other Ta Allows accessing any groupquota@... property
2675 .It groupused Ta other Ta Allows reading any groupused@... property
2676 .It userprop Ta other Ta Allows changing any user property
2677 .It userquota Ta other Ta Allows accessing any userquota@... property
2678 .It userused Ta other Ta Allows reading any userused@... property
2679 .It aclinherit Ta property
2680 .It aclmode Ta property
2681 .It atime Ta property
2682 .It canmount Ta property
2683 .It casesensitivity Ta property
2684 .It checksum Ta property
2685 .It compression Ta property
2686 .It copies Ta property
2687 .It dedup Ta property
2688 .It devices Ta property
2689 .It exec Ta property
2690 .It logbias Ta property
2691 .It jailed Ta property
2692 .It mlslabel Ta property
2693 .It mountpoint Ta property
2694 .It nbmand Ta property
2695 .It normalization Ta property
2696 .It primarycache Ta property
2697 .It quota Ta property
2698 .It readonly Ta property
2699 .It recordsize Ta property
2700 .It refquota Ta property
2701 .It refreservation Ta property
2702 .It reservation Ta property
2703 .It secondarycache Ta property
2704 .It setuid Ta property
2705 .It sharenfs Ta property
2706 .It sharesmb Ta property
2707 .It snapdir Ta property
2708 .It sync Ta property
2709 .It utf8only Ta property
2710 .It version Ta property
2711 .It volblocksize Ta property
2712 .It volsize Ta property
2713 .It vscan Ta property
2714 .It xattr Ta property
2715 .El
2716 .It Xo
2717 .Nm
2718 .Cm allow
2719 .Fl c
2720 .Ar perm Ns | Ns Ar @setname Ns Op Ns , Ns Ar perm Ns | Ns Ar @setname Ns
2721 .Ns ...
2722 .Ar filesystem Ns | Ns Ar volume
2723 .Xc
2724 .Pp
2725 Sets "create time" permissions. These permissions are granted (locally) to the
2726 creator of any newly-created descendent file system.
2727 .It Xo
2728 .Nm
2729 .Cm allow
2730 .Fl s
2731 .Ar @setname
2732 .Ar perm Ns | Ns Ar @setname Ns Op Ns , Ns Ar perm Ns | Ns Ar @setname Ns
2733 .Ns ...
2734 .Ar filesystem Ns | Ns Ar volume
2735 .Xc
2736 .Pp
2737 Defines or adds permissions to a permission set. The set can be used by other
2738 .Qq Nm Cm allow
2739 commands for the specified file system and its descendents. Sets are evaluated
2740 dynamically, so changes to a set are immediately reflected. Permission sets
2741 follow the same naming restrictions as ZFS file systems, but the name must
2742 begin with an "at sign"
2743 .Pq Sy @ ,
2744 and can be no more than 64 characters long.
2745 .It Xo
2746 .Nm
2747 .Cm unallow
2748 .Op Fl rldug
2749 .Ar user Ns | Ns Ar group Ns Oo Ns , Ns Ar user Ns | Ns Ar group Oc Ns ...
2750 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
2751 .Ns ... Oc
2752 .Ar filesystem Ns | Ns Ar volume
2753 .Xc
2754 .It Xo
2755 .Nm
2756 .Cm unallow
2757 .Op Fl rld
2758 .Fl e Ns | Ns Cm everyone
2759 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
2760 .Ns ... Oc
2761 .Ar filesystem Ns | Ns Ar volume
2762 .Xc
2763 .It Xo
2764 .Nm
2765 .Cm unallow
2766 .Op Fl r
2767 .Fl c
2768 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
2769 .Ns ... Oc
2770 .Ar filesystem Ns | Ns Ar volume
2771 .Xc
2772 .Pp
2773 Removes permissions that were granted with the
2774 .Qq Nm Cm allow
2775 command. No permissions are explicitly denied, so other permissions granted are
2776 still in effect. For example, if the permission is granted by an ancestor. If
2777 no permissions are specified, then all permissions for the specified
2778 .Ar user , group , No or everyone
2779 are removed. Specifying
2780 .Cm everyone
2781 .Po or using the Fl e
2782 option
2783 .Pc only removes the permissions that were granted to everyone ,
2784 not all permissions for every user and group. See the
2785 .Qq Nm Cm allow
2786 command for a description of the
2787 .Fl ldugec
2788 options.
2789 .Bl -tag -width indent
2790 .It Fl r
2791 Recursively remove the permissions from this file system and all descendents.
2792 .El
2793 .It Xo
2794 .Nm
2795 .Cm unallow
2796 .Op Fl r
2797 .Fl s
2798 .Ar @setname
2799 .Oo Ar perm Ns | Ns Ar @setname Ns Op , Ns Ar perm Ns | Ns Ar @setname Ns
2800 .Ns ... Oc
2801 .Ar filesystem Ns | Ns Ar volume
2802 .Xc
2803 .Pp
2804 Removes permissions from a permission set. If no permissions are specified,
2805 then all permissions are removed, thus removing the set entirely.
2806 .It Xo
2807 .Nm
2808 .Cm hold
2809 .Op Fl r
2810 .Ar tag snapshot Ns ...
2811 .Xc
2812 .Pp
2813 Adds a single reference, named with the
2814 .Ar tag
2815 argument, to the specified snapshot or snapshots. Each snapshot has its own tag
2816 namespace, and tags must be unique within that space.
2817 .Pp
2818 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
2819 .Qq Nm Cm destroy
2820 command returns
2821 .Em EBUSY .
2822 .Bl -tag -width indent
2823 .It Fl r
2824 Specifies that a hold with the given tag is applied recursively to the
2825 snapshots of all descendent file systems.
2826 .El
2827 .It Xo
2828 .Nm
2829 .Cm holds
2830 .Op Fl r
2831 .Ar snapshot Ns ...
2832 .Xc
2833 .Pp
2834 Lists all existing user references for the given snapshot or snapshots.
2835 .Bl -tag -width indent
2836 .It Fl r
2837 Lists the holds that are set on the named descendent snapshots, in addition to
2838 listing the holds on the named snapshot.
2839 .El
2840 .It Xo
2841 .Nm
2842 .Cm release
2843 .Op Fl r
2844 .Ar tag snapshot Ns ...
2845 .Xc
2846 .Pp
2847 Removes a single reference, named with the
2848 .Ar tag
2849 argument, from the specified snapshot or snapshots. The tag must already exist
2850 for each snapshot.
2851 .Bl -tag -width indent
2852 .It Fl r
2853 Recursively releases a hold with the given tag on the snapshots of all
2854 descendent file systems.
2855 .El
2856 .It Xo
2857 .Nm
2858 .Cm diff
2859 .Op Fl FHt
2860 .Ar snapshot
2861 .Op Ar snapshot Ns | Ns Ar filesystem
2862 .Xc
2863 .Pp
2864 Display the difference between a snapshot of a given filesystem and another
2865 snapshot of that filesystem from a later time or the current contents of the
2866 filesystem.  The first column is a character indicating the type of change,
2867 the other columns indicate pathname, new pathname
2868 .Pq in case of rename ,
2869 change in link count, and optionally file type and/or change time.
2870 .Pp
2871 The types of change are:
2872 .Bl -column -offset 2n indent
2873 .It \&- Ta path was removed
2874 .It \&+ Ta path was added
2875 .It \&M Ta path was modified
2876 .It \&R Ta path was renamed
2877 .El
2878 .Bl -tag -width indent
2879 .It Fl F
2880 Display an indication of the type of file, in a manner similar to the
2881 .Fl F
2882 option of
2883 .Xr ls 1 .
2884 .Bl -column -offset 2n indent
2885 .It \&B Ta block device
2886 .It \&C Ta character device
2887 .It \&F Ta regular file
2888 .It \&/ Ta directory
2889 .It \&@ Ta symbolic link
2890 .It \&= Ta socket
2891 .It \&> Ta door (not supported on Fx )
2892 .It \&| Ta named pipe (not supported on Fx )
2893 .It \&P Ta event port (not supported on Fx )
2894 .El
2895 .It Fl H
2896 Give more parsable tab-separated output, without header lines and without
2897 arrows.
2898 .It Fl t
2899 Display the path's inode change time as the first column of output.
2900 .El
2901 .It Xo
2902 .Nm
2903 .Cm jail
2904 .Ar jailid filesystem
2905 .Xc
2906 .Pp
2907 Attaches the specified
2908 .Ar filesystem
2909 to the jail identified by JID
2910 .Ar jailid .
2911 From now on this file system tree can be managed from within a jail if the
2912 .Sy jailed
2913 property has been set. To use this functionality, the jail needs the
2914 .Va enforce_statfs
2915 parameter set to
2916 .Sy 0
2917 and the
2918 .Va allow.mount
2919 parameter set to
2920 .Sy 1 .
2921 .Pp
2922 See
2923 .Xr jail 8
2924 for more information on managing jails and configuring the parameters above.
2925 .It Xo
2926 .Nm
2927 .Cm unjail
2928 .Ar jailid filesystem
2929 .Xc
2930 .Pp
2931 Detaches the specified
2932 .Ar filesystem
2933 from the jail identified by JID
2934 .Ar jailid .
2935 .El
2936 .Sh EXIT STATUS
2937 The following exit values are returned:
2938 .Bl -tag -offset 2n -width 2n
2939 .It 0
2940 Successful completion.
2941 .It 1
2942 An error occurred.
2943 .It 2
2944 Invalid command line options were specified.
2945 .El
2946 .Sh EXAMPLES
2947 .Bl -tag -width 0n
2948 .It Sy Example 1 No Creating a Tn ZFS No File System Hierarchy
2949 .Pp
2950 The following commands create a file system named
2951 .Em pool/home
2952 and a file system named
2953 .Em pool/home/bob .
2954 The mount point
2955 .Pa /home
2956 is set for the parent file system, and is automatically inherited by the child
2957 file system.
2958 .Bd -literal -offset 2n
2959 .Li # Ic zfs create pool/home
2960 .Li # Ic zfs set mountpoint=/home pool/home
2961 .Li # Ic zfs create pool/home/bob
2962 .Ed
2963 .It Sy Example 2 No Creating a Tn ZFS No Snapshot
2964 .Pp
2965 The following command creates a snapshot named
2966 .Sy yesterday .
2967 This snapshot is mounted on demand in the
2968 .Pa \&.zfs/snapshot
2969 directory at the root of the
2970 .Em pool/home/bob
2971 file system.
2972 .Bd -literal -offset 2n
2973 .Li # Ic zfs snapshot pool/home/bob@yesterday
2974 .Ed
2975 .It Sy Example 3 No Creating and Destroying Multiple Snapshots
2976 .Pp
2977 The following command creates snapshots named
2978 .Em yesterday
2979 of
2980 .Em pool/home
2981 and all of its descendent file systems. Each snapshot is mounted on demand in
2982 the
2983 .Pa \&.zfs/snapshot
2984 directory at the root of its file system. The second command destroys the newly
2985 created snapshots.
2986 .Bd -literal -offset 2n
2987 .Li # Ic zfs snapshot -r pool/home@yesterday
2988 .Li # Ic zfs destroy -r pool/home@yesterday
2989 .Ed
2990 .It Sy Example 4 No Disabling and Enabling File System Compression
2991 .Pp
2992 The following command disables the
2993 .Sy compression
2994 property for all file systems under
2995 .Em pool/home .
2996 The next command explicitly enables
2997 .Sy compression
2998 for
2999 .Em pool/home/anne .
3000 .Bd -literal -offset 2n
3001 .Li # Ic zfs set compression=off pool/home
3002 .Li # Ic zfs set compression=on pool/home/anne
3003 .Ed
3004 .It Sy Example 5 No Listing Tn ZFS No Datasets
3005 .Pp
3006 The following command lists all active file systems and volumes in the system.
3007 Snapshots are displayed if the
3008 .Sy listsnaps
3009 property is
3010 .Cm on .
3011 The default is
3012 .Cm off .
3013 See
3014 .Xr zpool 8
3015 for more information on pool properties.
3016 .Bd -literal -offset 2n
3017 .Li # Ic zfs list
3018    NAME                      USED  AVAIL  REFER  MOUNTPOINT
3019    pool                      450K   457G    18K  /pool
3020    pool/home                 315K   457G    21K  /home
3021    pool/home/anne             18K   457G    18K  /home/anne
3022    pool/home/bob             276K   457G   276K  /home/bob
3023 .Ed
3024 .It Sy Example 6 No Setting a Quota on a Tn ZFS No File System
3025 .Pp
3026 The following command sets a quota of 50 Gbytes for
3027 .Em pool/home/bob .
3028 .Bd -literal -offset 2n
3029 .Li # Ic zfs set quota=50G pool/home/bob
3030 .Ed
3031 .It Sy Example 7 No Listing Tn ZFS No Properties
3032 .Pp
3033 The following command lists all properties for
3034 .Em pool/home/bob .
3035 .Bd -literal -offset 2n
3036 .Li # Ic zfs get all pool/home/bob
3037 NAME           PROPERTY              VALUE                  SOURCE
3038 pool/home/bob  type                  filesystem             -
3039 pool/home/bob  creation              Tue Jul 21 15:53 2009  -
3040 pool/home/bob  used                  21K                    -
3041 pool/home/bob  available             20.0G                  -
3042 pool/home/bob  referenced            21K                    -
3043 pool/home/bob  compressratio         1.00x                  -
3044 pool/home/bob  mounted               yes                    -
3045 pool/home/bob  quota                 20G                    local
3046 pool/home/bob  reservation           none                   default
3047 pool/home/bob  recordsize            128K                   default
3048 pool/home/bob  mountpoint            /home/bob              default
3049 pool/home/bob  sharenfs              off                    default
3050 pool/home/bob  checksum              on                     default
3051 pool/home/bob  compression           on                     local
3052 pool/home/bob  atime                 on                     default
3053 pool/home/bob  devices               on                     default
3054 pool/home/bob  exec                  on                     default
3055 pool/home/bob  setuid                on                     default
3056 pool/home/bob  readonly              off                    default
3057 pool/home/bob  jailed                off                    default
3058 pool/home/bob  snapdir               hidden                 default
3059 pool/home/bob  aclmode               discard                default
3060 pool/home/bob  aclinherit            restricted             default
3061 pool/home/bob  canmount              on                     default
3062 pool/home/bob  xattr                 on                     default
3063 pool/home/bob  copies                1                      default
3064 pool/home/bob  version               5                      -
3065 pool/home/bob  utf8only              off                    -
3066 pool/home/bob  normalization         none                   -
3067 pool/home/bob  casesensitivity       sensitive              -
3068 pool/home/bob  vscan                 off                    default
3069 pool/home/bob  nbmand                off                    default
3070 pool/home/bob  sharesmb              off                    default
3071 pool/home/bob  refquota              none                   default
3072 pool/home/bob  refreservation        none                   default
3073 pool/home/bob  primarycache          all                    default
3074 pool/home/bob  secondarycache        all                    default
3075 pool/home/bob  usedbysnapshots       0                      -
3076 pool/home/bob  usedbydataset         21K                    -
3077 pool/home/bob  usedbychildren        0                      -
3078 pool/home/bob  usedbyrefreservation  0                      -
3079 pool/home/bob  logbias               latency                default
3080 pool/home/bob  dedup                 off                    default
3081 pool/home/bob  mlslabel                                     -
3082 pool/home/bob  sync                  standard               default
3083 pool/home/bob  refcompressratio      1.00x                  -
3084 .Ed
3085 .Pp
3086 The following command gets a single property value.
3087 .Bd -literal -offset 2n
3088 .Li # Ic zfs get -H -o value compression pool/home/bob
3089 on
3090 .Ed
3091 .Pp
3092 The following command lists all properties with local settings for
3093 .Em pool/home/bob .
3094 .Bd -literal -offset 2n
3095 .Li # Ic zfs get -s local -o name,property,value all pool/home/bob
3096 NAME           PROPERTY              VALUE
3097 pool/home/bob  quota                 20G
3098 pool/home/bob  compression           on
3099 .Ed
3100 .It Sy Example 8 No Rolling Back a Tn ZFS No File System
3101 .Pp
3102 The following command reverts the contents of
3103 .Em pool/home/anne
3104 to the snapshot named
3105 .Em yesterday ,
3106 deleting all intermediate snapshots.
3107 .Bd -literal -offset 2n
3108 .Li # Ic zfs rollback -r pool/home/anne@yesterday
3109 .Ed
3110 .It Sy Example 9 No Creating a Tn ZFS No Clone
3111 .Pp
3112 The following command creates a writable file system whose initial contents are
3113 the same as
3114 .Em pool/home/bob@yesterday .
3115 .Bd -literal -offset 2n
3116 .Li # Ic zfs clone pool/home/bob@yesterday pool/clone
3117 .Ed
3118 .It Sy Example 10 No Promoting a Tn ZFS No Clone
3119 .Pp
3120 The following commands illustrate how to test out changes to a file system, and
3121 then replace the original file system with the changed one, using clones, clone
3122 promotion, and renaming:
3123 .Bd -literal -offset 2n
3124 .Li # Ic zfs create pool/project/production
3125 .Ed
3126 .Pp
3127 Populate
3128 .Pa /pool/project/production
3129 with data and continue with the following commands:
3130 .Bd -literal -offset 2n
3131 .Li # Ic zfs snapshot pool/project/production@today
3132 .Li # Ic zfs clone pool/project/production@today pool/project/beta
3133 .Ed
3134 .Pp
3135 Now make changes to
3136 .Pa /pool/project/beta
3137 and continue with the following commands:
3138 .Bd -literal -offset 2n
3139 .Li # Ic zfs promote pool/project/beta
3140 .Li # Ic zfs rename pool/project/production pool/project/legacy
3141 .Li # Ic zfs rename pool/project/beta pool/project/production
3142 .Ed
3143 .Pp
3144 Once the legacy version is no longer needed, it can be destroyed.
3145 .Bd -literal -offset 2n
3146 .Li # Ic zfs destroy pool/project/legacy
3147 .Ed
3148 .It Sy Example 11 No Inheriting Tn ZFS No Properties
3149 .Pp
3150 The following command causes
3151 .Em pool/home/bob
3152 and
3153 .Em pool/home/anne
3154 to inherit the
3155 .Sy checksum
3156 property from their parent.
3157 .Bd -literal -offset 2n
3158 .Li # Ic zfs inherit checksum pool/home/bob pool/home/anne
3159 .Ed
3160 .It Sy Example 12 No Remotely Replicating Tn ZFS No Data
3161 .Pp
3162 The following commands send a full stream and then an incremental stream to a
3163 remote machine, restoring them into
3164 .Sy poolB/received/fs@a
3165 and
3166 .Sy poolB/received/fs@b ,
3167 respectively.
3168 .Sy poolB
3169 must contain the file system
3170 .Sy poolB/received ,
3171 and must not initially contain
3172 .Sy poolB/received/fs .
3173 .Bd -literal -offset 2n
3174 .Li # Ic zfs send pool/fs@a | ssh host zfs receive poolB/received/fs@a
3175 .Li # Ic zfs send -i a pool/fs@b | ssh host zfs receive poolB/received/fs
3176 .Ed
3177 .It Xo
3178 .Sy Example 13
3179 Using the
3180 .Qq zfs receive -d
3181 Option
3182 .Xc
3183 .Pp
3184 The following command sends a full stream of
3185 .Sy poolA/fsA/fsB@snap
3186 to a remote machine, receiving it into
3187 .Sy poolB/received/fsA/fsB@snap .
3188 The
3189 .Sy fsA/fsB@snap
3190 portion of the received snapshot's name is determined from the name of the sent
3191 snapshot.
3192 .Sy poolB
3193 must contain the file system
3194 .Sy poolB/received .
3195 If
3196 .Sy poolB/received/fsA
3197 does not exist, it is created as an empty file system.
3198 .Bd -literal -offset 2n
3199 .Li # Ic zfs send poolA/fsA/fsB@snap | ssh host zfs receive -d poolB/received
3200 .Ed
3201 .It Sy Example 14 No Setting User Properties
3202 .Pp
3203 The following example sets the user-defined
3204 .Sy com.example:department
3205 property for a dataset.
3206 .Bd -literal -offset 2n
3207 .Li # Ic zfs set com.example:department=12345 tank/accounting
3208 .Ed
3209 .It Sy Example 15 No Performing a Rolling Snapshot
3210 .Pp
3211 The following example shows how to maintain a history of snapshots with a
3212 consistent naming scheme. To keep a week's worth of snapshots, the user
3213 destroys the oldest snapshot, renames the remaining snapshots, and then creates
3214 a new snapshot, as follows:
3215 .Bd -literal -offset 2n
3216 .Li # Ic zfs destroy -r pool/users@7daysago
3217 .Li # Ic zfs rename -r pool/users@6daysago @7daysago
3218 .Li # Ic zfs rename -r pool/users@5daysago @6daysago
3219 .Li # Ic zfs rename -r pool/users@4daysago @5daysago
3220 .Li # Ic zfs rename -r pool/users@3daysago @4daysago
3221 .Li # Ic zfs rename -r pool/users@2daysago @3daysago
3222 .Li # Ic zfs rename -r pool/users@yesterday @2daysago
3223 .Li # Ic zfs rename -r pool/users@today @yesterday
3224 .Li # Ic zfs snapshot -r pool/users@today
3225 .Ed
3226 .It Xo
3227 .Sy Example 16
3228 Setting
3229 .Qq sharenfs
3230 Property Options on a ZFS File System
3231 .Xc
3232 .Pp
3233 The following command shows how to set
3234 .Sy sharenfs
3235 property options to enable root access for a specific network on the
3236 .Em tank/home
3237 file system. The contents of the
3238 .Sy sharenfs
3239 property are valid
3240 .Xr exports 5
3241 options.
3242 .Bd -literal -offset 2n
3243 .Li # Ic zfs set sharenfs="maproot=root,network 192.168.0.0/24" tank/home
3244 .Ed
3245 .Pp
3246 Another way to write this command with the same result is:
3247 .Bd -literal -offset 2n
3248 .Li # Ic set zfs sharenfs="-maproot=root -network 192.168.0.0/24" tank/home
3249 .Ed
3250 .It Xo
3251 .Sy Example 17
3252 Delegating
3253 .Tn ZFS
3254 Administration Permissions on a
3255 .Tn ZFS
3256 Dataset
3257 .Xc
3258 .Pp
3259 The following example shows how to set permissions so that user
3260 .Em cindys
3261 can create, destroy, mount, and take snapshots on
3262 .Em tank/cindys .
3263 The permissions on
3264 .Em tank/cindys
3265 are also displayed.
3266 .Bd -literal -offset 2n
3267 .Li # Ic zfs allow cindys create,destroy,mount,snapshot tank/cindys
3268 .Li # Ic zfs allow tank/cindys
3269 -------------------------------------------------------------
3270 Local+Descendent permissions on (tank/cindys)
3271           user cindys create,destroy,mount,snapshot
3272 -------------------------------------------------------------
3273 .Ed
3274 .It Sy Example 18 No Delegating Create Time Permissions on a Tn ZFS No Dataset
3275 .Pp
3276 The following example shows how to grant anyone in the group
3277 .Em staff
3278 to create file systems in
3279 .Em tank/users .
3280 This syntax also allows staff members to destroy their own file systems, but
3281 not destroy anyone else's file system. The permissions on
3282 .Em tank/users
3283 are also displayed.
3284 .Bd -literal -offset 2n
3285 .Li # Ic zfs allow staff create,mount tank/users
3286 .Li # Ic zfs allow -c destroy tank/users
3287 .Li # Ic zfs allow tank/users
3288 -------------------------------------------------------------
3289 Create time permissions on (tank/users)
3290           create,destroy
3291 Local+Descendent permissions on (tank/users)
3292           group staff create,mount
3293 -------------------------------------------------------------
3294 .Ed
3295 .It Xo
3296 .Sy Example 19
3297 Defining and Granting a Permission Set on a
3298 .Tn ZFS
3299 Dataset
3300 .Xc
3301 .Pp
3302 The following example shows how to define and grant a permission set on the
3303 .Em tank/users
3304 file system. The permissions on
3305 .Em tank/users
3306 are also displayed.
3307 .Bd -literal -offset 2n
3308 .Li # Ic zfs allow -s @pset create,destroy,snapshot,mount tank/users
3309 .Li # Ic zfs allow staff @pset tank/users
3310 .Li # Ic zfs allow tank/users
3311 -------------------------------------------------------------
3312 Permission sets on (tank/users)
3313         @pset create,destroy,mount,snapshot
3314 Create time permissions on (tank/users)
3315         create,destroy
3316 Local+Descendent permissions on (tank/users)
3317         group staff @pset,create,mount
3318 -------------------------------------------------------------
3319 .Ed
3320 .It Sy Example 20 No Delegating Property Permissions on a Tn ZFS No Dataset
3321 .Pp
3322 The following example shows to grant the ability to set quotas and reservations
3323 on the
3324 .Sy users/home
3325 file system. The permissions on
3326 .Sy users/home
3327 are also displayed.
3328 .Bd -literal -offset 2n
3329 .Li # Ic zfs allow cindys quota,reservation users/home
3330 .Li # Ic zfs allow cindys
3331 -------------------------------------------------------------
3332 Local+Descendent permissions on (users/home)
3333         user cindys quota,reservation
3334 -------------------------------------------------------------
3335 .Li # Ic su - cindys
3336 .Li cindys% Ic zfs set quota=10G users/home/marks
3337 .Li cindys% Ic zfs get quota users/home/marks
3338 NAME              PROPERTY  VALUE             SOURCE
3339 users/home/marks  quota     10G               local
3340 .Ed
3341 .It Sy Example 21 No Removing ZFS Delegated Permissions on a Tn ZFS No Dataset
3342 .Pp
3343 The following example shows how to remove the snapshot permission from the
3344 .Em staff
3345 group on the
3346 .Em tank/users
3347 file system. The permissions on
3348 .Em tank/users
3349 are also displayed.
3350 .Bd -literal -offset 2n
3351 .Li # Ic zfs unallow staff snapshot tank/users
3352 .Li # Ic zfs allow tank/users
3353 -------------------------------------------------------------
3354 Permission sets on (tank/users)
3355         @pset create,destroy,mount,snapshot
3356 Create time permissions on (tank/users)
3357         create,destroy
3358 Local+Descendent permissions on (tank/users)
3359         group staff @pset,create,mount
3360 -------------------------------------------------------------
3361 .Ed
3362 .It Sy Example 22 Showing the differences between a snapshot and a ZFS Dataset
3363 .Pp
3364 The following example shows how to see what has changed between a prior
3365 snapshot of a ZFS Dataset and its current state.  The
3366 .Fl F
3367 option is used to indicate type information for the files affected.
3368 .Bd -literal -offset 2n
3369 .Li # Ic zfs diff tank/test@before tank/test
3370 M       /       /tank/test/
3371 M       F       /tank/test/linked      (+1)
3372 R       F       /tank/test/oldname -> /tank/test/newname
3373 -       F       /tank/test/deleted
3374 +       F       /tank/test/created
3375 M       F       /tank/test/modified
3376 .Ed
3377 .El
3378 .Sh SEE ALSO
3379 .Xr chmod 2 ,
3380 .Xr fsync 2 ,
3381 .Xr exports 5 ,
3382 .Xr fstab 5 ,
3383 .Xr rc.conf 5 ,
3384 .Xr jail 8 ,
3385 .Xr mount 8 ,
3386 .Xr umount 8 ,
3387 .Xr zpool 8
3388 .Sh AUTHORS
3389 This manual page is a
3390 .Xr mdoc 7
3391 reimplementation of the
3392 .Tn OpenSolaris
3393 manual page
3394 .Em zfs(1M) ,
3395 modified and customized for
3396 .Fx
3397 and licensed under the
3398 Common Development and Distribution License
3399 .Pq Tn CDDL .
3400 .Pp
3401 The
3402 .Xr mdoc 7
3403 implementation of this manual page was initially written by
3404 .An Martin Matuska Aq mm@FreeBSD.org .