]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - man/man8/zfs.8
Implement Redacted Send/Receive
[FreeBSD/FreeBSD.git] / man / man8 / zfs.8
1 .\"
2 .\" CDDL HEADER START
3 .\"
4 .\" The contents of this file are subject to the terms of the
5 .\" Common Development and Distribution License (the "License").
6 .\" You may not use this file except in compliance with the License.
7 .\"
8 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 .\" or http://www.opensolaris.org/os/licensing.
10 .\" See the License for the specific language governing permissions
11 .\" and limitations under the License.
12 .\"
13 .\" When distributing Covered Code, include this CDDL HEADER in each
14 .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 .\" If applicable, add the following below this CDDL HEADER, with the
16 .\" fields enclosed by brackets "[]" replaced with your own identifying
17 .\" information: Portions Copyright [yyyy] [name of copyright owner]
18 .\"
19 .\" CDDL HEADER END
20 .\"
21 .\"
22 .\" Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
23 .\" Copyright 2011 Joshua M. Clulow <josh@sysmgr.org>
24 .\" Copyright (c) 2011, 2019 by Delphix. All rights reserved.
25 .\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
26 .\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
27 .\" Copyright (c) 2014 by Adam Stevko. All rights reserved.
28 .\" Copyright (c) 2014 Integros [integros.com]
29 .\" Copyright 2019 Richard Laager. All rights reserved.
30 .\" Copyright 2018 Nexenta Systems, Inc.
31 .\" Copyright 2018 Joyent, Inc.
32 .\"
33 .Dd April 30, 2019
34 .Dt ZFS 8 SMM
35 .Os Linux
36 .Sh NAME
37 .Nm zfs
38 .Nd configures ZFS file systems
39 .Sh SYNOPSIS
40 .Nm
41 .Fl ?V
42 .Nm
43 .Cm create
44 .Op Fl p
45 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
46 .Ar filesystem
47 .Nm
48 .Cm create
49 .Op Fl ps
50 .Op Fl b Ar blocksize
51 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
52 .Fl V Ar size Ar volume
53 .Nm
54 .Cm destroy
55 .Op Fl Rfnprv
56 .Ar filesystem Ns | Ns Ar volume
57 .Nm
58 .Cm destroy
59 .Op Fl Rdnprv
60 .Ar filesystem Ns | Ns Ar volume Ns @ Ns Ar snap Ns
61 .Oo % Ns Ar snap Ns Oo , Ns Ar snap Ns Oo % Ns Ar snap Oc Oc Oc Ns ...
62 .Nm
63 .Cm destroy
64 .Ar filesystem Ns | Ns Ar volume Ns # Ns Ar bookmark
65 .Nm
66 .Cm snapshot
67 .Op Fl r
68 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
69 .Ar filesystem Ns @ Ns Ar snapname Ns | Ns Ar volume Ns @ Ns Ar snapname Ns ...
70 .Nm
71 .Cm rollback
72 .Op Fl Rfr
73 .Ar snapshot
74 .Nm
75 .Cm clone
76 .Op Fl p
77 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
78 .Ar snapshot Ar filesystem Ns | Ns Ar volume
79 .Nm
80 .Cm promote
81 .Ar clone-filesystem
82 .Nm
83 .Cm rename
84 .Op Fl f
85 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
86 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
87 .Nm
88 .Cm rename
89 .Op Fl fp
90 .Ar filesystem Ns | Ns Ar volume
91 .Ar filesystem Ns | Ns Ar volume
92 .Nm
93 .Cm rename
94 .Fl r
95 .Ar snapshot Ar snapshot
96 .Nm
97 .Cm list
98 .Op Fl r Ns | Ns Fl d Ar depth
99 .Op Fl Hp
100 .Oo Fl o Ar property Ns Oo , Ns Ar property Oc Ns ... Oc
101 .Oo Fl s Ar property Oc Ns ...
102 .Oo Fl S Ar property Oc Ns ...
103 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
104 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Oc Ns ...
105 .Nm
106 .Cm set
107 .Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns ...
108 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
109 .Nm
110 .Cm get
111 .Op Fl r Ns | Ns Fl d Ar depth
112 .Op Fl Hp
113 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
114 .Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns ... Oc
115 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
116 .Cm all | Ar property Ns Oo , Ns Ar property Oc Ns ...
117 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns ...
118 .Nm
119 .Cm inherit
120 .Op Fl rS
121 .Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
122 .Nm
123 .Cm upgrade
124 .Nm
125 .Cm upgrade
126 .Fl v
127 .Nm
128 .Cm upgrade
129 .Op Fl r
130 .Op Fl V Ar version
131 .Fl a | Ar filesystem
132 .Nm
133 .Cm userspace
134 .Op Fl Hinp
135 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
136 .Oo Fl s Ar field Oc Ns ...
137 .Oo Fl S Ar field Oc Ns ...
138 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
139 .Ar filesystem Ns | Ns Ar snapshot
140 .Nm
141 .Cm groupspace
142 .Op Fl Hinp
143 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
144 .Oo Fl s Ar field Oc Ns ...
145 .Oo Fl S Ar field Oc Ns ...
146 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
147 .Ar filesystem Ns | Ns Ar snapshot
148 .Nm
149 .Cm projectspace
150 .Op Fl Hp
151 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
152 .Oo Fl s Ar field Oc Ns ...
153 .Oo Fl S Ar field Oc Ns ...
154 .Ar filesystem Ns | Ns Ar snapshot
155 .Nm
156 .Cm project
157 .Oo Fl d Ns | Ns Fl r Ns Oc
158 .Ar file Ns | Ns Ar directory Ns ...
159 .Nm
160 .Cm project
161 .Fl C
162 .Oo Fl kr Ns Oc
163 .Ar file Ns | Ns Ar directory Ns ...
164 .Nm
165 .Cm project
166 .Fl c
167 .Oo Fl 0 Ns Oc
168 .Oo Fl d Ns | Ns Fl r Ns Oc
169 .Op Fl p Ar id
170 .Ar file Ns | Ns Ar directory Ns ...
171 .Nm
172 .Cm project
173 .Op Fl p Ar id
174 .Oo Fl rs Ns Oc
175 .Ar file Ns | Ns Ar directory Ns ...
176 .Nm
177 .Cm mount
178 .Nm
179 .Cm mount
180 .Op Fl Oflv
181 .Op Fl o Ar options
182 .Fl a | Ar filesystem
183 .Nm
184 .Cm unmount
185 .Op Fl f
186 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
187 .Nm
188 .Cm share
189 .Fl a | Ar filesystem
190 .Nm
191 .Cm unshare
192 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
193 .Nm
194 .Cm bookmark
195 .Ar snapshot bookmark
196 .Nm
197 .Cm send
198 .Op Fl DLPRbcehnpvw
199 .Op Oo Fl I Ns | Ns Fl i Oc Ar snapshot
200 .Ar snapshot
201 .Nm
202 .Cm send
203 .Op Fl DLPcenpvw
204 .Oo Fl i Ar snapshot Ns | Ns Ar bookmark
205 .Oc
206 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
207 .Nm
208 .Cm send
209 .Fl -redact Ar redaction_bookmark
210 .Op Fl DLPcenpv
211 .Op Fl i Ar snapshot Ns | Ns Ar bookmark
212 .Ar snapshot
213 .Nm
214 .Cm send
215 .Op Fl Penv
216 .Fl t Ar receive_resume_token
217 .Nm
218 .Cm receive
219 .Op Fl Fhnsuv
220 .Op Fl o Sy origin Ns = Ns Ar snapshot
221 .Op Fl o Ar property Ns = Ns Ar value
222 .Op Fl x Ar property
223 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
224 .Nm
225 .Cm receive
226 .Op Fl Fhnsuv
227 .Op Fl d Ns | Ns Fl e
228 .Op Fl o Sy origin Ns = Ns Ar snapshot
229 .Op Fl o Ar property Ns = Ns Ar value
230 .Op Fl x Ar property
231 .Ar filesystem
232 .Nm
233 .Cm receive
234 .Fl A
235 .Ar filesystem Ns | Ns Ar volume
236 .Nm
237 .Cm redact
238 .Ar snapshot redaction_bookmark
239 .Op Ar redaction_snapshot Ns ...
240 .Nm
241 .Cm allow
242 .Ar filesystem Ns | Ns Ar volume
243 .Nm
244 .Cm allow
245 .Op Fl dglu
246 .Ar user Ns | Ns Ar group Ns Oo , Ns Ar user Ns | Ns Ar group Oc Ns ...
247 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
248 .Ar setname Oc Ns ...
249 .Ar filesystem Ns | Ns Ar volume
250 .Nm
251 .Cm allow
252 .Op Fl dl
253 .Fl e Ns | Ns Sy everyone
254 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
255 .Ar setname Oc Ns ...
256 .Ar filesystem Ns | Ns Ar volume
257 .Nm
258 .Cm allow
259 .Fl c
260 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
261 .Ar setname Oc Ns ...
262 .Ar filesystem Ns | Ns Ar volume
263 .Nm
264 .Cm allow
265 .Fl s No @ Ns Ar setname
266 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
267 .Ar setname Oc Ns ...
268 .Ar filesystem Ns | Ns Ar volume
269 .Nm
270 .Cm unallow
271 .Op Fl dglru
272 .Ar user Ns | Ns Ar group Ns Oo , Ns Ar user Ns | Ns Ar group Oc Ns ...
273 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
274 .Ar setname Oc Ns ... Oc
275 .Ar filesystem Ns | Ns Ar volume
276 .Nm
277 .Cm unallow
278 .Op Fl dlr
279 .Fl e Ns | Ns Sy everyone
280 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
281 .Ar setname Oc Ns ... Oc
282 .Ar filesystem Ns | Ns Ar volume
283 .Nm
284 .Cm unallow
285 .Op Fl r
286 .Fl c
287 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
288 .Ar setname Oc Ns ... Oc
289 .Ar filesystem Ns | Ns Ar volume
290 .Nm
291 .Cm unallow
292 .Op Fl r
293 .Fl s @ Ns Ar setname
294 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
295 .Ar setname Oc Ns ... Oc
296 .Ar filesystem Ns | Ns Ar volume
297 .Nm
298 .Cm hold
299 .Op Fl r
300 .Ar tag Ar snapshot Ns ...
301 .Nm
302 .Cm holds
303 .Op Fl rH
304 .Ar snapshot Ns ...
305 .Nm
306 .Cm release
307 .Op Fl r
308 .Ar tag Ar snapshot Ns ...
309 .Nm
310 .Cm diff
311 .Op Fl FHt
312 .Ar snapshot Ar snapshot Ns | Ns Ar filesystem
313 .Nm
314 .Cm program
315 .Op Fl jn
316 .Op Fl t Ar instruction-limit
317 .Op Fl m Ar memory-limit
318 .Ar pool script
319 .Op Ar arg1 No ...
320 .Nm
321 .Cm load-key
322 .Op Fl nr
323 .Op Fl L Ar keylocation
324 .Fl a | Ar filesystem
325 .Nm
326 .Cm unload-key
327 .Op Fl r
328 .Fl a | Ar filesystem
329 .Nm
330 .Cm change-key
331 .Op Fl l
332 .Op Fl o Ar keylocation Ns = Ns Ar value
333 .Op Fl o Ar keyformat Ns = Ns Ar value
334 .Op Fl o Ar pbkdf2iters Ns = Ns Ar value
335 .Ar filesystem
336 .Nm
337 .Cm change-key
338 .Fl i
339 .Op Fl l
340 .Ar filesystem
341 .Nm
342 .Cm version
343 .Sh DESCRIPTION
344 The
345 .Nm
346 command configures ZFS datasets within a ZFS storage pool, as described in
347 .Xr zpool 8 .
348 A dataset is identified by a unique path within the ZFS namespace.
349 For example:
350 .Bd -literal
351 pool/{filesystem,volume,snapshot}
352 .Ed
353 .Pp
354 where the maximum length of a dataset name is
355 .Dv MAXNAMELEN
356 .Pq 256 bytes
357 and the maximum amount of nesting allowed in a path is 50 levels deep.
358 .Pp
359 A dataset can be one of the following:
360 .Bl -tag -width "file system"
361 .It Sy file system
362 A ZFS dataset of type
363 .Sy filesystem
364 can be mounted within the standard system namespace and behaves like other file
365 systems.
366 While ZFS file systems are designed to be POSIX compliant, known issues exist
367 that prevent compliance in some cases.
368 Applications that depend on standards conformance might fail due to non-standard
369 behavior when checking file system free space.
370 .It Sy volume
371 A logical volume exported as a raw or block device.
372 This type of dataset should only be used when a block device is required.
373 File systems are typically used in most environments.
374 .It Sy snapshot
375 A read-only version of a file system or volume at a given point in time.
376 It is specified as
377 .Ar filesystem Ns @ Ns Ar name
378 or
379 .Ar volume Ns @ Ns Ar name .
380 .It Sy bookmark
381 Much like a
382 .Sy snapshot ,
383 but without the hold on on-disk data. It can be used as the source of a send
384 (but not for a receive). It is specified as
385 .Ar filesystem Ns # Ns Ar name
386 or
387 .Ar volume Ns # Ns Ar name .
388 .El
389 .Ss ZFS File System Hierarchy
390 A ZFS storage pool is a logical collection of devices that provide space for
391 datasets.
392 A storage pool is also the root of the ZFS file system hierarchy.
393 .Pp
394 The root of the pool can be accessed as a file system, such as mounting and
395 unmounting, taking snapshots, and setting properties.
396 The physical storage characteristics, however, are managed by the
397 .Xr zpool 8
398 command.
399 .Pp
400 See
401 .Xr zpool 8
402 for more information on creating and administering pools.
403 .Ss Snapshots
404 A snapshot is a read-only copy of a file system or volume.
405 Snapshots can be created extremely quickly, and initially consume no additional
406 space within the pool.
407 As data within the active dataset changes, the snapshot consumes more data than
408 would otherwise be shared with the active dataset.
409 .Pp
410 Snapshots can have arbitrary names.
411 Snapshots of volumes can be cloned or rolled back, visibility is determined
412 by the
413 .Sy snapdev
414 property of the parent volume.
415 .Pp
416 File system snapshots can be accessed under the
417 .Pa .zfs/snapshot
418 directory in the root of the file system.
419 Snapshots are automatically mounted on demand and may be unmounted at regular
420 intervals.
421 The visibility of the
422 .Pa .zfs
423 directory can be controlled by the
424 .Sy snapdir
425 property.
426 .Ss Bookmarks
427 A bookmark is like a snapshot, a read-only copy of a file system or volume.
428 Bookmarks can be created extremely quickly, compared to snapshots, and they
429 consume no additional space within the pool. Bookmarks can also have arbitrary
430 names, much like snapshots.
431 .Pp
432 Unlike snapshots, bookmarks can not be accessed through the filesystem in any
433 way. From a storage standpoint a bookmark just provides a way to reference
434 when a snapshot was created as a distinct object. Bookmarks are initially
435 tied to a snapshot, not the filesystem or volume, and they will survive if the
436 snapshot itself is destroyed. Since they are very light weight there's little
437 incentive to destroy them.
438 .Ss Clones
439 A clone is a writable volume or file system whose initial contents are the same
440 as another dataset.
441 As with snapshots, creating a clone is nearly instantaneous, and initially
442 consumes no additional space.
443 .Pp
444 Clones can only be created from a snapshot.
445 When a snapshot is cloned, it creates an implicit dependency between the parent
446 and child.
447 Even though the clone is created somewhere else in the dataset hierarchy, the
448 original snapshot cannot be destroyed as long as a clone exists.
449 The
450 .Sy origin
451 property exposes this dependency, and the
452 .Cm destroy
453 command lists any such dependencies, if they exist.
454 .Pp
455 The clone parent-child dependency relationship can be reversed by using the
456 .Cm promote
457 subcommand.
458 This causes the
459 .Qq origin
460 file system to become a clone of the specified file system, which makes it
461 possible to destroy the file system that the clone was created from.
462 .Ss "Mount Points"
463 Creating a ZFS file system is a simple operation, so the number of file systems
464 per system is likely to be numerous.
465 To cope with this, ZFS automatically manages mounting and unmounting file
466 systems without the need to edit the
467 .Pa /etc/fstab
468 file.
469 All automatically managed file systems are mounted by ZFS at boot time.
470 .Pp
471 By default, file systems are mounted under
472 .Pa /path ,
473 where
474 .Ar path
475 is the name of the file system in the ZFS namespace.
476 Directories are created and destroyed as needed.
477 .Pp
478 A file system can also have a mount point set in the
479 .Sy mountpoint
480 property.
481 This directory is created as needed, and ZFS automatically mounts the file
482 system when the
483 .Nm zfs Cm mount Fl a
484 command is invoked
485 .Po without editing
486 .Pa /etc/fstab
487 .Pc .
488 The
489 .Sy mountpoint
490 property can be inherited, so if
491 .Em pool/home
492 has a mount point of
493 .Pa /export/stuff ,
494 then
495 .Em pool/home/user
496 automatically inherits a mount point of
497 .Pa /export/stuff/user .
498 .Pp
499 A file system
500 .Sy mountpoint
501 property of
502 .Sy none
503 prevents the file system from being mounted.
504 .Pp
505 If needed, ZFS file systems can also be managed with traditional tools
506 .Po
507 .Nm mount ,
508 .Nm umount ,
509 .Pa /etc/fstab
510 .Pc .
511 If a file system's mount point is set to
512 .Sy legacy ,
513 ZFS makes no attempt to manage the file system, and the administrator is
514 responsible for mounting and unmounting the file system. Because pools must
515 be imported before a legacy mount can succeed, administrators should ensure
516 that legacy mounts are only attempted after the zpool import process
517 finishes at boot time. For example, on machines using systemd, the mount
518 option
519 .Pp
520 .Nm x-systemd.requires=zfs-import.target
521 .Pp
522 will ensure that the zfs-import completes before systemd attempts mounting
523 the filesystem. See systemd.mount(5) for details.
524 .Ss Deduplication
525 Deduplication is the process for removing redundant data at the block level,
526 reducing the total amount of data stored. If a file system has the
527 .Sy dedup
528 property enabled, duplicate data blocks are removed synchronously. The result
529 is that only unique data is stored and common components are shared among files.
530 .Pp
531 Deduplicating data is a very resource-intensive operation. It is generally
532 recommended that you have at least 1.25 GiB of RAM per 1 TiB of storage when
533 you enable deduplication. Calculating the exact requirement depends heavily
534 on the type of data stored in the pool.
535 .Pp
536 Enabling deduplication on an improperly-designed system can result in
537 performance issues (slow IO and administrative operations). It can potentially
538 lead to problems importing a pool due to memory exhaustion. Deduplication
539 can consume significant processing power (CPU) and memory as well as generate
540 additional disk IO.
541 .Pp
542 Before creating a pool with deduplication enabled, ensure that you have planned
543 your hardware requirements appropriately and implemented appropriate recovery
544 practices, such as regular backups. As an alternative to deduplication
545 consider using
546 .Sy compression=on ,
547 as a less resource-intensive alternative.
548 .Ss Native Properties
549 Properties are divided into two types, native properties and user-defined
550 .Po or
551 .Qq user
552 .Pc
553 properties.
554 Native properties either export internal statistics or control ZFS behavior.
555 In addition, native properties are either editable or read-only.
556 User properties have no effect on ZFS behavior, but you can use them to annotate
557 datasets in a way that is meaningful in your environment.
558 For more information about user properties, see the
559 .Sx User Properties
560 section, below.
561 .Pp
562 Every dataset has a set of properties that export statistics about the dataset
563 as well as control various behaviors.
564 Properties are inherited from the parent unless overridden by the child.
565 Some properties apply only to certain types of datasets
566 .Pq file systems, volumes, or snapshots .
567 .Pp
568 The values of numeric properties can be specified using human-readable suffixes
569 .Po for example,
570 .Sy k ,
571 .Sy KB ,
572 .Sy M ,
573 .Sy Gb ,
574 and so forth, up to
575 .Sy Z
576 for zettabyte
577 .Pc .
578 The following are all valid
579 .Pq and equal
580 specifications:
581 .Li 1536M, 1.5g, 1.50GB .
582 .Pp
583 The values of non-numeric properties are case sensitive and must be lowercase,
584 except for
585 .Sy mountpoint ,
586 .Sy sharenfs ,
587 and
588 .Sy sharesmb .
589 .Pp
590 The following native properties consist of read-only statistics about the
591 dataset.
592 These properties can be neither set, nor inherited.
593 Native properties apply to all dataset types unless otherwise noted.
594 .Bl -tag -width "usedbyrefreservation"
595 .It Sy available
596 The amount of space available to the dataset and all its children, assuming that
597 there is no other activity in the pool.
598 Because space is shared within a pool, availability can be limited by any number
599 of factors, including physical pool size, quotas, reservations, or other
600 datasets within the pool.
601 .Pp
602 This property can also be referred to by its shortened column name,
603 .Sy avail .
604 .It Sy compressratio
605 For non-snapshots, the compression ratio achieved for the
606 .Sy used
607 space of this dataset, expressed as a multiplier.
608 The
609 .Sy used
610 property includes descendant datasets, and, for clones, does not include the
611 space shared with the origin snapshot.
612 For snapshots, the
613 .Sy compressratio
614 is the same as the
615 .Sy refcompressratio
616 property.
617 Compression can be turned on by running:
618 .Nm zfs Cm set Sy compression Ns = Ns Sy on Ar dataset .
619 The default value is
620 .Sy off .
621 .It Sy createtxg
622 The transaction group (txg) in which the dataset was created. Bookmarks have
623 the same
624 .Sy createtxg
625 as the snapshot they are initially tied to. This property is suitable for
626 ordering a list of snapshots, e.g. for incremental send and receive.
627 .It Sy creation
628 The time this dataset was created.
629 .It Sy clones
630 For snapshots, this property is a comma-separated list of filesystems or volumes
631 which are clones of this snapshot.
632 The clones'
633 .Sy origin
634 property is this snapshot.
635 If the
636 .Sy clones
637 property is not empty, then this snapshot can not be destroyed
638 .Po even with the
639 .Fl r
640 or
641 .Fl f
642 options
643 .Pc .
644 The roles of origin and clone can be swapped by promoting the clone with the
645 .Nm zfs Cm promote
646 command.
647 .It Sy defer_destroy
648 This property is
649 .Sy on
650 if the snapshot has been marked for deferred destroy by using the
651 .Nm zfs Cm destroy Fl d
652 command.
653 Otherwise, the property is
654 .Sy off .
655 .It Sy encryptionroot
656 For encrypted datasets, indicates where the dataset is currently inheriting its
657 encryption key from. Loading or unloading a key for the
658 .Sy encryptionroot
659 will implicitly load / unload the key for any inheriting datasets (see
660 .Nm zfs Cm load-key
661 and
662 .Nm zfs Cm unload-key
663 for details).
664 Clones will always share an
665 encryption key with their origin. See the
666 .Sx Encryption
667 section for details.
668 .It Sy filesystem_count
669 The total number of filesystems and volumes that exist under this location in
670 the dataset tree.
671 This value is only available when a
672 .Sy filesystem_limit
673 has been set somewhere in the tree under which the dataset resides.
674 .It Sy keystatus
675 Indicates if an encryption key is currently loaded into ZFS. The possible
676 values are
677 .Sy none ,
678 .Sy available ,
679 and
680 .Sy unavailable .
681 See
682 .Nm zfs Cm load-key
683 and
684 .Nm zfs Cm unload-key .
685 .It Sy guid
686 The 64 bit GUID of this dataset or bookmark which does not change over its
687 entire lifetime. When a snapshot is sent to another pool, the received
688 snapshot has the same GUID. Thus, the
689 .Sy guid
690 is suitable to identify a snapshot across pools.
691 .It Sy logicalreferenced
692 The amount of space that is
693 .Qq logically
694 accessible by this dataset.
695 See the
696 .Sy referenced
697 property.
698 The logical space ignores the effect of the
699 .Sy compression
700 and
701 .Sy copies
702 properties, giving a quantity closer to the amount of data that applications
703 see.
704 However, it does include space consumed by metadata.
705 .Pp
706 This property can also be referred to by its shortened column name,
707 .Sy lrefer .
708 .It Sy logicalused
709 The amount of space that is
710 .Qq logically
711 consumed by this dataset and all its descendents.
712 See the
713 .Sy used
714 property.
715 The logical space ignores the effect of the
716 .Sy compression
717 and
718 .Sy copies
719 properties, giving a quantity closer to the amount of data that applications
720 see.
721 However, it does include space consumed by metadata.
722 .Pp
723 This property can also be referred to by its shortened column name,
724 .Sy lused .
725 .It Sy mounted
726 For file systems, indicates whether the file system is currently mounted.
727 This property can be either
728 .Sy yes
729 or
730 .Sy no .
731 .It Sy objsetid
732 A unique identifier for this dataset within the pool. Unlike the dataset's
733 .Sy guid
734 , the
735 .Sy objsetid
736 of a dataset is not transferred to other pools when the snapshot is copied
737 with a send/receive operation.
738 The
739 .Sy objsetid
740 can be reused (for a new datatset) after the dataset is deleted.
741 .It Sy origin
742 For cloned file systems or volumes, the snapshot from which the clone was
743 created.
744 See also the
745 .Sy clones
746 property.
747 .It Sy receive_resume_token
748 For filesystems or volumes which have saved partially-completed state from
749 .Sy zfs receive -s ,
750 this opaque token can be provided to
751 .Sy zfs send -t
752 to resume and complete the
753 .Sy zfs receive .
754 .It Sy redact_snaps
755 For bookmarks, this is the list of snapshot guids the bookmark contains a redaction
756 list for.
757 For snapshots, this is the list of snapshot guids the snapshot is redacted with
758 respect to.
759 .It Sy referenced
760 The amount of data that is accessible by this dataset, which may or may not be
761 shared with other datasets in the pool.
762 When a snapshot or clone is created, it initially references the same amount of
763 space as the file system or snapshot it was created from, since its contents are
764 identical.
765 .Pp
766 This property can also be referred to by its shortened column name,
767 .Sy refer .
768 .It Sy refcompressratio
769 The compression ratio achieved for the
770 .Sy referenced
771 space of this dataset, expressed as a multiplier.
772 See also the
773 .Sy compressratio
774 property.
775 .It Sy snapshot_count
776 The total number of snapshots that exist under this location in the dataset
777 tree.
778 This value is only available when a
779 .Sy snapshot_limit
780 has been set somewhere in the tree under which the dataset resides.
781 .It Sy type
782 The type of dataset:
783 .Sy filesystem ,
784 .Sy volume ,
785 or
786 .Sy snapshot .
787 .It Sy used
788 The amount of space consumed by this dataset and all its descendents.
789 This is the value that is checked against this dataset's quota and reservation.
790 The space used does not include this dataset's reservation, but does take into
791 account the reservations of any descendent datasets.
792 The amount of space that a dataset consumes from its parent, as well as the
793 amount of space that is freed if this dataset is recursively destroyed, is the
794 greater of its space used and its reservation.
795 .Pp
796 The used space of a snapshot
797 .Po see the
798 .Sx Snapshots
799 section
800 .Pc
801 is space that is referenced exclusively by this snapshot.
802 If this snapshot is destroyed, the amount of
803 .Sy used
804 space will be freed.
805 Space that is shared by multiple snapshots isn't accounted for in this metric.
806 When a snapshot is destroyed, space that was previously shared with this
807 snapshot can become unique to snapshots adjacent to it, thus changing the used
808 space of those snapshots.
809 The used space of the latest snapshot can also be affected by changes in the
810 file system.
811 Note that the
812 .Sy used
813 space of a snapshot is a subset of the
814 .Sy written
815 space of the snapshot.
816 .Pp
817 The amount of space used, available, or referenced does not take into account
818 pending changes.
819 Pending changes are generally accounted for within a few seconds.
820 Committing a change to a disk using
821 .Xr fsync 2
822 or
823 .Dv O_SYNC
824 does not necessarily guarantee that the space usage information is updated
825 immediately.
826 .It Sy usedby*
827 The
828 .Sy usedby*
829 properties decompose the
830 .Sy used
831 properties into the various reasons that space is used.
832 Specifically,
833 .Sy used No =
834 .Sy usedbychildren No +
835 .Sy usedbydataset No +
836 .Sy usedbyrefreservation No +
837 .Sy usedbysnapshots .
838 These properties are only available for datasets created on
839 .Nm zpool
840 .Qo version 13 Qc
841 pools.
842 .It Sy usedbychildren
843 The amount of space used by children of this dataset, which would be freed if
844 all the dataset's children were destroyed.
845 .It Sy usedbydataset
846 The amount of space used by this dataset itself, which would be freed if the
847 dataset were destroyed
848 .Po after first removing any
849 .Sy refreservation
850 and destroying any necessary snapshots or descendents
851 .Pc .
852 .It Sy usedbyrefreservation
853 The amount of space used by a
854 .Sy refreservation
855 set on this dataset, which would be freed if the
856 .Sy refreservation
857 was removed.
858 .It Sy usedbysnapshots
859 The amount of space consumed by snapshots of this dataset.
860 In particular, it is the amount of space that would be freed if all of this
861 dataset's snapshots were destroyed.
862 Note that this is not simply the sum of the snapshots'
863 .Sy used
864 properties because space can be shared by multiple snapshots.
865 .It Sy userused Ns @ Ns Em user
866 The amount of space consumed by the specified user in this dataset.
867 Space is charged to the owner of each file, as displayed by
868 .Nm ls Fl l .
869 The amount of space charged is displayed by
870 .Nm du
871 and
872 .Nm ls Fl s .
873 See the
874 .Nm zfs Cm userspace
875 subcommand for more information.
876 .Pp
877 Unprivileged users can access only their own space usage.
878 The root user, or a user who has been granted the
879 .Sy userused
880 privilege with
881 .Nm zfs Cm allow ,
882 can access everyone's usage.
883 .Pp
884 The
885 .Sy userused Ns @ Ns Em ...
886 properties are not displayed by
887 .Nm zfs Cm get Sy all .
888 The user's name must be appended after the @ symbol, using one of the following
889 forms:
890 .Bl -bullet -width ""
891 .It
892 .Em POSIX name
893 .Po for example,
894 .Sy joe
895 .Pc
896 .It
897 .Em POSIX numeric ID
898 .Po for example,
899 .Sy 789
900 .Pc
901 .It
902 .Em SID name
903 .Po for example,
904 .Sy joe.smith@mydomain
905 .Pc
906 .It
907 .Em SID numeric ID
908 .Po for example,
909 .Sy S-1-123-456-789
910 .Pc
911 .El
912 .Pp
913 Files created on Linux always have POSIX owners.
914 .It Sy userobjused Ns @ Ns Em user
915 The
916 .Sy userobjused
917 property is similar to
918 .Sy userused
919 but instead it counts the number of objects consumed by a user. This property
920 counts all objects allocated on behalf of the user, it may differ from the
921 results of system tools such as
922 .Nm df Fl i .
923 .Pp
924 When the property
925 .Sy xattr=on
926 is set on a file system additional objects will be created per-file to store
927 extended attributes. These additional objects are reflected in the
928 .Sy userobjused
929 value and are counted against the user's
930 .Sy userobjquota .
931 When a file system is configured to use
932 .Sy xattr=sa
933 no additional internal objects are normally required.
934 .It Sy userrefs
935 This property is set to the number of user holds on this snapshot.
936 User holds are set by using the
937 .Nm zfs Cm hold
938 command.
939 .It Sy groupused Ns @ Ns Em group
940 The amount of space consumed by the specified group in this dataset.
941 Space is charged to the group of each file, as displayed by
942 .Nm ls Fl l .
943 See the
944 .Sy userused Ns @ Ns Em user
945 property for more information.
946 .Pp
947 Unprivileged users can only access their own groups' space usage.
948 The root user, or a user who has been granted the
949 .Sy groupused
950 privilege with
951 .Nm zfs Cm allow ,
952 can access all groups' usage.
953 .It Sy groupobjused Ns @ Ns Em group
954 The number of objects consumed by the specified group in this dataset.
955 Multiple objects may be charged to the group for each file when extended
956 attributes are in use. See the
957 .Sy userobjused Ns @ Ns Em user
958 property for more information.
959 .Pp
960 Unprivileged users can only access their own groups' space usage.
961 The root user, or a user who has been granted the
962 .Sy groupobjused
963 privilege with
964 .Nm zfs Cm allow ,
965 can access all groups' usage.
966 .It Sy projectused Ns @ Ns Em project
967 The amount of space consumed by the specified project in this dataset. Project
968 is identified via the project identifier (ID) that is object-based numeral
969 attribute. An object can inherit the project ID from its parent object (if the
970 parent has the flag of inherit project ID that can be set and changed via
971 .Nm chattr Fl /+P
972 or
973 .Nm zfs project Fl s )
974 when being created. The privileged user can set and change object's project
975 ID via
976 .Nm chattr Fl p
977 or
978 .Nm zfs project Fl s
979 anytime. Space is charged to the project of each file, as displayed by
980 .Nm lsattr Fl p
981 or
982 .Nm zfs project .
983 See the
984 .Sy userused Ns @ Ns Em user
985 property for more information.
986 .Pp
987 The root user, or a user who has been granted the
988 .Sy projectused
989 privilege with
990 .Nm zfs allow ,
991 can access all projects' usage.
992 .It Sy projectobjused Ns @ Ns Em project
993 The
994 .Sy projectobjused
995 is similar to
996 .Sy projectused
997 but instead it counts the number of objects consumed by project. When the
998 property
999 .Sy xattr=on
1000 is set on a fileset, ZFS will create additional objects per-file to store
1001 extended attributes. These additional objects are reflected in the
1002 .Sy projectobjused
1003 value and are counted against the project's
1004 .Sy projectobjquota .
1005 When a filesystem is configured to use
1006 .Sy xattr=sa
1007 no additional internal objects are required. See the
1008 .Sy userobjused Ns @ Ns Em user
1009 property for more information.
1010 .Pp
1011 The root user, or a user who has been granted the
1012 .Sy projectobjused
1013 privilege with
1014 .Nm zfs allow ,
1015 can access all projects' objects usage.
1016 .It Sy volblocksize
1017 For volumes, specifies the block size of the volume.
1018 The
1019 .Sy blocksize
1020 cannot be changed once the volume has been written, so it should be set at
1021 volume creation time.
1022 The default
1023 .Sy blocksize
1024 for volumes is 8 Kbytes.
1025 Any power of 2 from 512 bytes to 128 Kbytes is valid.
1026 .Pp
1027 This property can also be referred to by its shortened column name,
1028 .Sy volblock .
1029 .It Sy written
1030 The amount of space
1031 .Sy referenced
1032 by this dataset, that was written since the previous snapshot
1033 .Pq i.e. that is not referenced by the previous snapshot .
1034 .It Sy written Ns @ Ns Em snapshot
1035 The amount of
1036 .Sy referenced
1037 space written to this dataset since the specified snapshot.
1038 This is the space that is referenced by this dataset but was not referenced by
1039 the specified snapshot.
1040 .Pp
1041 The
1042 .Em snapshot
1043 may be specified as a short snapshot name
1044 .Po just the part after the
1045 .Sy @
1046 .Pc ,
1047 in which case it will be interpreted as a snapshot in the same filesystem as
1048 this dataset.
1049 The
1050 .Em snapshot
1051 may be a full snapshot name
1052 .Po Em filesystem Ns @ Ns Em snapshot Pc ,
1053 which for clones may be a snapshot in the origin's filesystem
1054 .Pq or the origin of the origin's filesystem, etc.
1055 .El
1056 .Pp
1057 The following native properties can be used to change the behavior of a ZFS
1058 dataset.
1059 .Bl -tag -width ""
1060 .It Xo
1061 .Sy aclinherit Ns = Ns Sy discard Ns | Ns Sy noallow Ns | Ns
1062 .Sy restricted Ns | Ns Sy passthrough Ns | Ns Sy passthrough-x
1063 .Xc
1064 Controls how ACEs are inherited when files and directories are created.
1065 .Bl -tag -width "passthrough-x"
1066 .It Sy discard
1067 does not inherit any ACEs.
1068 .It Sy noallow
1069 only inherits inheritable ACEs that specify
1070 .Qq deny
1071 permissions.
1072 .It Sy restricted
1073 default, removes the
1074 .Sy write_acl
1075 and
1076 .Sy write_owner
1077 permissions when the ACE is inherited.
1078 .It Sy passthrough
1079 inherits all inheritable ACEs without any modifications.
1080 .It Sy passthrough-x
1081 same meaning as
1082 .Sy passthrough ,
1083 except that the
1084 .Sy owner@ ,
1085 .Sy group@ ,
1086 and
1087 .Sy everyone@
1088 ACEs inherit the execute permission only if the file creation mode also requests
1089 the execute bit.
1090 .El
1091 .Pp
1092 When the property value is set to
1093 .Sy passthrough ,
1094 files are created with a mode determined by the inheritable ACEs.
1095 If no inheritable ACEs exist that affect the mode, then the mode is set in
1096 accordance to the requested mode from the application.
1097 .Pp
1098 The
1099 .Sy aclinherit
1100 property does not apply to POSIX ACLs.
1101 .It Sy acltype Ns = Ns Sy off Ns | Ns Sy noacl Ns | Ns Sy posixacl
1102 Controls whether ACLs are enabled and if so what type of ACL to use.
1103 .Bl -tag -width "posixacl"
1104 .It Sy off
1105 default, when a file system has the
1106 .Sy acltype
1107 property set to off then ACLs are disabled.
1108 .It Sy noacl
1109 an alias for
1110 .Sy off
1111 .It Sy posixacl
1112 indicates POSIX ACLs should be used. POSIX ACLs are specific to Linux and are
1113 not functional on other platforms. POSIX ACLs are stored as an extended
1114 attribute and therefore will not overwrite any existing NFSv4 ACLs which
1115 may be set.
1116 .El
1117 .Pp
1118 To obtain the best performance when setting
1119 .Sy posixacl
1120 users are strongly encouraged to set the
1121 .Sy xattr=sa
1122 property. This will result in the POSIX ACL being stored more efficiently on
1123 disk. But as a consequence, all new extended attributes will only be
1124 accessible from OpenZFS implementations which support the
1125 .Sy xattr=sa
1126 property. See the
1127 .Sy xattr
1128 property for more details.
1129 .It Sy atime Ns = Ns Sy on Ns | Ns Sy off
1130 Controls whether the access time for files is updated when they are read.
1131 Turning this property off avoids producing write traffic when reading files and
1132 can result in significant performance gains, though it might confuse mailers
1133 and other similar utilities. The values
1134 .Sy on
1135 and
1136 .Sy off
1137 are equivalent to the
1138 .Sy atime
1139 and
1140 .Sy noatime
1141 mount options. The default value is
1142 .Sy on .
1143 See also
1144 .Sy relatime
1145 below.
1146 .It Sy canmount Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy noauto
1147 If this property is set to
1148 .Sy off ,
1149 the file system cannot be mounted, and is ignored by
1150 .Nm zfs Cm mount Fl a .
1151 Setting this property to
1152 .Sy off
1153 is similar to setting the
1154 .Sy mountpoint
1155 property to
1156 .Sy none ,
1157 except that the dataset still has a normal
1158 .Sy mountpoint
1159 property, which can be inherited.
1160 Setting this property to
1161 .Sy off
1162 allows datasets to be used solely as a mechanism to inherit properties.
1163 One example of setting
1164 .Sy canmount Ns = Ns Sy off
1165 is to have two datasets with the same
1166 .Sy mountpoint ,
1167 so that the children of both datasets appear in the same directory, but might
1168 have different inherited characteristics.
1169 .Pp
1170 When set to
1171 .Sy noauto ,
1172 a dataset can only be mounted and unmounted explicitly.
1173 The dataset is not mounted automatically when the dataset is created or
1174 imported, nor is it mounted by the
1175 .Nm zfs Cm mount Fl a
1176 command or unmounted by the
1177 .Nm zfs Cm unmount Fl a
1178 command.
1179 .Pp
1180 This property is not inherited.
1181 .It Xo
1182 .Sy checksum Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy fletcher2 Ns | Ns
1183 .Sy fletcher4 Ns | Ns Sy sha256 Ns | Ns Sy noparity Ns | Ns
1184 .Sy sha512 Ns | Ns Sy skein Ns | Ns Sy edonr
1185 .Xc
1186 Controls the checksum used to verify data integrity.
1187 The default value is
1188 .Sy on ,
1189 which automatically selects an appropriate algorithm
1190 .Po currently,
1191 .Sy fletcher4 ,
1192 but this may change in future releases
1193 .Pc .
1194 The value
1195 .Sy off
1196 disables integrity checking on user data.
1197 The value
1198 .Sy noparity
1199 not only disables integrity but also disables maintaining parity for user data.
1200 This setting is used internally by a dump device residing on a RAID-Z pool and
1201 should not be used by any other dataset.
1202 Disabling checksums is
1203 .Sy NOT
1204 a recommended practice.
1205 .Pp
1206 The
1207 .Sy sha512 ,
1208 .Sy skein ,
1209 and
1210 .Sy edonr
1211 checksum algorithms require enabling the appropriate features on the pool.
1212 These pool features are not supported by GRUB and must not be used on the
1213 pool if GRUB needs to access the pool (e.g. for /boot).
1214 .Pp
1215 Please see
1216 .Xr zpool-features 5
1217 for more information on these algorithms.
1218 .Pp
1219 Changing this property affects only newly-written data.
1220 .It Xo
1221 .Sy compression Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy gzip Ns | Ns
1222 .Sy gzip- Ns Em N Ns | Ns Sy lz4 Ns | Ns Sy lzjb Ns | Ns Sy zle
1223 .Xc
1224 Controls the compression algorithm used for this dataset.
1225 .Pp
1226 Setting compression to
1227 .Sy on
1228 indicates that the current default compression algorithm should be used.
1229 The default balances compression and decompression speed, with compression ratio
1230 and is expected to work well on a wide variety of workloads.
1231 Unlike all other settings for this property,
1232 .Sy on
1233 does not select a fixed compression type.
1234 As new compression algorithms are added to ZFS and enabled on a pool, the
1235 default compression algorithm may change.
1236 The current default compression algorithm is either
1237 .Sy lzjb
1238 or, if the
1239 .Sy lz4_compress
1240 feature is enabled,
1241 .Sy lz4 .
1242 .Pp
1243 The
1244 .Sy lz4
1245 compression algorithm is a high-performance replacement for the
1246 .Sy lzjb
1247 algorithm.
1248 It features significantly faster compression and decompression, as well as a
1249 moderately higher compression ratio than
1250 .Sy lzjb ,
1251 but can only be used on pools with the
1252 .Sy lz4_compress
1253 feature set to
1254 .Sy enabled .
1255 See
1256 .Xr zpool-features 5
1257 for details on ZFS feature flags and the
1258 .Sy lz4_compress
1259 feature.
1260 .Pp
1261 The
1262 .Sy lzjb
1263 compression algorithm is optimized for performance while providing decent data
1264 compression.
1265 .Pp
1266 The
1267 .Sy gzip
1268 compression algorithm uses the same compression as the
1269 .Xr gzip 1
1270 command.
1271 You can specify the
1272 .Sy gzip
1273 level by using the value
1274 .Sy gzip- Ns Em N ,
1275 where
1276 .Em N
1277 is an integer from 1
1278 .Pq fastest
1279 to 9
1280 .Pq best compression ratio .
1281 Currently,
1282 .Sy gzip
1283 is equivalent to
1284 .Sy gzip-6
1285 .Po which is also the default for
1286 .Xr gzip 1
1287 .Pc .
1288 .Pp
1289 The
1290 .Sy zle
1291 compression algorithm compresses runs of zeros.
1292 .Pp
1293 This property can also be referred to by its shortened column name
1294 .Sy compress .
1295 Changing this property affects only newly-written data.
1296 .Pp
1297 When any setting except
1298 .Sy off
1299 is selected, compression will explicitly check for blocks consisting of only
1300 zeroes (the NUL byte).  When a zero-filled block is detected, it is stored as
1301 a hole and not compressed using the indicated compression algorithm.
1302 .Pp
1303 Any block being compressed must be no larger than 7/8 of its original size
1304 after compression, otherwise the compression will not be considered worthwhile
1305 and the block saved uncompressed. Note that when the logical block is less than
1306 8 times the disk sector size this effectively reduces the necessary compression
1307 ratio; for example 8k blocks on disks with 4k disk sectors must compress to 1/2
1308 or less of their original size.
1309 .It Xo
1310 .Sy context Ns = Ns Sy none Ns | Ns
1311 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
1312 .Xc
1313 This flag sets the SELinux context for all files in the file system under
1314 a mount point for that file system. See
1315 .Xr selinux 8
1316 for more information.
1317 .It Xo
1318 .Sy fscontext Ns = Ns Sy none Ns | Ns
1319 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
1320 .Xc
1321 This flag sets the SELinux context for the file system file system being
1322 mounted. See
1323 .Xr selinux 8
1324 for more information.
1325 .It Xo
1326 .Sy defcontext Ns = Ns Sy none Ns | Ns
1327 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
1328 .Xc
1329 This flag sets the SELinux default context for unlabeled files. See
1330 .Xr selinux 8
1331 for more information.
1332 .It Xo
1333 .Sy rootcontext Ns = Ns Sy none Ns | Ns
1334 .Em SELinux_User:SElinux_Role:Selinux_Type:Sensitivity_Level
1335 .Xc
1336 This flag sets the SELinux context for the root inode of the file system. See
1337 .Xr selinux 8
1338 for more information.
1339 .It Sy copies Ns = Ns Sy 1 Ns | Ns Sy 2 Ns | Ns Sy 3
1340 Controls the number of copies of data stored for this dataset.
1341 These copies are in addition to any redundancy provided by the pool, for
1342 example, mirroring or RAID-Z.
1343 The copies are stored on different disks, if possible.
1344 The space used by multiple copies is charged to the associated file and dataset,
1345 changing the
1346 .Sy used
1347 property and counting against quotas and reservations.
1348 .Pp
1349 Changing this property only affects newly-written data.
1350 Therefore, set this property at file system creation time by using the
1351 .Fl o Sy copies Ns = Ns Ar N
1352 option.
1353 .Pp
1354 Remember that ZFS will not import a pool with a missing top-level vdev. Do
1355 .Sy NOT
1356 create, for example a two-disk striped pool and set
1357 .Sy copies=2
1358 on some datasets thinking you have setup redundancy for them. When a disk
1359 fails you will not be able to import the pool and will have lost all of your
1360 data.
1361 .Pp
1362 Encrypted datasets may not have
1363 .Sy copies Ns = Ns Em 3
1364 since the implementation stores some encryption metadata where the third copy
1365 would normally be.
1366 .It Sy devices Ns = Ns Sy on Ns | Ns Sy off
1367 Controls whether device nodes can be opened on this file system.
1368 The default value is
1369 .Sy on .
1370 The values
1371 .Sy on
1372 and
1373 .Sy off
1374 are equivalent to the
1375 .Sy dev
1376 and
1377 .Sy nodev
1378 mount options.
1379 .It Xo
1380 .Sy dedup Ns = Ns Sy off Ns | Ns Sy on Ns | Ns Sy verify Ns | Ns
1381 .Sy sha256[,verify] Ns | Ns Sy sha512[,verify] Ns | Ns Sy skein[,verify] Ns | Ns
1382 .Sy edonr,verify
1383 .Xc
1384 Configures deduplication for a dataset. The default value is
1385 .Sy off .
1386 The default deduplication checksum is
1387 .Sy sha256
1388 (this may change in the future). When
1389 .Sy dedup
1390 is enabled, the checksum defined here overrides the
1391 .Sy checksum
1392 property. Setting the value to
1393 .Sy verify
1394 has the same effect as the setting
1395 .Sy sha256,verify.
1396 .Pp
1397 If set to
1398 .Sy verify ,
1399 ZFS will do a byte-to-byte comparsion in case of two blocks having the same
1400 signature to make sure the block contents are identical. Specifying
1401 .Sy verify
1402 is mandatory for the
1403 .Sy edonr
1404 algorithm.
1405 .Pp
1406 Unless necessary, deduplication should NOT be enabled on a system. See
1407 .Sx Deduplication
1408 above.
1409 .It Xo
1410 .Sy dnodesize Ns = Ns Sy legacy Ns | Ns Sy auto Ns | Ns Sy 1k Ns | Ns
1411 .Sy 2k Ns | Ns Sy 4k Ns | Ns Sy 8k Ns | Ns Sy 16k
1412 .Xc
1413 Specifies a compatibility mode or literal value for the size of dnodes in the
1414 file system. The default value is
1415 .Sy legacy .
1416 Setting this property to a value other than
1417 .Sy legacy
1418 requires the large_dnode pool feature to be enabled.
1419 .Pp
1420 Consider setting
1421 .Sy dnodesize
1422 to
1423 .Sy auto
1424 if the dataset uses the
1425 .Sy xattr=sa
1426 property setting and the workload makes heavy use of extended attributes. This
1427 may be applicable to SELinux-enabled systems, Lustre servers, and Samba
1428 servers, for example. Literal values are supported for cases where the optimal
1429 size is known in advance and for performance testing.
1430 .Pp
1431 Leave
1432 .Sy dnodesize
1433 set to
1434 .Sy legacy
1435 if you need to receive a send stream of this dataset on a pool that doesn't
1436 enable the large_dnode feature, or if you need to import this pool on a system
1437 that doesn't support the large_dnode feature.
1438 .Pp
1439 This property can also be referred to by its shortened column name,
1440 .Sy dnsize .
1441 .It Xo
1442 .Sy encryption Ns = Ns Sy off Ns | Ns Sy on Ns | Ns Sy aes-128-ccm Ns | Ns
1443 .Sy aes-192-ccm Ns | Ns Sy aes-256-ccm Ns | Ns Sy aes-128-gcm Ns | Ns
1444 .Sy aes-192-gcm Ns | Ns Sy aes-256-gcm
1445 .Xc
1446 Controls the encryption cipher suite (block cipher, key length, and mode) used
1447 for this dataset. Requires the
1448 .Sy encryption
1449 feature to be enabled on the pool.
1450 Requires a
1451 .Sy keyformat
1452 to be set at dataset creation time.
1453 .Pp
1454 Selecting
1455 .Sy encryption Ns = Ns Sy on
1456 when creating a dataset indicates that the default encryption suite will be
1457 selected, which is currently
1458 .Sy aes-256-ccm .
1459 In order to provide consistent data protection, encryption must be specified at
1460 dataset creation time and it cannot be changed afterwards.
1461 .Pp
1462 For more details and caveats about encryption see the
1463 .Sy Encryption
1464 section.
1465 .It Sy keyformat Ns = Ns Sy raw Ns | Ns Sy hex Ns | Ns Sy passphrase
1466 Controls what format the user's encryption key will be provided as. This
1467 property is only set when the dataset is encrypted.
1468 .Pp
1469 Raw keys and hex keys must be 32 bytes long (regardless of the chosen
1470 encryption suite) and must be randomly generated. A raw key can be generated
1471 with the following command:
1472 .Bd -literal
1473 # dd if=/dev/urandom of=/path/to/output/key bs=32 count=1
1474 .Ed
1475 .Pp
1476 Passphrases must be between 8 and 512 bytes long and will be processed through
1477 PBKDF2 before being used (see the
1478 .Sy pbkdf2iters
1479 property). Even though the
1480 encryption suite cannot be changed after dataset creation, the keyformat can be
1481 with
1482 .Nm zfs Cm change-key .
1483 .It Xo
1484 .Sy keylocation Ns = Ns Sy prompt Ns | Ns Sy file:// Ns Em </absolute/file/path>
1485 .Xc
1486 Controls where the user's encryption key will be loaded from by default for
1487 commands such as
1488 .Nm zfs Cm load-key
1489 and
1490 .Nm zfs Cm mount Cm -l .
1491 This property is only set for encrypted datasets which are encryption roots. If
1492 unspecified, the default is
1493 .Sy prompt.
1494 .Pp
1495 Even though the encryption suite cannot be changed after dataset creation, the
1496 keylocation can be with either
1497 .Nm zfs Cm set
1498 or
1499 .Nm zfs Cm change-key .
1500 If
1501 .Sy prompt
1502 is selected ZFS will ask for the key at the command prompt when it is required
1503 to access the encrypted data (see
1504 .Nm zfs Cm load-key
1505 for details). This setting will also allow the key to be passed in via STDIN,
1506 but users should be careful not to place keys which should be kept secret on
1507 the command line. If a file URI is selected, the key will be loaded from the
1508 specified absolute file path.
1509 .It Sy pbkdf2iters Ns = Ns Ar iterations
1510 Controls the number of PBKDF2 iterations that a
1511 .Sy passphrase
1512 encryption key should be run through when processing it into an encryption key.
1513 This property is only defined when encryption is enabled and a keyformat of
1514 .Sy passphrase
1515 is selected. The goal of PBKDF2 is to significantly increase the
1516 computational difficulty needed to brute force a user's passphrase. This is
1517 accomplished by forcing the attacker to run each passphrase through a
1518 computationally expensive hashing function many times before they arrive at the
1519 resulting key. A user who actually knows the passphrase will only have to pay
1520 this cost once. As CPUs become better at processing, this number should be
1521 raised to ensure that a brute force attack is still not possible. The current
1522 default is
1523 .Sy 350000
1524 and the minimum is
1525 .Sy 100000 .
1526 This property may be changed with
1527 .Nm zfs Cm change-key .
1528 .It Sy exec Ns = Ns Sy on Ns | Ns Sy off
1529 Controls whether processes can be executed from within this file system.
1530 The default value is
1531 .Sy on .
1532 The values
1533 .Sy on
1534 and
1535 .Sy off
1536 are equivalent to the
1537 .Sy exec
1538 and
1539 .Sy noexec
1540 mount options.
1541 .It Sy filesystem_limit Ns = Ns Em count Ns | Ns Sy none
1542 Limits the number of filesystems and volumes that can exist under this point in
1543 the dataset tree.
1544 The limit is not enforced if the user is allowed to change the limit.
1545 Setting a
1546 .Sy filesystem_limit
1547 to
1548 .Sy on
1549 a descendent of a filesystem that already has a
1550 .Sy filesystem_limit
1551 does not override the ancestor's
1552 .Sy filesystem_limit ,
1553 but rather imposes an additional limit.
1554 This feature must be enabled to be used
1555 .Po see
1556 .Xr zpool-features 5
1557 .Pc .
1558 .It Sy special_small_blocks Ns = Ns Em size
1559 This value represents the threshold block size for including small file
1560 blocks into the special allocation class. Blocks smaller than or equal to this
1561 value will be assigned to the special allocation class while greater blocks
1562 will be assigned to the regular class. Valid values are zero or a power of two
1563 from 512B up to 128K. The default size is 0 which means no small file blocks
1564 will be allocated in the special class.
1565 .Pp
1566 Before setting this property, a special class vdev must be added to the
1567 pool. See
1568 .Xr zpool 8
1569 for more details on the special allocation class.
1570 .It Sy mountpoint Ns = Ns Pa path Ns | Ns Sy none Ns | Ns Sy legacy
1571 Controls the mount point used for this file system.
1572 See the
1573 .Sx Mount Points
1574 section for more information on how this property is used.
1575 .Pp
1576 When the
1577 .Sy mountpoint
1578 property is changed for a file system, the file system and any children that
1579 inherit the mount point are unmounted.
1580 If the new value is
1581 .Sy legacy ,
1582 then they remain unmounted.
1583 Otherwise, they are automatically remounted in the new location if the property
1584 was previously
1585 .Sy legacy
1586 or
1587 .Sy none ,
1588 or if they were mounted before the property was changed.
1589 In addition, any shared file systems are unshared and shared in the new
1590 location.
1591 .It Sy nbmand Ns = Ns Sy on Ns | Ns Sy off
1592 Controls whether the file system should be mounted with
1593 .Sy nbmand
1594 .Pq Non Blocking mandatory locks .
1595 This is used for SMB clients.
1596 Changes to this property only take effect when the file system is umounted and
1597 remounted.
1598 See
1599 .Xr mount 8
1600 for more information on
1601 .Sy nbmand
1602 mounts. This property is not used on Linux.
1603 .It Sy overlay Ns = Ns Sy off Ns | Ns Sy on
1604 Allow mounting on a busy directory or a directory which already contains
1605 files or directories. This is the default mount behavior for Linux file systems.
1606 For consistency with OpenZFS on other platforms overlay mounts are
1607 .Sy off
1608 by default. Set to
1609 .Sy on
1610 to enable overlay mounts.
1611 .It Sy primarycache Ns = Ns Sy all Ns | Ns Sy none Ns | Ns Sy metadata
1612 Controls what is cached in the primary cache
1613 .Pq ARC .
1614 If this property is set to
1615 .Sy all ,
1616 then both user data and metadata is cached.
1617 If this property is set to
1618 .Sy none ,
1619 then neither user data nor metadata is cached.
1620 If this property is set to
1621 .Sy metadata ,
1622 then only metadata is cached.
1623 The default value is
1624 .Sy all .
1625 .It Sy quota Ns = Ns Em size Ns | Ns Sy none
1626 Limits the amount of space a dataset and its descendents can consume.
1627 This property enforces a hard limit on the amount of space used.
1628 This includes all space consumed by descendents, including file systems and
1629 snapshots.
1630 Setting a quota on a descendent of a dataset that already has a quota does not
1631 override the ancestor's quota, but rather imposes an additional limit.
1632 .Pp
1633 Quotas cannot be set on volumes, as the
1634 .Sy volsize
1635 property acts as an implicit quota.
1636 .It Sy snapshot_limit Ns = Ns Em count Ns | Ns Sy none
1637 Limits the number of snapshots that can be created on a dataset and its
1638 descendents.
1639 Setting a
1640 .Sy snapshot_limit
1641 on a descendent of a dataset that already has a
1642 .Sy snapshot_limit
1643 does not override the ancestor's
1644 .Sy snapshot_limit ,
1645 but rather imposes an additional limit.
1646 The limit is not enforced if the user is allowed to change the limit.
1647 For example, this means that recursive snapshots taken from the global zone are
1648 counted against each delegated dataset within a zone.
1649 This feature must be enabled to be used
1650 .Po see
1651 .Xr zpool-features 5
1652 .Pc .
1653 .It Sy userquota@ Ns Em user Ns = Ns Em size Ns | Ns Sy none
1654 Limits the amount of space consumed by the specified user.
1655 User space consumption is identified by the
1656 .Sy userspace@ Ns Em user
1657 property.
1658 .Pp
1659 Enforcement of user quotas may be delayed by several seconds.
1660 This delay means that a user might exceed their quota before the system notices
1661 that they are over quota and begins to refuse additional writes with the
1662 .Er EDQUOT
1663 error message.
1664 See the
1665 .Nm zfs Cm userspace
1666 subcommand for more information.
1667 .Pp
1668 Unprivileged users can only access their own groups' space usage.
1669 The root user, or a user who has been granted the
1670 .Sy userquota
1671 privilege with
1672 .Nm zfs Cm allow ,
1673 can get and set everyone's quota.
1674 .Pp
1675 This property is not available on volumes, on file systems before version 4, or
1676 on pools before version 15.
1677 The
1678 .Sy userquota@ Ns Em ...
1679 properties are not displayed by
1680 .Nm zfs Cm get Sy all .
1681 The user's name must be appended after the
1682 .Sy @
1683 symbol, using one of the following forms:
1684 .Bl -bullet
1685 .It
1686 .Em POSIX name
1687 .Po for example,
1688 .Sy joe
1689 .Pc
1690 .It
1691 .Em POSIX numeric ID
1692 .Po for example,
1693 .Sy 789
1694 .Pc
1695 .It
1696 .Em SID name
1697 .Po for example,
1698 .Sy joe.smith@mydomain
1699 .Pc
1700 .It
1701 .Em SID numeric ID
1702 .Po for example,
1703 .Sy S-1-123-456-789
1704 .Pc
1705 .El
1706 .Pp
1707 Files created on Linux always have POSIX owners.
1708 .It Sy userobjquota@ Ns Em user Ns = Ns Em size Ns | Ns Sy none
1709 The
1710 .Sy userobjquota
1711 is similar to
1712 .Sy userquota
1713 but it limits the number of objects a user can create. Please refer to
1714 .Sy userobjused
1715 for more information about how objects are counted.
1716 .It Sy groupquota@ Ns Em group Ns = Ns Em size Ns | Ns Sy none
1717 Limits the amount of space consumed by the specified group.
1718 Group space consumption is identified by the
1719 .Sy groupused@ Ns Em group
1720 property.
1721 .Pp
1722 Unprivileged users can access only their own groups' space usage.
1723 The root user, or a user who has been granted the
1724 .Sy groupquota
1725 privilege with
1726 .Nm zfs Cm allow ,
1727 can get and set all groups' quotas.
1728 .It Sy groupobjquota@ Ns Em group Ns = Ns Em size Ns | Ns Sy none
1729 The
1730 .Sy groupobjquota
1731 is similar to
1732 .Sy groupquota
1733 but it limits number of objects a group can consume. Please refer to
1734 .Sy userobjused
1735 for more information about how objects are counted.
1736 .It Sy projectquota@ Ns Em project Ns = Ns Em size Ns | Ns Sy none
1737 Limits the amount of space consumed by the specified project. Project
1738 space consumption is identified by the
1739 .Sy projectused@ Ns Em project
1740 property. Please refer to
1741 .Sy projectused
1742 for more information about how project is identified and set/changed.
1743 .Pp
1744 The root user, or a user who has been granted the
1745 .Sy projectquota
1746 privilege with
1747 .Nm zfs allow ,
1748 can access all projects' quota.
1749 .It Sy projectobjquota@ Ns Em project Ns = Ns Em size Ns | Ns Sy none
1750 The
1751 .Sy projectobjquota
1752 is similar to
1753 .Sy projectquota
1754 but it limits number of objects a project can consume. Please refer to
1755 .Sy userobjused
1756 for more information about how objects are counted.
1757 .It Sy readonly Ns = Ns Sy on Ns | Ns Sy off
1758 Controls whether this dataset can be modified.
1759 The default value is
1760 .Sy off .
1761 The values
1762 .Sy on
1763 and
1764 .Sy off
1765 are equivalent to the
1766 .Sy ro
1767 and
1768 .Sy rw
1769 mount options.
1770 .Pp
1771 This property can also be referred to by its shortened column name,
1772 .Sy rdonly .
1773 .It Sy recordsize Ns = Ns Em size
1774 Specifies a suggested block size for files in the file system.
1775 This property is designed solely for use with database workloads that access
1776 files in fixed-size records.
1777 ZFS automatically tunes block sizes according to internal algorithms optimized
1778 for typical access patterns.
1779 .Pp
1780 For databases that create very large files but access them in small random
1781 chunks, these algorithms may be suboptimal.
1782 Specifying a
1783 .Sy recordsize
1784 greater than or equal to the record size of the database can result in
1785 significant performance gains.
1786 Use of this property for general purpose file systems is strongly discouraged,
1787 and may adversely affect performance.
1788 .Pp
1789 The size specified must be a power of two greater than or equal to 512 and less
1790 than or equal to 128 Kbytes.
1791 If the
1792 .Sy large_blocks
1793 feature is enabled on the pool, the size may be up to 1 Mbyte.
1794 See
1795 .Xr zpool-features 5
1796 for details on ZFS feature flags.
1797 .Pp
1798 Changing the file system's
1799 .Sy recordsize
1800 affects only files created afterward; existing files are unaffected.
1801 .Pp
1802 This property can also be referred to by its shortened column name,
1803 .Sy recsize .
1804 .It Sy redundant_metadata Ns = Ns Sy all Ns | Ns Sy most
1805 Controls what types of metadata are stored redundantly.
1806 ZFS stores an extra copy of metadata, so that if a single block is corrupted,
1807 the amount of user data lost is limited.
1808 This extra copy is in addition to any redundancy provided at the pool level
1809 .Pq e.g. by mirroring or RAID-Z ,
1810 and is in addition to an extra copy specified by the
1811 .Sy copies
1812 property
1813 .Pq up to a total of 3 copies .
1814 For example if the pool is mirrored,
1815 .Sy copies Ns = Ns 2 ,
1816 and
1817 .Sy redundant_metadata Ns = Ns Sy most ,
1818 then ZFS stores 6 copies of most metadata, and 4 copies of data and some
1819 metadata.
1820 .Pp
1821 When set to
1822 .Sy all ,
1823 ZFS stores an extra copy of all metadata.
1824 If a single on-disk block is corrupt, at worst a single block of user data
1825 .Po which is
1826 .Sy recordsize
1827 bytes long
1828 .Pc
1829 can be lost.
1830 .Pp
1831 When set to
1832 .Sy most ,
1833 ZFS stores an extra copy of most types of metadata.
1834 This can improve performance of random writes, because less metadata must be
1835 written.
1836 In practice, at worst about 100 blocks
1837 .Po of
1838 .Sy recordsize
1839 bytes each
1840 .Pc
1841 of user data can be lost if a single on-disk block is corrupt.
1842 The exact behavior of which metadata blocks are stored redundantly may change in
1843 future releases.
1844 .Pp
1845 The default value is
1846 .Sy all .
1847 .It Sy refquota Ns = Ns Em size Ns | Ns Sy none
1848 Limits the amount of space a dataset can consume.
1849 This property enforces a hard limit on the amount of space used.
1850 This hard limit does not include space used by descendents, including file
1851 systems and snapshots.
1852 .It Sy refreservation Ns = Ns Em size Ns | Ns Sy none Ns | Ns Sy auto
1853 The minimum amount of space guaranteed to a dataset, not including its
1854 descendents.
1855 When the amount of space used is below this value, the dataset is treated as if
1856 it were taking up the amount of space specified by
1857 .Sy refreservation .
1858 The
1859 .Sy refreservation
1860 reservation is accounted for in the parent datasets' space used, and counts
1861 against the parent datasets' quotas and reservations.
1862 .Pp
1863 If
1864 .Sy refreservation
1865 is set, a snapshot is only allowed if there is enough free pool space outside of
1866 this reservation to accommodate the current number of
1867 .Qq referenced
1868 bytes in the dataset.
1869 .Pp
1870 If
1871 .Sy refreservation
1872 is set to
1873 .Sy auto ,
1874 a volume is thick provisioned
1875 .Po or
1876 .Qq not sparse
1877 .Pc .
1878 .Sy refreservation Ns = Ns Sy auto
1879 is only supported on volumes.
1880 See
1881 .Sy volsize
1882 in the
1883 .Sx Native Properties
1884 section for more information about sparse volumes.
1885 .Pp
1886 This property can also be referred to by its shortened column name,
1887 .Sy refreserv .
1888 .It Sy relatime Ns = Ns Sy on Ns | Ns Sy off
1889 Controls the manner in which the access time is updated when
1890 .Sy atime=on
1891 is set. Turning this property on causes the access time to be updated relative
1892 to the modify or change time. Access time is only updated if the previous
1893 access time was earlier than the current modify or change time or if the
1894 existing access time hasn't been updated within the past 24 hours. The default
1895 value is
1896 .Sy off .
1897 The values
1898 .Sy on
1899 and
1900 .Sy off
1901 are equivalent to the
1902 .Sy relatime
1903 and
1904 .Sy norelatime
1905 mount options.
1906 .It Sy reservation Ns = Ns Em size Ns | Ns Sy none
1907 The minimum amount of space guaranteed to a dataset and its descendants.
1908 When the amount of space used is below this value, the dataset is treated as if
1909 it were taking up the amount of space specified by its reservation.
1910 Reservations are accounted for in the parent datasets' space used, and count
1911 against the parent datasets' quotas and reservations.
1912 .Pp
1913 This property can also be referred to by its shortened column name,
1914 .Sy reserv .
1915 .It Sy secondarycache Ns = Ns Sy all Ns | Ns Sy none Ns | Ns Sy metadata
1916 Controls what is cached in the secondary cache
1917 .Pq L2ARC .
1918 If this property is set to
1919 .Sy all ,
1920 then both user data and metadata is cached.
1921 If this property is set to
1922 .Sy none ,
1923 then neither user data nor metadata is cached.
1924 If this property is set to
1925 .Sy metadata ,
1926 then only metadata is cached.
1927 The default value is
1928 .Sy all .
1929 .It Sy setuid Ns = Ns Sy on Ns | Ns Sy off
1930 Controls whether the setuid bit is respected for the file system.
1931 The default value is
1932 .Sy on .
1933 The values
1934 .Sy on
1935 and
1936 .Sy off
1937 are equivalent to the
1938 .Sy suid
1939 and
1940 .Sy nosuid
1941 mount options.
1942 .It Sy sharesmb Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Em opts
1943 Controls whether the file system is shared by using
1944 .Sy Samba USERSHARES
1945 and what options are to be used. Otherwise, the file system is automatically
1946 shared and unshared with the
1947 .Nm zfs Cm share
1948 and
1949 .Nm zfs Cm unshare
1950 commands. If the property is set to on, the
1951 .Xr net 8
1952 command is invoked to create a
1953 .Sy USERSHARE .
1954 .Pp
1955 Because SMB shares requires a resource name, a unique resource name is
1956 constructed from the dataset name. The constructed name is a copy of the
1957 dataset name except that the characters in the dataset name, which would be
1958 invalid in the resource name, are replaced with underscore (_) characters.
1959 Linux does not currently support additional options which might be available
1960 on Solaris.
1961 .Pp
1962 If the
1963 .Sy sharesmb
1964 property is set to
1965 .Sy off ,
1966 the file systems are unshared.
1967 .Pp
1968 The share is created with the ACL (Access Control List) "Everyone:F" ("F"
1969 stands for "full permissions", ie. read and write permissions) and no guest
1970 access (which means Samba must be able to authenticate a real user, system
1971 passwd/shadow, LDAP or smbpasswd based) by default. This means that any
1972 additional access control (disallow specific user specific access etc) must
1973 be done on the underlying file system.
1974 .It Sy sharenfs Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Em opts
1975 Controls whether the file system is shared via NFS, and what options are to be
1976 used.
1977 A file system with a
1978 .Sy sharenfs
1979 property of
1980 .Sy off
1981 is managed with the
1982 .Xr exportfs 8
1983 command and entries in the
1984 .Em /etc/exports
1985 file.
1986 Otherwise, the file system is automatically shared and unshared with the
1987 .Nm zfs Cm share
1988 and
1989 .Nm zfs Cm unshare
1990 commands.
1991 If the property is set to
1992 .Sy on ,
1993 the dataset is shared using the default options:
1994 .Pp
1995 .Em sec=sys,rw,crossmnt,no_subtree_check,no_root_squash
1996 .Pp
1997 See
1998 .Xr exports 5
1999 for the meaning of the default options. Otherwise, the
2000 .Xr exportfs 8
2001 command is invoked with options equivalent to the contents of this property.
2002 .Pp
2003 When the
2004 .Sy sharenfs
2005 property is changed for a dataset, the dataset and any children inheriting the
2006 property are re-shared with the new options, only if the property was previously
2007 .Sy off ,
2008 or if they were shared before the property was changed.
2009 If the new property is
2010 .Sy off ,
2011 the file systems are unshared.
2012 .It Sy logbias Ns = Ns Sy latency Ns | Ns Sy throughput
2013 Provide a hint to ZFS about handling of synchronous requests in this dataset.
2014 If
2015 .Sy logbias
2016 is set to
2017 .Sy latency
2018 .Pq the default ,
2019 ZFS will use pool log devices
2020 .Pq if configured
2021 to handle the requests at low latency.
2022 If
2023 .Sy logbias
2024 is set to
2025 .Sy throughput ,
2026 ZFS will not use configured pool log devices.
2027 ZFS will instead optimize synchronous operations for global pool throughput and
2028 efficient use of resources.
2029 .It Sy snapdev Ns = Ns Sy hidden Ns | Ns Sy visible
2030 Controls whether the volume snapshot devices under
2031 .Em /dev/zvol/<pool>
2032 are hidden or visible. The default value is
2033 .Sy hidden .
2034 .It Sy snapdir Ns = Ns Sy hidden Ns | Ns Sy visible
2035 Controls whether the
2036 .Pa .zfs
2037 directory is hidden or visible in the root of the file system as discussed in
2038 the
2039 .Sx Snapshots
2040 section.
2041 The default value is
2042 .Sy hidden .
2043 .It Sy sync Ns = Ns Sy standard Ns | Ns Sy always Ns | Ns Sy disabled
2044 Controls the behavior of synchronous requests
2045 .Pq e.g. fsync, O_DSYNC .
2046 .Sy standard
2047 is the
2048 .Tn POSIX
2049 specified behavior of ensuring all synchronous requests are written to stable
2050 storage and all devices are flushed to ensure data is not cached by device
2051 controllers
2052 .Pq this is the default .
2053 .Sy always
2054 causes every file system transaction to be written and flushed before its
2055 system call returns.
2056 This has a large performance penalty.
2057 .Sy disabled
2058 disables synchronous requests.
2059 File system transactions are only committed to stable storage periodically.
2060 This option will give the highest performance.
2061 However, it is very dangerous as ZFS would be ignoring the synchronous
2062 transaction demands of applications such as databases or NFS.
2063 Administrators should only use this option when the risks are understood.
2064 .It Sy version Ns = Ns Em N Ns | Ns Sy current
2065 The on-disk version of this file system, which is independent of the pool
2066 version.
2067 This property can only be set to later supported versions.
2068 See the
2069 .Nm zfs Cm upgrade
2070 command.
2071 .It Sy volsize Ns = Ns Em size
2072 For volumes, specifies the logical size of the volume.
2073 By default, creating a volume establishes a reservation of equal size.
2074 For storage pools with a version number of 9 or higher, a
2075 .Sy refreservation
2076 is set instead.
2077 Any changes to
2078 .Sy volsize
2079 are reflected in an equivalent change to the reservation
2080 .Po or
2081 .Sy refreservation
2082 .Pc .
2083 The
2084 .Sy volsize
2085 can only be set to a multiple of
2086 .Sy volblocksize ,
2087 and cannot be zero.
2088 .Pp
2089 The reservation is kept equal to the volume's logical size to prevent unexpected
2090 behavior for consumers.
2091 Without the reservation, the volume could run out of space, resulting in
2092 undefined behavior or data corruption, depending on how the volume is used.
2093 These effects can also occur when the volume size is changed while it is in use
2094 .Pq particularly when shrinking the size .
2095 Extreme care should be used when adjusting the volume size.
2096 .Pp
2097 Though not recommended, a
2098 .Qq sparse volume
2099 .Po also known as
2100 .Qq thin provisioned
2101 .Pc
2102 can be created by specifying the
2103 .Fl s
2104 option to the
2105 .Nm zfs Cm create Fl V
2106 command, or by changing the value of the
2107 .Sy refreservation
2108 property
2109 .Po or
2110 .Sy reservation
2111 property on pool version 8 or earlier
2112 .Pc
2113 after the volume has been created.
2114 A
2115 .Qq sparse volume
2116 is a volume where the value of
2117 .Sy refreservation
2118 is less than the size of the volume plus the space required to store its
2119 metadata.
2120 Consequently, writes to a sparse volume can fail with
2121 .Er ENOSPC
2122 when the pool is low on space.
2123 For a sparse volume, changes to
2124 .Sy volsize
2125 are not reflected in the
2126 .Sy refreservation.
2127 A volume that is not sparse is said to be
2128 .Qq thick provisioned .
2129 A sparse volume can become thick provisioned by setting
2130 .Sy refreservation
2131 to
2132 .Sy auto .
2133 .It Sy volmode Ns = Ns Cm default | full | geom | dev | none
2134 This property specifies how volumes should be exposed to the OS.
2135 Setting it to
2136 .Sy full
2137 exposes volumes as fully fledged block devices, providing maximal
2138 functionality. The value
2139 .Sy geom
2140 is just an alias for
2141 .Sy full
2142 and is kept for compatibility.
2143 Setting it to
2144 .Sy dev
2145 hides its partitions.
2146 Volumes with property set to
2147 .Sy none
2148 are not exposed outside ZFS, but can be snapshoted, cloned, replicated, etc,
2149 that can be suitable for backup purposes.
2150 Value
2151 .Sy default
2152 means that volumes exposition is controlled by system-wide tunable
2153 .Va zvol_volmode ,
2154 where
2155 .Sy full ,
2156 .Sy dev
2157 and
2158 .Sy none
2159 are encoded as 1, 2 and 3 respectively.
2160 The default values is
2161 .Sy full .
2162 .It Sy vscan Ns = Ns Sy on Ns | Ns Sy off
2163 Controls whether regular files should be scanned for viruses when a file is
2164 opened and closed.
2165 In addition to enabling this property, the virus scan service must also be
2166 enabled for virus scanning to occur.
2167 The default value is
2168 .Sy off .
2169 This property is not used on Linux.
2170 .It Sy xattr Ns = Ns Sy on Ns | Ns Sy off Ns | Ns Sy sa
2171 Controls whether extended attributes are enabled for this file system. Two
2172 styles of extended attributes are supported either directory based or system
2173 attribute based.
2174 .Pp
2175 The default value of
2176 .Sy on
2177 enables directory based extended attributes. This style of extended attribute
2178 imposes no practical limit on either the size or number of attributes which
2179 can be set on a file. Although under Linux the
2180 .Xr getxattr 2
2181 and
2182 .Xr setxattr 2
2183 system calls limit the maximum size to 64K. This is the most compatible
2184 style of extended attribute and is supported by all OpenZFS implementations.
2185 .Pp
2186 System attribute based xattrs can be enabled by setting the value to
2187 .Sy sa .
2188 The key advantage of this type of xattr is improved performance. Storing
2189 extended attributes as system attributes significantly decreases the amount of
2190 disk IO required. Up to 64K of data may be stored per-file in the space
2191 reserved for system attributes. If there is not enough space available for
2192 an extended attribute then it will be automatically written as a directory
2193 based xattr. System attribute based extended attributes are not accessible
2194 on platforms which do not support the
2195 .Sy xattr=sa
2196 feature.
2197 .Pp
2198 The use of system attribute based xattrs is strongly encouraged for users of
2199 SELinux or POSIX ACLs. Both of these features heavily rely of extended
2200 attributes and benefit significantly from the reduced access time.
2201 .Pp
2202 The values
2203 .Sy on
2204 and
2205 .Sy off
2206 are equivalent to the
2207 .Sy xattr
2208 and
2209 .Sy noxattr
2210 mount options.
2211 .It Sy zoned Ns = Ns Sy on Ns | Ns Sy off
2212 Controls whether the dataset is managed from a non-global zone. Zones are a
2213 Solaris feature and are not relevant on Linux. The default value is
2214 .Sy off .
2215 .El
2216 .Pp
2217 The following three properties cannot be changed after the file system is
2218 created, and therefore, should be set when the file system is created.
2219 If the properties are not set with the
2220 .Nm zfs Cm create
2221 or
2222 .Nm zpool Cm create
2223 commands, these properties are inherited from the parent dataset.
2224 If the parent dataset lacks these properties due to having been created prior to
2225 these features being supported, the new file system will have the default values
2226 for these properties.
2227 .Bl -tag -width ""
2228 .It Xo
2229 .Sy casesensitivity Ns = Ns Sy sensitive Ns | Ns
2230 .Sy insensitive Ns | Ns Sy mixed
2231 .Xc
2232 Indicates whether the file name matching algorithm used by the file system
2233 should be case-sensitive, case-insensitive, or allow a combination of both
2234 styles of matching.
2235 The default value for the
2236 .Sy casesensitivity
2237 property is
2238 .Sy sensitive .
2239 Traditionally,
2240 .Ux
2241 and
2242 .Tn POSIX
2243 file systems have case-sensitive file names.
2244 .Pp
2245 The
2246 .Sy mixed
2247 value for the
2248 .Sy casesensitivity
2249 property indicates that the file system can support requests for both
2250 case-sensitive and case-insensitive matching behavior.
2251 Currently, case-insensitive matching behavior on a file system that supports
2252 mixed behavior is limited to the SMB server product.
2253 For more information about the
2254 .Sy mixed
2255 value behavior, see the "ZFS Administration Guide".
2256 .It Xo
2257 .Sy normalization Ns = Ns Sy none Ns | Ns Sy formC Ns | Ns
2258 .Sy formD Ns | Ns Sy formKC Ns | Ns Sy formKD
2259 .Xc
2260 Indicates whether the file system should perform a
2261 .Sy unicode
2262 normalization of file names whenever two file names are compared, and which
2263 normalization algorithm should be used.
2264 File names are always stored unmodified, names are normalized as part of any
2265 comparison process.
2266 If this property is set to a legal value other than
2267 .Sy none ,
2268 and the
2269 .Sy utf8only
2270 property was left unspecified, the
2271 .Sy utf8only
2272 property is automatically set to
2273 .Sy on .
2274 The default value of the
2275 .Sy normalization
2276 property is
2277 .Sy none .
2278 This property cannot be changed after the file system is created.
2279 .It Sy utf8only Ns = Ns Sy on Ns | Ns Sy off
2280 Indicates whether the file system should reject file names that include
2281 characters that are not present in the
2282 .Sy UTF-8
2283 character code set.
2284 If this property is explicitly set to
2285 .Sy off ,
2286 the normalization property must either not be explicitly set or be set to
2287 .Sy none .
2288 The default value for the
2289 .Sy utf8only
2290 property is
2291 .Sy off .
2292 This property cannot be changed after the file system is created.
2293 .El
2294 .Pp
2295 The
2296 .Sy casesensitivity ,
2297 .Sy normalization ,
2298 and
2299 .Sy utf8only
2300 properties are also new permissions that can be assigned to non-privileged users
2301 by using the ZFS delegated administration feature.
2302 .Ss "Temporary Mount Point Properties"
2303 When a file system is mounted, either through
2304 .Xr mount 8
2305 for legacy mounts or the
2306 .Nm zfs Cm mount
2307 command for normal file systems, its mount options are set according to its
2308 properties.
2309 The correlation between properties and mount options is as follows:
2310 .Bd -literal
2311     PROPERTY                MOUNT OPTION
2312     atime                   atime/noatime
2313     canmount                auto/noauto
2314     devices                 dev/nodev
2315     exec                    exec/noexec
2316     readonly                ro/rw
2317     relatime                relatime/norelatime
2318     setuid                  suid/nosuid
2319     xattr                   xattr/noxattr
2320 .Ed
2321 .Pp
2322 In addition, these options can be set on a per-mount basis using the
2323 .Fl o
2324 option, without affecting the property that is stored on disk.
2325 The values specified on the command line override the values stored in the
2326 dataset.
2327 The
2328 .Sy nosuid
2329 option is an alias for
2330 .Sy nodevices Ns \&, Ns Sy nosetuid .
2331 These properties are reported as
2332 .Qq temporary
2333 by the
2334 .Nm zfs Cm get
2335 command.
2336 If the properties are changed while the dataset is mounted, the new setting
2337 overrides any temporary settings.
2338 .Ss "User Properties"
2339 In addition to the standard native properties, ZFS supports arbitrary user
2340 properties.
2341 User properties have no effect on ZFS behavior, but applications or
2342 administrators can use them to annotate datasets
2343 .Pq file systems, volumes, and snapshots .
2344 .Pp
2345 User property names must contain a colon
2346 .Pq Qq Sy \&:
2347 character to distinguish them from native properties.
2348 They may contain lowercase letters, numbers, and the following punctuation
2349 characters: colon
2350 .Pq Qq Sy \&: ,
2351 dash
2352 .Pq Qq Sy - ,
2353 period
2354 .Pq Qq Sy \&. ,
2355 and underscore
2356 .Pq Qq Sy _ .
2357 The expected convention is that the property name is divided into two portions
2358 such as
2359 .Em module Ns \&: Ns Em property ,
2360 but this namespace is not enforced by ZFS.
2361 User property names can be at most 256 characters, and cannot begin with a dash
2362 .Pq Qq Sy - .
2363 .Pp
2364 When making programmatic use of user properties, it is strongly suggested to use
2365 a reversed
2366 .Sy DNS
2367 domain name for the
2368 .Em module
2369 component of property names to reduce the chance that two
2370 independently-developed packages use the same property name for different
2371 purposes.
2372 .Pp
2373 The values of user properties are arbitrary strings, are always inherited, and
2374 are never validated.
2375 All of the commands that operate on properties
2376 .Po Nm zfs Cm list ,
2377 .Nm zfs Cm get ,
2378 .Nm zfs Cm set ,
2379 and so forth
2380 .Pc
2381 can be used to manipulate both native properties and user properties.
2382 Use the
2383 .Nm zfs Cm inherit
2384 command to clear a user property.
2385 If the property is not defined in any parent dataset, it is removed entirely.
2386 Property values are limited to 8192 bytes.
2387 .Ss ZFS Volumes as Swap
2388 ZFS volumes may be used as swap devices. After creating the volume with the
2389 .Nm zfs Cm create Fl V
2390 command set up and enable the swap area using the
2391 .Xr mkswap 8
2392 and
2393 .Xr swapon 8
2394 commands. Do not swap to a file on a ZFS file system. A ZFS swap file
2395 configuration is not supported.
2396 .Ss Encryption
2397 Enabling the
2398 .Sy encryption
2399 feature allows for the creation of encrypted filesystems and volumes.  ZFS
2400 will encrypt file and zvol data, file attributes, ACLs, permission bits,
2401 directory listings, FUID mappings, and
2402 .Sy userused
2403 /
2404 .Sy groupused
2405 data.  ZFS will not encrypt metadata related to the pool structure, including
2406 dataset and snapshot names, dataset hierarchy, properties, file size, file
2407 holes, and deduplication tables (though the deduplicated data itself is
2408 encrypted).
2409 .Pp
2410 Key rotation is managed by ZFS.  Changing the user's key (e.g. a passphrase)
2411 does not require re-encrypting the entire dataset.  Datasets can be scrubbed,
2412 resilvered, renamed, and deleted without the encryption keys being loaded (see the
2413 .Nm zfs Cm load-key
2414 subcommand for more info on key loading).
2415 .Pp
2416 Creating an encrypted dataset requires specifying the
2417 .Sy encryption
2418 and
2419 .Sy keyformat
2420 properties at creation time, along with an optional
2421 .Sy keylocation
2422 and
2423 .Sy pbkdf2iters .
2424 After entering an encryption key, the
2425 created dataset will become an encryption root. Any descendant datasets will
2426 inherit their encryption key from the encryption root by default, meaning that
2427 loading, unloading, or changing the key for the encryption root will implicitly
2428 do the same for all inheriting datasets. If this inheritance is not desired,
2429 simply supply a
2430 .Sy keyformat
2431 when creating the child dataset or use
2432 .Nm zfs Cm change-key
2433 to break an existing relationship, creating a new encryption root on the child.
2434 Note that the child's
2435 .Sy keyformat
2436 may match that of the parent while still creating a new encryption root, and
2437 that changing the
2438 .Sy encryption
2439 property alone does not create a new encryption root; this would simply use a
2440 different cipher suite with the same key as its encryption root. The one
2441 exception is that clones will always use their origin's encryption key.
2442 As a result of this exception, some encryption-related properties (namely
2443 .Sy keystatus ,
2444 .Sy keyformat ,
2445 .Sy keylocation ,
2446 and
2447 .Sy pbkdf2iters )
2448 do not inherit like other ZFS properties and instead use the value determined
2449 by their encryption root. Encryption root inheritance can be tracked via the
2450 read-only
2451 .Sy encryptionroot
2452 property.
2453 .Pp
2454 Encryption changes the behavior of a few ZFS
2455 operations. Encryption is applied after compression so compression ratios are
2456 preserved. Normally checksums in ZFS are 256 bits long, but for encrypted data
2457 the checksum is 128 bits of the user-chosen checksum and 128 bits of MAC from
2458 the encryption suite, which provides additional protection against maliciously
2459 altered data. Deduplication is still possible with encryption enabled but for
2460 security, datasets will only dedup against themselves, their snapshots, and
2461 their clones.
2462 .Pp
2463 There are a few limitations on encrypted datasets. Encrypted data cannot be
2464 embedded via the
2465 .Sy embedded_data
2466 feature. Encrypted datasets may not have
2467 .Sy copies Ns = Ns Em 3
2468 since the implementation stores some encryption metadata where the third copy
2469 would normally be. Since compression is applied before encryption datasets may
2470 be vulnerable to a CRIME-like attack if applications accessing the data allow
2471 for it. Deduplication with encryption will leak information about which blocks
2472 are equivalent in a dataset and will incur an extra CPU cost per block written.
2473 .Ss Redaction
2474 ZFS has support for a limited version of data subsetting, in the form of
2475 redaction. Using the
2476 .Sy zfs redact
2477 command, a
2478 .Sy redaction bookmark
2479 can be created that stores a list of blocks containing sensitive information. When
2480 provided to
2481 .Sy zfs
2482 .Sy send ,
2483 this causes a
2484 .Sy redacted send
2485 to occur. Redacted sends omit the blocks containing sensitive information,
2486 replacing them with REDACT records. When these send streams are received, a
2487 .Sy redacted dataset
2488 is created. A redacted dataset cannot be mounted by default, since it is
2489 incomplete. It can be used to receive other send streams. In this way datasets
2490 can be used for data backup and replication, with all the benefits that zfs send
2491 and receive have to offer, while protecting sensitive information from being
2492 stored on less-trusted machines or services.
2493 .Pp
2494 For the purposes of redaction, there are two steps to the process. A redact
2495 step, and a send/receive step. First, a redaction bookmark is created. This is
2496 done by providing the
2497 .Sy zfs redact
2498 command with a parent snapshot, a bookmark to be created, and a number of
2499 redaction snapshots. These redaction snapshots must be descendants of the
2500 parent snapshot, and they should modify data that is considered sensitive in
2501 some way. Any blocks of data modified by all of the redaction snapshots will
2502 be listed in the redaction bookmark, because it represents the truly sensitive
2503 information. When it comes to the send step, the send process will not send
2504 the blocks listed in the redaction bookmark, instead replacing them with
2505 REDACT records. When received on the target system, this will create a
2506 redacted dataset, missing the data that corresponds to the blocks in the
2507 redaction bookmark on the sending system. The incremental send streams from
2508 the original parent to the redaction snapshots can then also be received on
2509 the target system, and this will produce a complete snapshot that can be used
2510 normally. Incrementals from one snapshot on the parent filesystem and another
2511 can also be done by sending from the redaction bookmark, rather than the
2512 snapshots themselves.
2513 .Pp
2514 In order to make the purpose of the feature more clear, an example is
2515 provided. Consider a zfs filesystem containing four files. These files
2516 represent information for an online shopping service. One file contains a list
2517 of usernames and passwords, another contains purchase histories, a third
2518 contains click tracking data, and a fourth contains user preferences.  The
2519 owner of this data wants to make it available for their development teams to
2520 test against, and their market research teams to do analysis on.  The
2521 development teams need information about user preferences and the click
2522 tracking data, while the market research teams need information about purchase
2523 histories and user preferences. Neither needs access to the usernames and
2524 passwords. However, because all of this data is stored in one ZFS filesystem,
2525 it must all be sent and received together. In addition, the owner of the data
2526 wants to take advantage of features like compression, checksumming, and
2527 snapshots, so they do want to continue to use ZFS to store and transmit their
2528 data.  Redaction can help them do so. First, they would make two clones of a
2529 snapshot of the data on the source. In one clone, they create the setup they
2530 want their market research team to see; they delete the usernames and
2531 passwords file, and overwrite the click tracking data with dummy
2532 information. In another, they create the setup they want the development teams
2533 to see, by replacing the passwords with fake information and replacing the
2534 purchase histories with randomly generated ones.  They would then create a
2535 redaction bookmark on the parent snapshot, using snapshots on the two clones
2536 as redaction snapshots. The parent can then be sent, redacted, to the target
2537 server where the research and development teams have access. Finally,
2538 incremental sends from the parent snapshot to each of the clones can be send
2539 to and received on the target server; these snapshots are identical to the
2540 ones on the source, and are ready to be used, while the parent snapshot on the
2541 target contains none of the username and password data present on the source,
2542 because it was removed by the redacted send operation.
2543 .Sh SUBCOMMANDS
2544 All subcommands that modify state are logged persistently to the pool in their
2545 original form.
2546 .Bl -tag -width ""
2547 .It Nm Fl ?
2548 Displays a help message.
2549 .It Xo
2550 .Nm
2551 .Fl V, -version
2552 .Xc
2553 An alias for the
2554 .Nm zfs Cm version
2555 subcommand.
2556 .It Xo
2557 .Nm
2558 .Cm create
2559 .Op Fl p
2560 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
2561 .Ar filesystem
2562 .Xc
2563 Creates a new ZFS file system.
2564 The file system is automatically mounted according to the
2565 .Sy mountpoint
2566 property inherited from the parent.
2567 .Bl -tag -width "-o"
2568 .It Fl o Ar property Ns = Ns Ar value
2569 Sets the specified property as if the command
2570 .Nm zfs Cm set Ar property Ns = Ns Ar value
2571 was invoked at the same time the dataset was created.
2572 Any editable ZFS property can also be set at creation time.
2573 Multiple
2574 .Fl o
2575 options can be specified.
2576 An error results if the same property is specified in multiple
2577 .Fl o
2578 options.
2579 .It Fl p
2580 Creates all the non-existing parent datasets.
2581 Datasets created in this manner are automatically mounted according to the
2582 .Sy mountpoint
2583 property inherited from their parent.
2584 Any property specified on the command line using the
2585 .Fl o
2586 option is ignored.
2587 If the target filesystem already exists, the operation completes successfully.
2588 .El
2589 .It Xo
2590 .Nm
2591 .Cm create
2592 .Op Fl ps
2593 .Op Fl b Ar blocksize
2594 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
2595 .Fl V Ar size Ar volume
2596 .Xc
2597 Creates a volume of the given size.
2598 The volume is exported as a block device in
2599 .Pa /dev/zvol/path ,
2600 where
2601 .Em path
2602 is the name of the volume in the ZFS namespace.
2603 The size represents the logical size as exported by the device.
2604 By default, a reservation of equal size is created.
2605 .Pp
2606 .Ar size
2607 is automatically rounded up to the nearest 128 Kbytes to ensure that the volume
2608 has an integral number of blocks regardless of
2609 .Sy blocksize .
2610 .Bl -tag -width "-b"
2611 .It Fl b Ar blocksize
2612 Equivalent to
2613 .Fl o Sy volblocksize Ns = Ns Ar blocksize .
2614 If this option is specified in conjunction with
2615 .Fl o Sy volblocksize ,
2616 the resulting behavior is undefined.
2617 .It Fl o Ar property Ns = Ns Ar value
2618 Sets the specified property as if the
2619 .Nm zfs Cm set Ar property Ns = Ns Ar value
2620 command was invoked at the same time the dataset was created.
2621 Any editable ZFS property can also be set at creation time.
2622 Multiple
2623 .Fl o
2624 options can be specified.
2625 An error results if the same property is specified in multiple
2626 .Fl o
2627 options.
2628 .It Fl p
2629 Creates all the non-existing parent datasets.
2630 Datasets created in this manner are automatically mounted according to the
2631 .Sy mountpoint
2632 property inherited from their parent.
2633 Any property specified on the command line using the
2634 .Fl o
2635 option is ignored.
2636 If the target filesystem already exists, the operation completes successfully.
2637 .It Fl s
2638 Creates a sparse volume with no reservation.
2639 See
2640 .Sy volsize
2641 in the
2642 .Sx Native Properties
2643 section for more information about sparse volumes.
2644 .El
2645 .It Xo
2646 .Nm
2647 .Cm destroy
2648 .Op Fl Rfnprv
2649 .Ar filesystem Ns | Ns Ar volume
2650 .Xc
2651 Destroys the given dataset.
2652 By default, the command unshares any file systems that are currently shared,
2653 unmounts any file systems that are currently mounted, and refuses to destroy a
2654 dataset that has active dependents
2655 .Pq children or clones .
2656 .Bl -tag -width "-R"
2657 .It Fl R
2658 Recursively destroy all dependents, including cloned file systems outside the
2659 target hierarchy.
2660 .It Fl f
2661 Force an unmount of any file systems using the
2662 .Nm unmount Fl f
2663 command.
2664 This option has no effect on non-file systems or unmounted file systems.
2665 .It Fl n
2666 Do a dry-run
2667 .Pq Qq No-op
2668 deletion.
2669 No data will be deleted.
2670 This is useful in conjunction with the
2671 .Fl v
2672 or
2673 .Fl p
2674 flags to determine what data would be deleted.
2675 .It Fl p
2676 Print machine-parsable verbose information about the deleted data.
2677 .It Fl r
2678 Recursively destroy all children.
2679 .It Fl v
2680 Print verbose information about the deleted data.
2681 .El
2682 .Pp
2683 Extreme care should be taken when applying either the
2684 .Fl r
2685 or the
2686 .Fl R
2687 options, as they can destroy large portions of a pool and cause unexpected
2688 behavior for mounted file systems in use.
2689 .It Xo
2690 .Nm
2691 .Cm destroy
2692 .Op Fl Rdnprv
2693 .Ar filesystem Ns | Ns Ar volume Ns @ Ns Ar snap Ns
2694 .Oo % Ns Ar snap Ns Oo , Ns Ar snap Ns Oo % Ns Ar snap Oc Oc Oc Ns ...
2695 .Xc
2696 The given snapshots are destroyed immediately if and only if the
2697 .Nm zfs Cm destroy
2698 command without the
2699 .Fl d
2700 option would have destroyed it.
2701 Such immediate destruction would occur, for example, if the snapshot had no
2702 clones and the user-initiated reference count were zero.
2703 .Pp
2704 If a snapshot does not qualify for immediate destruction, it is marked for
2705 deferred deletion.
2706 In this state, it exists as a usable, visible snapshot until both of the
2707 preconditions listed above are met, at which point it is destroyed.
2708 .Pp
2709 An inclusive range of snapshots may be specified by separating the first and
2710 last snapshots with a percent sign.
2711 The first and/or last snapshots may be left blank, in which case the
2712 filesystem's oldest or newest snapshot will be implied.
2713 .Pp
2714 Multiple snapshots
2715 .Pq or ranges of snapshots
2716 of the same filesystem or volume may be specified in a comma-separated list of
2717 snapshots.
2718 Only the snapshot's short name
2719 .Po the part after the
2720 .Sy @
2721 .Pc
2722 should be specified when using a range or comma-separated list to identify
2723 multiple snapshots.
2724 .Bl -tag -width "-R"
2725 .It Fl R
2726 Recursively destroy all clones of these snapshots, including the clones,
2727 snapshots, and children.
2728 If this flag is specified, the
2729 .Fl d
2730 flag will have no effect.
2731 .It Fl d
2732 Destroy immediately. If a snapshot cannot be destroyed now, mark it for
2733 deferred destruction.
2734 .It Fl n
2735 Do a dry-run
2736 .Pq Qq No-op
2737 deletion.
2738 No data will be deleted.
2739 This is useful in conjunction with the
2740 .Fl p
2741 or
2742 .Fl v
2743 flags to determine what data would be deleted.
2744 .It Fl p
2745 Print machine-parsable verbose information about the deleted data.
2746 .It Fl r
2747 Destroy
2748 .Pq or mark for deferred deletion
2749 all snapshots with this name in descendent file systems.
2750 .It Fl v
2751 Print verbose information about the deleted data.
2752 .Pp
2753 Extreme care should be taken when applying either the
2754 .Fl r
2755 or the
2756 .Fl R
2757 options, as they can destroy large portions of a pool and cause unexpected
2758 behavior for mounted file systems in use.
2759 .El
2760 .It Xo
2761 .Nm
2762 .Cm destroy
2763 .Ar filesystem Ns | Ns Ar volume Ns # Ns Ar bookmark
2764 .Xc
2765 The given bookmark is destroyed.
2766 .It Xo
2767 .Nm
2768 .Cm snapshot
2769 .Op Fl r
2770 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
2771 .Ar filesystem Ns @ Ns Ar snapname Ns | Ns Ar volume Ns @ Ns Ar snapname Ns ...
2772 .Xc
2773 Creates snapshots with the given names.
2774 All previous modifications by successful system calls to the file system are
2775 part of the snapshots.
2776 Snapshots are taken atomically, so that all snapshots correspond to the same
2777 moment in time.
2778 .Nm zfs Cm snap
2779 can be used as an alias for
2780 .Nm zfs Cm snapshot.
2781 See the
2782 .Sx Snapshots
2783 section for details.
2784 .Bl -tag -width "-o"
2785 .It Fl o Ar property Ns = Ns Ar value
2786 Sets the specified property; see
2787 .Nm zfs Cm create
2788 for details.
2789 .It Fl r
2790 Recursively create snapshots of all descendent datasets
2791 .El
2792 .It Xo
2793 .Nm
2794 .Cm rollback
2795 .Op Fl Rfr
2796 .Ar snapshot
2797 .Xc
2798 Roll back the given dataset to a previous snapshot.
2799 When a dataset is rolled back, all data that has changed since the snapshot is
2800 discarded, and the dataset reverts to the state at the time of the snapshot.
2801 By default, the command refuses to roll back to a snapshot other than the most
2802 recent one.
2803 In order to do so, all intermediate snapshots and bookmarks must be destroyed by
2804 specifying the
2805 .Fl r
2806 option.
2807 .Pp
2808 The
2809 .Fl rR
2810 options do not recursively destroy the child snapshots of a recursive snapshot.
2811 Only direct snapshots of the specified filesystem are destroyed by either of
2812 these options.
2813 To completely roll back a recursive snapshot, you must rollback the individual
2814 child snapshots.
2815 .Bl -tag -width "-R"
2816 .It Fl R
2817 Destroy any more recent snapshots and bookmarks, as well as any clones of those
2818 snapshots.
2819 .It Fl f
2820 Used with the
2821 .Fl R
2822 option to force an unmount of any clone file systems that are to be destroyed.
2823 .It Fl r
2824 Destroy any snapshots and bookmarks more recent than the one specified.
2825 .El
2826 .It Xo
2827 .Nm
2828 .Cm clone
2829 .Op Fl p
2830 .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ...
2831 .Ar snapshot Ar filesystem Ns | Ns Ar volume
2832 .Xc
2833 Creates a clone of the given snapshot.
2834 See the
2835 .Sx Clones
2836 section for details.
2837 The target dataset can be located anywhere in the ZFS hierarchy, and is created
2838 as the same type as the original.
2839 .Bl -tag -width "-o"
2840 .It Fl o Ar property Ns = Ns Ar value
2841 Sets the specified property; see
2842 .Nm zfs Cm create
2843 for details.
2844 .It Fl p
2845 Creates all the non-existing parent datasets.
2846 Datasets created in this manner are automatically mounted according to the
2847 .Sy mountpoint
2848 property inherited from their parent.
2849 If the target filesystem or volume already exists, the operation completes
2850 successfully.
2851 .El
2852 .It Xo
2853 .Nm
2854 .Cm promote
2855 .Ar clone-filesystem
2856 .Xc
2857 Promotes a clone file system to no longer be dependent on its
2858 .Qq origin
2859 snapshot.
2860 This makes it possible to destroy the file system that the clone was created
2861 from.
2862 The clone parent-child dependency relationship is reversed, so that the origin
2863 file system becomes a clone of the specified file system.
2864 .Pp
2865 The snapshot that was cloned, and any snapshots previous to this snapshot, are
2866 now owned by the promoted clone.
2867 The space they use moves from the origin file system to the promoted clone, so
2868 enough space must be available to accommodate these snapshots.
2869 No new space is consumed by this operation, but the space accounting is
2870 adjusted.
2871 The promoted clone must not have any conflicting snapshot names of its own.
2872 The
2873 .Cm rename
2874 subcommand can be used to rename any conflicting snapshots.
2875 .It Xo
2876 .Nm
2877 .Cm rename
2878 .Op Fl f
2879 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
2880 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
2881 .Xc
2882 .It Xo
2883 .Nm
2884 .Cm rename
2885 .Op Fl fp
2886 .Ar filesystem Ns | Ns Ar volume
2887 .Ar filesystem Ns | Ns Ar volume
2888 .Xc
2889 Renames the given dataset.
2890 The new target can be located anywhere in the ZFS hierarchy, with the exception
2891 of snapshots.
2892 Snapshots can only be renamed within the parent file system or volume.
2893 When renaming a snapshot, the parent file system of the snapshot does not need
2894 to be specified as part of the second argument.
2895 Renamed file systems can inherit new mount points, in which case they are
2896 unmounted and remounted at the new mount point.
2897 .Bl -tag -width "-a"
2898 .It Fl f
2899 Force unmount any filesystems that need to be unmounted in the process.
2900 .It Fl p
2901 Creates all the nonexistent parent datasets.
2902 Datasets created in this manner are automatically mounted according to the
2903 .Sy mountpoint
2904 property inherited from their parent.
2905 .El
2906 .It Xo
2907 .Nm
2908 .Cm rename
2909 .Fl r
2910 .Ar snapshot Ar snapshot
2911 .Xc
2912 Recursively rename the snapshots of all descendent datasets.
2913 Snapshots are the only dataset that can be renamed recursively.
2914 .It Xo
2915 .Nm
2916 .Cm list
2917 .Op Fl r Ns | Ns Fl d Ar depth
2918 .Op Fl Hp
2919 .Oo Fl o Ar property Ns Oo , Ns Ar property Oc Ns ... Oc
2920 .Oo Fl s Ar property Oc Ns ...
2921 .Oo Fl S Ar property Oc Ns ...
2922 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
2923 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Oc Ns ...
2924 .Xc
2925 Lists the property information for the given datasets in tabular form.
2926 If specified, you can list property information by the absolute pathname or the
2927 relative pathname.
2928 By default, all file systems and volumes are displayed.
2929 Snapshots are displayed if the
2930 .Sy listsnaps
2931 property is
2932 .Sy on
2933 .Po the default is
2934 .Sy off
2935 .Pc .
2936 The following fields are displayed:
2937 .Sy name Ns \&, Sy used Ns \&, Sy available Ns \&, Sy referenced Ns \&, Sy mountpoint Ns .
2938 .Bl -tag -width "-H"
2939 .It Fl H
2940 Used for scripting mode.
2941 Do not print headers and separate fields by a single tab instead of arbitrary
2942 white space.
2943 .It Fl S Ar property
2944 Same as the
2945 .Fl s
2946 option, but sorts by property in descending order.
2947 .It Fl d Ar depth
2948 Recursively display any children of the dataset, limiting the recursion to
2949 .Ar depth .
2950 A
2951 .Ar depth
2952 of
2953 .Sy 1
2954 will display only the dataset and its direct children.
2955 .It Fl o Ar property
2956 A comma-separated list of properties to display.
2957 The property must be:
2958 .Bl -bullet
2959 .It
2960 One of the properties described in the
2961 .Sx Native Properties
2962 section
2963 .It
2964 A user property
2965 .It
2966 The value
2967 .Sy name
2968 to display the dataset name
2969 .It
2970 The value
2971 .Sy space
2972 to display space usage properties on file systems and volumes.
2973 This is a shortcut for specifying
2974 .Fl o Sy name Ns \&, Ns Sy avail Ns \&, Ns Sy used Ns \&, Ns Sy usedsnap Ns \&, Ns
2975 .Sy usedds Ns \&, Ns Sy usedrefreserv Ns \&, Ns Sy usedchild Fl t
2976 .Sy filesystem Ns \&, Ns Sy volume
2977 syntax.
2978 .El
2979 .It Fl p
2980 Display numbers in parsable
2981 .Pq exact
2982 values.
2983 .It Fl r
2984 Recursively display any children of the dataset on the command line.
2985 .It Fl s Ar property
2986 A property for sorting the output by column in ascending order based on the
2987 value of the property.
2988 The property must be one of the properties described in the
2989 .Sx Properties
2990 section or the value
2991 .Sy name
2992 to sort by the dataset name.
2993 Multiple properties can be specified at one time using multiple
2994 .Fl s
2995 property options.
2996 Multiple
2997 .Fl s
2998 options are evaluated from left to right in decreasing order of importance.
2999 The following is a list of sorting criteria:
3000 .Bl -bullet
3001 .It
3002 Numeric types sort in numeric order.
3003 .It
3004 String types sort in alphabetical order.
3005 .It
3006 Types inappropriate for a row sort that row to the literal bottom, regardless of
3007 the specified ordering.
3008 .El
3009 .Pp
3010 If no sorting options are specified the existing behavior of
3011 .Nm zfs Cm list
3012 is preserved.
3013 .It Fl t Ar type
3014 A comma-separated list of types to display, where
3015 .Ar type
3016 is one of
3017 .Sy filesystem ,
3018 .Sy snapshot ,
3019 .Sy volume ,
3020 .Sy bookmark ,
3021 or
3022 .Sy all .
3023 For example, specifying
3024 .Fl t Sy snapshot
3025 displays only snapshots.
3026 .El
3027 .It Xo
3028 .Nm
3029 .Cm set
3030 .Ar property Ns = Ns Ar value Oo Ar property Ns = Ns Ar value Oc Ns ...
3031 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
3032 .Xc
3033 Sets the property or list of properties to the given value(s) for each dataset.
3034 Only some properties can be edited.
3035 See the
3036 .Sx Properties
3037 section for more information on what properties can be set and acceptable
3038 values.
3039 Numeric values can be specified as exact values, or in a human-readable form
3040 with a suffix of
3041 .Sy B , K , M , G , T , P , E , Z
3042 .Po for bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, exabytes,
3043 or zettabytes, respectively
3044 .Pc .
3045 User properties can be set on snapshots.
3046 For more information, see the
3047 .Sx User Properties
3048 section.
3049 .It Xo
3050 .Nm
3051 .Cm get
3052 .Op Fl r Ns | Ns Fl d Ar depth
3053 .Op Fl Hp
3054 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
3055 .Oo Fl s Ar source Ns Oo , Ns Ar source Oc Ns ... Oc
3056 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
3057 .Cm all | Ar property Ns Oo , Ns Ar property Oc Ns ...
3058 .Oo Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns | Ns Ar bookmark Oc Ns ...
3059 .Xc
3060 Displays properties for the given datasets.
3061 If no datasets are specified, then the command displays properties for all
3062 datasets on the system.
3063 For each property, the following columns are displayed:
3064 .Bd -literal
3065     name      Dataset name
3066     property  Property name
3067     value     Property value
3068     source    Property source  \fBlocal\fP, \fBdefault\fP, \fBinherited\fP,
3069               \fBtemporary\fP, \fBreceived\fP or none (\fB-\fP).
3070 .Ed
3071 .Pp
3072 All columns are displayed by default, though this can be controlled by using the
3073 .Fl o
3074 option.
3075 This command takes a comma-separated list of properties as described in the
3076 .Sx Native Properties
3077 and
3078 .Sx User Properties
3079 sections.
3080 .Pp
3081 The value
3082 .Sy all
3083 can be used to display all properties that apply to the given dataset's type
3084 .Pq filesystem, volume, snapshot, or bookmark .
3085 .Bl -tag -width "-H"
3086 .It Fl H
3087 Display output in a form more easily parsed by scripts.
3088 Any headers are omitted, and fields are explicitly separated by a single tab
3089 instead of an arbitrary amount of space.
3090 .It Fl d Ar depth
3091 Recursively display any children of the dataset, limiting the recursion to
3092 .Ar depth .
3093 A depth of
3094 .Sy 1
3095 will display only the dataset and its direct children.
3096 .It Fl o Ar field
3097 A comma-separated list of columns to display.
3098 .Sy name Ns \&, Ns Sy property Ns \&, Ns Sy value Ns \&, Ns Sy source
3099 is the default value.
3100 .It Fl p
3101 Display numbers in parsable
3102 .Pq exact
3103 values.
3104 .It Fl r
3105 Recursively display properties for any children.
3106 .It Fl s Ar source
3107 A comma-separated list of sources to display.
3108 Those properties coming from a source other than those in this list are ignored.
3109 Each source must be one of the following:
3110 .Sy local ,
3111 .Sy default ,
3112 .Sy inherited ,
3113 .Sy temporary ,
3114 .Sy received ,
3115 and
3116 .Sy none .
3117 The default value is all sources.
3118 .It Fl t Ar type
3119 A comma-separated list of types to display, where
3120 .Ar type
3121 is one of
3122 .Sy filesystem ,
3123 .Sy snapshot ,
3124 .Sy volume ,
3125 .Sy bookmark ,
3126 or
3127 .Sy all .
3128 .El
3129 .It Xo
3130 .Nm
3131 .Cm inherit
3132 .Op Fl rS
3133 .Ar property Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot Ns ...
3134 .Xc
3135 Clears the specified property, causing it to be inherited from an ancestor,
3136 restored to default if no ancestor has the property set, or with the
3137 .Fl S
3138 option reverted to the received value if one exists.
3139 See the
3140 .Sx Properties
3141 section for a listing of default values, and details on which properties can be
3142 inherited.
3143 .Bl -tag -width "-r"
3144 .It Fl r
3145 Recursively inherit the given property for all children.
3146 .It Fl S
3147 Revert the property to the received value if one exists; otherwise operate as
3148 if the
3149 .Fl S
3150 option was not specified.
3151 .El
3152 .It Xo
3153 .Nm
3154 .Cm upgrade
3155 .Xc
3156 Displays a list of file systems that are not the most recent version.
3157 .It Xo
3158 .Nm
3159 .Cm upgrade
3160 .Fl v
3161 .Xc
3162 Displays a list of currently supported file system versions.
3163 .It Xo
3164 .Nm
3165 .Cm upgrade
3166 .Op Fl r
3167 .Op Fl V Ar version
3168 .Fl a | Ar filesystem
3169 .Xc
3170 Upgrades file systems to a new on-disk version.
3171 Once this is done, the file systems will no longer be accessible on systems
3172 running older versions of the software.
3173 .Nm zfs Cm send
3174 streams generated from new snapshots of these file systems cannot be accessed on
3175 systems running older versions of the software.
3176 .Pp
3177 In general, the file system version is independent of the pool version.
3178 See
3179 .Xr zpool 8
3180 for information on the
3181 .Nm zpool Cm upgrade
3182 command.
3183 .Pp
3184 In some cases, the file system version and the pool version are interrelated and
3185 the pool version must be upgraded before the file system version can be
3186 upgraded.
3187 .Bl -tag -width "-V"
3188 .It Fl V Ar version
3189 Upgrade to the specified
3190 .Ar version .
3191 If the
3192 .Fl V
3193 flag is not specified, this command upgrades to the most recent version.
3194 This
3195 option can only be used to increase the version number, and only up to the most
3196 recent version supported by this software.
3197 .It Fl a
3198 Upgrade all file systems on all imported pools.
3199 .It Ar filesystem
3200 Upgrade the specified file system.
3201 .It Fl r
3202 Upgrade the specified file system and all descendent file systems.
3203 .El
3204 .It Xo
3205 .Nm
3206 .Cm userspace
3207 .Op Fl Hinp
3208 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
3209 .Oo Fl s Ar field Oc Ns ...
3210 .Oo Fl S Ar field Oc Ns ...
3211 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
3212 .Ar filesystem Ns | Ns Ar snapshot
3213 .Xc
3214 Displays space consumed by, and quotas on, each user in the specified filesystem
3215 or snapshot.
3216 This corresponds to the
3217 .Sy userused@ Ns Em user ,
3218 .Sy userobjused@ Ns Em user ,
3219 .Sy userquota@ Ns Em user,
3220 and
3221 .Sy userobjquota@ Ns Em user
3222 properties.
3223 .Bl -tag -width "-H"
3224 .It Fl H
3225 Do not print headers, use tab-delimited output.
3226 .It Fl S Ar field
3227 Sort by this field in reverse order.
3228 See
3229 .Fl s .
3230 .It Fl i
3231 Translate SID to POSIX ID.
3232 The POSIX ID may be ephemeral if no mapping exists.
3233 Normal POSIX interfaces
3234 .Po for example,
3235 .Xr stat 2 ,
3236 .Nm ls Fl l
3237 .Pc
3238 perform this translation, so the
3239 .Fl i
3240 option allows the output from
3241 .Nm zfs Cm userspace
3242 to be compared directly with those utilities.
3243 However,
3244 .Fl i
3245 may lead to confusion if some files were created by an SMB user before a
3246 SMB-to-POSIX name mapping was established.
3247 In such a case, some files will be owned by the SMB entity and some by the POSIX
3248 entity.
3249 However, the
3250 .Fl i
3251 option will report that the POSIX entity has the total usage and quota for both.
3252 .It Fl n
3253 Print numeric ID instead of user/group name.
3254 .It Fl o Ar field Ns Oo , Ns Ar field Oc Ns ...
3255 Display only the specified fields from the following set:
3256 .Sy type ,
3257 .Sy name ,
3258 .Sy used ,
3259 .Sy quota .
3260 The default is to display all fields.
3261 .It Fl p
3262 Use exact
3263 .Pq parsable
3264 numeric output.
3265 .It Fl s Ar field
3266 Sort output by this field.
3267 The
3268 .Fl s
3269 and
3270 .Fl S
3271 flags may be specified multiple times to sort first by one field, then by
3272 another.
3273 The default is
3274 .Fl s Sy type Fl s Sy name .
3275 .It Fl t Ar type Ns Oo , Ns Ar type Oc Ns ...
3276 Print only the specified types from the following set:
3277 .Sy all ,
3278 .Sy posixuser ,
3279 .Sy smbuser ,
3280 .Sy posixgroup ,
3281 .Sy smbgroup .
3282 The default is
3283 .Fl t Sy posixuser Ns \&, Ns Sy smbuser .
3284 The default can be changed to include group types.
3285 .El
3286 .It Xo
3287 .Nm
3288 .Cm groupspace
3289 .Op Fl Hinp
3290 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
3291 .Oo Fl s Ar field Oc Ns ...
3292 .Oo Fl S Ar field Oc Ns ...
3293 .Oo Fl t Ar type Ns Oo , Ns Ar type Oc Ns ... Oc
3294 .Ar filesystem Ns | Ns Ar snapshot
3295 .Xc
3296 Displays space consumed by, and quotas on, each group in the specified
3297 filesystem or snapshot.
3298 This subcommand is identical to
3299 .Nm zfs Cm userspace ,
3300 except that the default types to display are
3301 .Fl t Sy posixgroup Ns \&, Ns Sy smbgroup .
3302 .It Xo
3303 .Nm
3304 .Cm projectspace
3305 .Op Fl Hp
3306 .Oo Fl o Ar field Ns Oo , Ns Ar field Oc Ns ... Oc
3307 .Oo Fl s Ar field Oc Ns ...
3308 .Oo Fl S Ar field Oc Ns ...
3309 .Ar filesystem Ns | Ns Ar snapshot
3310 .Xc
3311 Displays space consumed by, and quotas on, each project in the specified
3312 filesystem or snapshot. This subcommand is identical to
3313 .Nm zfs Cm userspace ,
3314 except that the project identifier is numeral, not name. So need neither
3315 the option
3316 .Sy -i
3317 for SID to POSIX ID nor
3318 .Sy -n
3319 for numeric ID, nor
3320 .Sy -t
3321 for types.
3322 .It Xo
3323 .Nm
3324 .Cm project
3325 .Oo Fl d Ns | Ns Fl r Ns Oc
3326 .Ar file Ns | Ns Ar directory Ns ...
3327 .Xc
3328 List project identifier (ID) and inherit flag of file(s) or directories.
3329 .Bl -tag -width "-d"
3330 .It Fl d
3331 Show the directory project ID and inherit flag, not its childrens. It will
3332 overwrite the former specified
3333 .Fl r
3334 option.
3335 .It Fl r
3336 Show on subdirectories recursively. It will overwrite the former specified
3337 .Fl d
3338 option.
3339 .El
3340 .It Xo
3341 .Nm
3342 .Cm project
3343 .Fl C
3344 .Oo Fl kr Ns Oc
3345 .Ar file Ns | Ns Ar directory Ns ...
3346 .Xc
3347 Clear project inherit flag and/or ID on the file(s) or directories.
3348 .Bl -tag -width "-k"
3349 .It Fl k
3350 Keep the project ID unchanged. If not specified, the project ID will be reset
3351 as zero.
3352 .It Fl r
3353 Clear on subdirectories recursively.
3354 .El
3355 .It Xo
3356 .Nm
3357 .Cm project
3358 .Fl c
3359 .Oo Fl 0 Ns Oc
3360 .Oo Fl d Ns | Ns Fl r Ns Oc
3361 .Op Fl p Ar id
3362 .Ar file Ns | Ns Ar directory Ns ...
3363 .Xc
3364 Check project ID and inherit flag on the file(s) or directories, report the
3365 entries without project inherit flag or with different project IDs from the
3366 specified (via
3367 .Fl p
3368 option) value or the target directory's project ID.
3369 .Bl -tag -width "-0"
3370 .It Fl 0
3371 Print file name with a trailing NUL instead of newline (by default), like
3372 "find -print0".
3373 .It Fl d
3374 Check the directory project ID and inherit flag, not its childrens. It will
3375 overwrite the former specified
3376 .Fl r
3377 option.
3378 .It Fl p
3379 Specify the referenced ID for comparing with the target file(s) or directories'
3380 project IDs. If not specified, the target (top) directory's project ID will be
3381 used as the referenced one.
3382 .It Fl r
3383 Check on subdirectories recursively. It will overwrite the former specified
3384 .Fl d
3385 option.
3386 .El
3387 .It Xo
3388 .Nm
3389 .Cm project
3390 .Op Fl p Ar id
3391 .Oo Fl rs Ns Oc
3392 .Ar file Ns | Ns Ar directory Ns ...
3393 .Xc
3394 .Bl -tag -width "-p"
3395 Set project ID and/or inherit flag on the file(s) or directories.
3396 .It Fl p
3397 Set the file(s)' or directories' project ID with the given value.
3398 .It Fl r
3399 Set on subdirectories recursively.
3400 .It Fl s
3401 Set project inherit flag on the given file(s) or directories. It is usually used
3402 for setup tree quota on the directory target with
3403 .Fl r
3404 option specified together. When setup tree quota, by default the directory's
3405 project ID will be set to all its descendants unless you specify the project
3406 ID via
3407 .Fl p
3408 option explicitly.
3409 .El
3410 .It Xo
3411 .Nm
3412 .Cm mount
3413 .Xc
3414 Displays all ZFS file systems currently mounted.
3415 .It Xo
3416 .Nm
3417 .Cm mount
3418 .Op Fl Oflv
3419 .Op Fl o Ar options
3420 .Fl a | Ar filesystem
3421 .Xc
3422 Mount ZFS filesystem on a path described by its
3423 .Sy mountpoint
3424 property, if the path exists and is empty. If
3425 .Sy mountpoint
3426 is set to
3427 .Em legacy ,
3428 the filesystem should be instead mounted using
3429 .Xr mount 8 .
3430 .Bl -tag -width "-O"
3431 .It Fl O
3432 Perform an overlay mount. Allows mounting in non-empty
3433 .Sy mountpoint .
3434 See
3435 .Xr mount 8
3436 for more information.
3437 .It Fl a
3438 Mount all available ZFS file systems.
3439 Invoked automatically as part of the boot process if configured.
3440 .It Ar filesystem
3441 Mount the specified filesystem.
3442 .It Fl o Ar options
3443 An optional, comma-separated list of mount options to use temporarily for the
3444 duration of the mount.
3445 See the
3446 .Sx Temporary Mount Point Properties
3447 section for details.
3448 .It Fl l
3449 Load keys for encrypted filesystems as they are being mounted. This is
3450 equivalent to executing
3451 .Nm zfs Cm load-key
3452 on each encryption root before mounting it. Note that if a filesystem has a
3453 .Sy keylocation
3454 of
3455 .Sy prompt
3456 this will cause the terminal to interactively block after asking for the key.
3457 .It Fl v
3458 Report mount progress.
3459 .It Fl f
3460 Attempt to force mounting of all filesystems, even those that couldn't normally be mounted (e.g. redacted datasets).
3461 .El
3462 .It Xo
3463 .Nm
3464 .Cm unmount
3465 .Op Fl f
3466 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
3467 .Xc
3468 Unmounts currently mounted ZFS file systems.
3469 .Bl -tag -width "-a"
3470 .It Fl a
3471 Unmount all available ZFS file systems.
3472 Invoked automatically as part of the shutdown process.
3473 .It Ar filesystem Ns | Ns Ar mountpoint
3474 Unmount the specified filesystem.
3475 The command can also be given a path to a ZFS file system mount point on the
3476 system.
3477 .It Fl f
3478 Forcefully unmount the file system, even if it is currently in use.
3479 .El
3480 .It Xo
3481 .Nm
3482 .Cm share
3483 .Fl a | Ar filesystem
3484 .Xc
3485 Shares available ZFS file systems.
3486 .Bl -tag -width "-a"
3487 .It Fl a
3488 Share all available ZFS file systems.
3489 Invoked automatically as part of the boot process.
3490 .It Ar filesystem
3491 Share the specified filesystem according to the
3492 .Sy sharenfs
3493 and
3494 .Sy sharesmb
3495 properties.
3496 File systems are shared when the
3497 .Sy sharenfs
3498 or
3499 .Sy sharesmb
3500 property is set.
3501 .El
3502 .It Xo
3503 .Nm
3504 .Cm unshare
3505 .Fl a | Ar filesystem Ns | Ns Ar mountpoint
3506 .Xc
3507 Unshares currently shared ZFS file systems.
3508 .Bl -tag -width "-a"
3509 .It Fl a
3510 Unshare all available ZFS file systems.
3511 Invoked automatically as part of the shutdown process.
3512 .It Ar filesystem Ns | Ns Ar mountpoint
3513 Unshare the specified filesystem.
3514 The command can also be given a path to a ZFS file system shared on the system.
3515 .El
3516 .It Xo
3517 .Nm
3518 .Cm bookmark
3519 .Ar snapshot bookmark
3520 .Xc
3521 Creates a bookmark of the given snapshot.
3522 Bookmarks mark the point in time when the snapshot was created, and can be used
3523 as the incremental source for a
3524 .Nm zfs Cm send
3525 command.
3526 .Pp
3527 This feature must be enabled to be used.
3528 See
3529 .Xr zpool-features 5
3530 for details on ZFS feature flags and the
3531 .Sy bookmarks
3532 feature.
3533 .It Xo
3534 .Nm
3535 .Cm send
3536 .Op Fl DLPRbcehnpvw
3537 .Op Oo Fl I Ns | Ns Fl i Oc Ar snapshot
3538 .Ar snapshot
3539 .Xc
3540 Creates a stream representation of the second
3541 .Ar snapshot ,
3542 which is written to standard output.
3543 The output can be redirected to a file or to a different system
3544 .Po for example, using
3545 .Xr ssh 1
3546 .Pc .
3547 By default, a full stream is generated.
3548 .Bl -tag -width "-D"
3549 .It Fl D, -dedup
3550 Generate a deduplicated stream.
3551 Blocks which would have been sent multiple times in the send stream will only be
3552 sent once.
3553 The receiving system must also support this feature to receive a deduplicated
3554 stream.
3555 This flag can be used regardless of the dataset's
3556 .Sy dedup
3557 property, but performance will be much better if the filesystem uses a
3558 dedup-capable checksum
3559 .Po for example,
3560 .Sy sha256
3561 .Pc .
3562 .It Fl I Ar snapshot
3563 Generate a stream package that sends all intermediary snapshots from the first
3564 snapshot to the second snapshot.
3565 For example,
3566 .Fl I Em @a Em fs@d
3567 is similar to
3568 .Fl i Em @a Em fs@b Ns \&; Fl i Em @b Em fs@c Ns \&; Fl i Em @c Em fs@d .
3569 The incremental source may be specified as with the
3570 .Fl i
3571 option.
3572 .It Fl L, -large-block
3573 Generate a stream which may contain blocks larger than 128KB.
3574 This flag has no effect if the
3575 .Sy large_blocks
3576 pool feature is disabled, or if the
3577 .Sy recordsize
3578 property of this filesystem has never been set above 128KB.
3579 The receiving system must have the
3580 .Sy large_blocks
3581 pool feature enabled as well.
3582 See
3583 .Xr zpool-features 5
3584 for details on ZFS feature flags and the
3585 .Sy large_blocks
3586 feature.
3587 .It Fl P, -parsable
3588 Print machine-parsable verbose information about the stream package generated.
3589 .It Fl R, -replicate
3590 Generate a replication stream package, which will replicate the specified
3591 file system, and all descendent file systems, up to the named snapshot.
3592 When received, all properties, snapshots, descendent file systems, and clones
3593 are preserved.
3594 .Pp
3595 If the
3596 .Fl i
3597 or
3598 .Fl I
3599 flags are used in conjunction with the
3600 .Fl R
3601 flag, an incremental replication stream is generated.
3602 The current values of properties, and current snapshot and file system names are
3603 set when the stream is received.
3604 If the
3605 .Fl F
3606 flag is specified when this stream is received, snapshots and file systems that
3607 do not exist on the sending side are destroyed. If the
3608 .Fl R
3609 flag is used to send encrypted datasets, then
3610 .Fl w
3611 must also be specified.
3612 .It Fl e, -embed
3613 Generate a more compact stream by using
3614 .Sy WRITE_EMBEDDED
3615 records for blocks which are stored more compactly on disk by the
3616 .Sy embedded_data
3617 pool feature.
3618 This flag has no effect if the
3619 .Sy embedded_data
3620 feature is disabled.
3621 The receiving system must have the
3622 .Sy embedded_data
3623 feature enabled.
3624 If the
3625 .Sy lz4_compress
3626 feature is active on the sending system, then the receiving system must have
3627 that feature enabled as well. Datasets that are sent with this flag may not be
3628 received as an encrypted dataset, since encrypted datasets cannot use the
3629 .Sy embedded_data
3630 feature.
3631 See
3632 .Xr zpool-features 5
3633 for details on ZFS feature flags and the
3634 .Sy embedded_data
3635 feature.
3636 .It Fl b, -backup
3637 Sends only received property values whether or not they are overridden by local
3638 settings, but only if the dataset has ever been received. Use this option when
3639 you want
3640 .Nm zfs Cm receive
3641 to restore received properties backed up on the sent dataset and to avoid
3642 sending local settings that may have nothing to do with the source dataset,
3643 but only with how the data is backed up.
3644 .It Fl c, -compressed
3645 Generate a more compact stream by using compressed WRITE records for blocks
3646 which are compressed on disk and in memory
3647 .Po see the
3648 .Sy compression
3649 property for details
3650 .Pc .
3651 If the
3652 .Sy lz4_compress
3653 feature is active on the sending system, then the receiving system must have
3654 that feature enabled as well.
3655 If the
3656 .Sy large_blocks
3657 feature is enabled on the sending system but the
3658 .Fl L
3659 option is not supplied in conjunction with
3660 .Fl c ,
3661 then the data will be decompressed before sending so it can be split into
3662 smaller block sizes.
3663 .It Fl w, -raw
3664 For encrypted datasets, send data exactly as it exists on disk. This allows
3665 backups to be taken even if encryption keys are not currently loaded. The
3666 backup may then be received on an untrusted machine since that machine will
3667 not have the encryption keys to read the protected data or alter it without
3668 being detected. Upon being received, the dataset will have the same encryption
3669 keys as it did on the send side, although the
3670 .Sy keylocation
3671 property will be defaulted to
3672 .Sy prompt
3673 if not otherwise provided. For unencrypted datasets, this flag will be
3674 equivalent to
3675 .Fl Lec .
3676 Note that if you do not use this flag for sending encrypted datasets, data will
3677 be sent unencrypted and may be re-encrypted with a different encryption key on
3678 the receiving system, which will disable the ability to do a raw send to that
3679 system for incrementals.
3680 .It Fl h, -holds
3681 Generate a stream package that includes any snapshot holds (created with the
3682 .Sy zfs hold
3683 command), and indicating to
3684 .Sy zfs receive
3685 that the holds be applied to the dataset on the receiving system.
3686 .It Fl i Ar snapshot
3687 Generate an incremental stream from the first
3688 .Ar snapshot
3689 .Pq the incremental source
3690 to the second
3691 .Ar snapshot
3692 .Pq the incremental target .
3693 The incremental source can be specified as the last component of the snapshot
3694 name
3695 .Po the
3696 .Sy @
3697 character and following
3698 .Pc
3699 and it is assumed to be from the same file system as the incremental target.
3700 .Pp
3701 If the destination is a clone, the source may be the origin snapshot, which must
3702 be fully specified
3703 .Po for example,
3704 .Em pool/fs@origin ,
3705 not just
3706 .Em @origin
3707 .Pc .
3708 .It Fl n, -dryrun
3709 Do a dry-run
3710 .Pq Qq No-op
3711 send.
3712 Do not generate any actual send data.
3713 This is useful in conjunction with the
3714 .Fl v
3715 or
3716 .Fl P
3717 flags to determine what data will be sent.
3718 In this case, the verbose output will be written to standard output
3719 .Po contrast with a non-dry-run, where the stream is written to standard output
3720 and the verbose output goes to standard error
3721 .Pc .
3722 .It Fl p, -props
3723 Include the dataset's properties in the stream.
3724 This flag is implicit when
3725 .Fl R
3726 is specified.
3727 The receiving system must also support this feature. Sends of encrypted datasets
3728 must use
3729 .Fl w
3730 when using this flag.
3731 .It Fl v, -verbose
3732 Print verbose information about the stream package generated.
3733 This information includes a per-second report of how much data has been sent.
3734 .Pp
3735 The format of the stream is committed.
3736 You will be able to receive your streams on future versions of ZFS.
3737 .El
3738 .It Xo
3739 .Nm
3740 .Cm send
3741 .Op Fl DLPRcenpvw
3742 .Op Fl i Ar snapshot Ns | Ns Ar bookmark
3743 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
3744 .Xc
3745 Generate a send stream, which may be of a filesystem, and may be incremental
3746 from a bookmark.
3747 If the destination is a filesystem or volume, the pool must be read-only, or the
3748 filesystem must not be mounted.
3749 When the stream generated from a filesystem or volume is received, the default
3750 snapshot name will be
3751 .Qq --head-- .
3752 .Bl -tag -width "-L"
3753 .It Fl L, -large-block
3754 Generate a stream which may contain blocks larger than 128KB.
3755 This flag has no effect if the
3756 .Sy large_blocks
3757 pool feature is disabled, or if the
3758 .Sy recordsize
3759 property of this filesystem has never been set above 128KB.
3760 The receiving system must have the
3761 .Sy large_blocks
3762 pool feature enabled as well.
3763 See
3764 .Xr zpool-features 5
3765 for details on ZFS feature flags and the
3766 .Sy large_blocks
3767 feature.
3768 .It Fl P, -parsable
3769 Print machine-parsable verbose information about the stream package generated.
3770 .It Fl c, -compressed
3771 Generate a more compact stream by using compressed WRITE records for blocks
3772 which are compressed on disk and in memory
3773 .Po see the
3774 .Sy compression
3775 property for details
3776 .Pc .
3777 If the
3778 .Sy lz4_compress
3779 feature is active on the sending system, then the receiving system must have
3780 that feature enabled as well.
3781 If the
3782 .Sy large_blocks
3783 feature is enabled on the sending system but the
3784 .Fl L
3785 option is not supplied in conjunction with
3786 .Fl c ,
3787 then the data will be decompressed before sending so it can be split into
3788 smaller block sizes.
3789 .It Fl w, -raw
3790 For encrypted datasets, send data exactly as it exists on disk. This allows
3791 backups to be taken even if encryption keys are not currently loaded. The
3792 backup may then be received on an untrusted machine since that machine will
3793 not have the encryption keys to read the protected data or alter it without
3794 being detected. Upon being received, the dataset will have the same encryption
3795 keys as it did on the send side, although the
3796 .Sy keylocation
3797 property will be defaulted to
3798 .Sy prompt
3799 if not otherwise provided. For unencrypted datasets, this flag will be
3800 equivalent to
3801 .Fl Lec .
3802 Note that if you do not use this flag for sending encrypted datasets, data will
3803 be sent unencrypted and may be re-encrypted with a different encryption key on
3804 the receiving system, which will disable the ability to do a raw send to that
3805 system for incrementals.
3806 .It Fl e, -embed
3807 Generate a more compact stream by using
3808 .Sy WRITE_EMBEDDED
3809 records for blocks which are stored more compactly on disk by the
3810 .Sy embedded_data
3811 pool feature.
3812 This flag has no effect if the
3813 .Sy embedded_data
3814 feature is disabled.
3815 The receiving system must have the
3816 .Sy embedded_data
3817 feature enabled.
3818 If the
3819 .Sy lz4_compress
3820 feature is active on the sending system, then the receiving system must have
3821 that feature enabled as well. Datasets that are sent with this flag may not be
3822 received as an encrypted dataset, since encrypted datasets cannot use the
3823 .Sy embedded_data
3824 feature.
3825 See
3826 .Xr zpool-features 5
3827 for details on ZFS feature flags and the
3828 .Sy embedded_data
3829 feature.
3830 .It Fl i Ar snapshot Ns | Ns Ar bookmark
3831 Generate an incremental send stream.
3832 The incremental source must be an earlier snapshot in the destination's history.
3833 It will commonly be an earlier snapshot in the destination's file system, in
3834 which case it can be specified as the last component of the name
3835 .Po the
3836 .Sy #
3837 or
3838 .Sy @
3839 character and following
3840 .Pc .
3841 .Pp
3842 If the incremental target is a clone, the incremental source can be the origin
3843 snapshot, or an earlier snapshot in the origin's filesystem, or the origin's
3844 origin, etc.
3845 .It Fl n, -dryrun
3846 Do a dry-run
3847 .Pq Qq No-op
3848 send.
3849 Do not generate any actual send data.
3850 This is useful in conjunction with the
3851 .Fl v
3852 or
3853 .Fl P
3854 flags to determine what data will be sent.
3855 In this case, the verbose output will be written to standard output
3856 .Po contrast with a non-dry-run, where the stream is written to standard output
3857 and the verbose output goes to standard error
3858 .Pc .
3859 .It Fl v, -verbose
3860 Print verbose information about the stream package generated.
3861 This information includes a per-second report of how much data has been sent.
3862 .El
3863 .It Xo
3864 .Nm
3865 .Cm send
3866 .Fl -redact Ar redaction_bookmark
3867 .Op Fl DLPcenpv
3868 .br
3869 .Op Fl i Ar snapshot Ns | Ns Ar bookmark
3870 .Ar snapshot
3871 .Xc
3872 Generate a redacted send stream.
3873 This send stream contains all blocks from the snapshot being sent that aren't
3874 included in the redaction list contained in the bookmark specified by the
3875 .Fl -redact
3876 (or
3877 .Fl -d
3878 ) flag.
3879 The resulting send stream is said to be redacted with respect to the snapshots
3880 the bookmark specified by the
3881 .Fl -redact No flag was created with.
3882 The bookmark must have been created by running
3883 .Sy zfs redact
3884 on the snapshot being sent.
3885 .sp
3886 This feature can be used to allow clones of a filesystem to be made available on
3887 a remote system, in the case where their parent need not (or needs to not) be
3888 usable.
3889 For example, if a filesystem contains sensitive data, and it has clones where
3890 that sensitive data has been secured or replaced with dummy data, redacted sends
3891 can be used to replicate the secured data without replicating the original
3892 sensitive data, while still sharing all possible blocks.
3893 A snapshot that has been redacted with respect to a set of snapshots will
3894 contain all blocks referenced by at least one snapshot in the set, but will
3895 contain none of the blocks referenced by none of the snapshots in the set.
3896 In other words, if all snapshots in the set have modified a given block in the
3897 parent, that block will not be sent; but if one or more snapshots have not
3898 modified a block in the parent, they will still reference the parent's block, so
3899 that block will be sent.
3900 Note that only user data will be redacted.
3901 .sp
3902 When the redacted send stream is received, we will generate a redacted
3903 snapshot.
3904 Due to the nature of redaction, a redacted dataset can only be used in the
3905 following ways:
3906 .sp
3907 1. To receive, as a clone, an incremental send from the original snapshot to one
3908 of the snapshots it was redacted with respect to.
3909 In this case, the stream will produce a valid dataset when received because all
3910 blocks that were redacted in the parent are guaranteed to be present in the
3911 child's send stream.
3912 This use case will produce a normal snapshot, which can be used just like other
3913 snapshots.
3914 .sp
3915 2. To receive an incremental send from the original snapshot to something
3916 redacted with respect to a subset of the set of snapshots the initial snapshot
3917 was redacted with respect to.
3918 In this case, each block that was redacted in the original is still redacted
3919 (redacting with respect to additional snapshots causes less data to be redacted
3920 (because the snapshots define what is permitted, and everything else is
3921 redacted)).
3922 This use case will produce a new redacted snapshot.
3923 .sp
3924 3. To receive an incremental send from a redaction bookmark of the original
3925 snapshot that was created when redacting with respect to a subset of the set of
3926 snapshots the initial snapshot was created with respect to
3927 anything else.
3928 A send stream from such a redaction bookmark will contain all of the blocks
3929 necessary to fill in any redacted data, should it be needed, because the sending
3930 system is aware of what blocks were originally redacted.
3931 This will either produce a normal snapshot or a redacted one, depending on
3932 whether the new send stream is redacted.
3933 .sp
3934 4. To receive an incremental send from a redacted version of the initial
3935 snapshot that is redacted with respect to a subect of the set of snapshots the
3936 initial snapshot was created with respect to.
3937 A send stream from a compatible redacted dataset will contain all of the blocks
3938 necessary to fill in any redacted data.
3939 This will either produce a normal snapshot or a redacted one, depending on
3940 whether the new send stream is redacted.
3941 .sp
3942 5. To receive a full send as a clone of the redacted snapshot.
3943 Since the stream is a full send, it definitionally contains all the data needed
3944 to create a new dataset.
3945 This use case will either produce a normal snapshot or a redacted one, depending
3946 on whether the full send stream was redacted.
3947 .sp
3948 These restrictions are detected and enforced by \fBzfs receive\fR; a
3949 redacted send stream will contain the list of snapshots that the stream is
3950 redacted with respsect to.
3951 These are stored with the redacted snapshot, and are used to detect and
3952 correctly handle the cases above.  Note that for technical reasons, raw sends
3953 and redacted sends cannot be combined at this time.
3954 .It Xo
3955 .Nm
3956 .Cm send
3957 .Op Fl Penv
3958 .Fl t
3959 .Ar receive_resume_token
3960 .Xc
3961 Creates a send stream which resumes an interrupted receive.
3962 The
3963 .Ar receive_resume_token
3964 is the value of this property on the filesystem or volume that was being
3965 received into.
3966 See the documentation for
3967 .Sy zfs receive -s
3968 for more details.
3969 .It Xo
3970 .Nm
3971 .Cm receive
3972 .Op Fl Fhnsuv
3973 .Op Fl o Sy origin Ns = Ns Ar snapshot
3974 .Op Fl o Ar property Ns = Ns Ar value
3975 .Op Fl x Ar property
3976 .Ar filesystem Ns | Ns Ar volume Ns | Ns Ar snapshot
3977 .Xc
3978 .It Xo
3979 .Nm
3980 .Cm receive
3981 .Op Fl Fhnsuv
3982 .Op Fl d Ns | Ns Fl e
3983 .Op Fl o Sy origin Ns = Ns Ar snapshot
3984 .Op Fl o Ar property Ns = Ns Ar value
3985 .Op Fl x Ar property
3986 .Ar filesystem
3987 .Xc
3988 Creates a snapshot whose contents are as specified in the stream provided on
3989 standard input.
3990 If a full stream is received, then a new file system is created as well.
3991 Streams are created using the
3992 .Nm zfs Cm send
3993 subcommand, which by default creates a full stream.
3994 .Nm zfs Cm recv
3995 can be used as an alias for
3996 .Nm zfs Cm receive.
3997 .Pp
3998 If an incremental stream is received, then the destination file system must
3999 already exist, and its most recent snapshot must match the incremental stream's
4000 source.
4001 For
4002 .Sy zvols ,
4003 the destination device link is destroyed and recreated, which means the
4004 .Sy zvol
4005 cannot be accessed during the
4006 .Cm receive
4007 operation.
4008 .Pp
4009 When a snapshot replication package stream that is generated by using the
4010 .Nm zfs Cm send Fl R
4011 command is received, any snapshots that do not exist on the sending location are
4012 destroyed by using the
4013 .Nm zfs Cm destroy Fl d
4014 command.
4015 .Pp
4016 If
4017 .Fl o Em property Ns = Ns Ar value
4018 or
4019 .Fl x Em property
4020 is specified, it applies to the effective value of the property throughout
4021 the entire subtree of replicated datasets. Effective property values will be
4022 set (
4023 .Fl o
4024 ) or inherited (
4025 .Fl x
4026 ) on the topmost in the replicated subtree. In descendant datasets, if the
4027 property is set by the send stream, it will be overridden by forcing the
4028 property to be inherited from the top‐most file system. Received properties
4029 are retained in spite of being overridden and may be restored with
4030 .Nm zfs Cm inherit Fl S .
4031 Specifying
4032 .Fl o Sy origin Ns = Ns Em snapshot
4033 is a special case because, even if
4034 .Sy origin
4035 is a read-only property and cannot be set, it's allowed to receive the send
4036 stream as a clone of the given snapshot.
4037 .Pp
4038 Raw encrypted send streams (created with
4039 .Nm zfs Cm send Fl w
4040 ) may only be received as is, and cannot be re-encrypted, decrypted, or
4041 recompressed by the receive process. Unencrypted streams can be received as
4042 encrypted datasets, either through inheritance or by specifying encryption
4043 parameters with the
4044 .Fl o
4045 options. Note that the
4046 .Sy keylocation
4047 property cannot be overridden to
4048 .Sy prompt
4049 during a receive. This is because the receive process itself is already using
4050 stdin for the send stream. Instead, the property can be overridden after the
4051 receive completes.
4052 .Pp
4053 The added security provided by raw sends adds some restrictions to the send
4054 and receive process. ZFS will not allow a mix of raw receives and non-raw
4055 receives. Specifically, any raw incremental receives that are attempted after
4056 a non-raw receive will fail. Non-raw receives do not have this restriction and,
4057 therefore, are always possible. Because of this, it is best practice to always
4058 use either raw sends for their security benefits or non-raw sends for their
4059 flexibility when working with encrypted datasets, but not a combination.
4060 .Pp
4061 The reason for this restriction stems from the inherent restrictions of the
4062 AEAD ciphers that ZFS uses to encrypt data. When using ZFS native encryption,
4063 each block of data is encrypted against a randomly generated number known as
4064 the "initialization vector" (IV), which is stored in the filesystem metadata.
4065 This number is required by the encryption algorithms whenever the data is to
4066 be decrypted. Together, all of the IVs provided for all of the blocks in a
4067 given snapshot are collectively called an "IV set". When ZFS performs a raw
4068 send, the IV set is transferred from the source to the destination in the send
4069 stream. When ZFS performs a non-raw send, the data is decrypted by the source
4070 system and re-encrypted by the destination system, creating a snapshot with
4071 effectively the same data, but a different IV set. In order for decryption to
4072 work after a raw send, ZFS must ensure that the IV set used on both the source
4073 and destination side match. When an incremental raw receive is performed on
4074 top of an existing snapshot, ZFS will check to confirm that the "from"
4075 snapshot on both the source and destination were using the same IV set,
4076 ensuring the new IV set is consistent.
4077 .Pp
4078 The name of the snapshot
4079 .Pq and file system, if a full stream is received
4080 that this subcommand creates depends on the argument type and the use of the
4081 .Fl d
4082 or
4083 .Fl e
4084 options.
4085 .Pp
4086 If the argument is a snapshot name, the specified
4087 .Ar snapshot
4088 is created.
4089 If the argument is a file system or volume name, a snapshot with the same name
4090 as the sent snapshot is created within the specified
4091 .Ar filesystem
4092 or
4093 .Ar volume .
4094 If neither of the
4095 .Fl d
4096 or
4097 .Fl e
4098 options are specified, the provided target snapshot name is used exactly as
4099 provided.
4100 .Pp
4101 The
4102 .Fl d
4103 and
4104 .Fl e
4105 options cause the file system name of the target snapshot to be determined by
4106 appending a portion of the sent snapshot's name to the specified target
4107 .Ar filesystem .
4108 If the
4109 .Fl d
4110 option is specified, all but the first element of the sent snapshot's file
4111 system path
4112 .Pq usually the pool name
4113 is used and any required intermediate file systems within the specified one are
4114 created.
4115 If the
4116 .Fl e
4117 option is specified, then only the last element of the sent snapshot's file
4118 system name
4119 .Pq i.e. the name of the source file system itself
4120 is used as the target file system name.
4121 .Bl -tag -width "-F"
4122 .It Fl F
4123 Force a rollback of the file system to the most recent snapshot before
4124 performing the receive operation.
4125 If receiving an incremental replication stream
4126 .Po for example, one generated by
4127 .Nm zfs Cm send Fl R Op Fl i Ns | Ns Fl I
4128 .Pc ,
4129 destroy snapshots and file systems that do not exist on the sending side.
4130 .It Fl d
4131 Discard the first element of the sent snapshot's file system name, using the
4132 remaining elements to determine the name of the target file system for the new
4133 snapshot as described in the paragraph above.
4134 .It Fl e
4135 Discard all but the last element of the sent snapshot's file system name, using
4136 that element to determine the name of the target file system for the new
4137 snapshot as described in the paragraph above.
4138 .It Fl h
4139 Skip the receive of holds.  There is no effect if holds are not sent.
4140 .It Fl n
4141 Do not actually receive the stream.
4142 This can be useful in conjunction with the
4143 .Fl v
4144 option to verify the name the receive operation would use.
4145 .It Fl o Sy origin Ns = Ns Ar snapshot
4146 Forces the stream to be received as a clone of the given snapshot.
4147 If the stream is a full send stream, this will create the filesystem
4148 described by the stream as a clone of the specified snapshot.
4149 Which snapshot was specified will not affect the success or failure of the
4150 receive, as long as the snapshot does exist.
4151 If the stream is an incremental send stream, all the normal verification will be
4152 performed.
4153 .It Fl o Em property Ns = Ns Ar value
4154 Sets the specified property as if the command
4155 .Nm zfs Cm set Em property Ns = Ns Ar value
4156 was invoked immediately before the receive. When receiving a stream from
4157 .Nm zfs Cm send Fl R ,
4158 causes the property to be inherited by all descendant datasets, as through
4159 .Nm zfs Cm inherit Em property
4160 was run on any descendant datasets that have this property set on the
4161 sending system.
4162 .Pp
4163 Any editable property can be set at receive time. Set-once properties bound
4164 to the received data, such as
4165 .Sy normalization
4166 and
4167 .Sy casesensitivity ,
4168 cannot be set at receive time even when the datasets are newly created by
4169 .Nm zfs Cm receive .
4170 Additionally both settable properties
4171 .Sy version
4172 and
4173 .Sy volsize
4174 cannot be set at receive time.
4175 .Pp
4176 The
4177 .Fl o
4178 option may be specified multiple times, for different properties. An error
4179 results if the same property is specified in multiple
4180 .Fl o
4181 or
4182 .Fl x
4183 options.
4184 .Pp
4185 The
4186 .Fl o
4187 option may also be used to override encryption properties upon initial
4188 receive. This allows unencrypted streams to be received as encrypted datasets.
4189 To cause the received dataset (or root dataset of a recursive stream) to be
4190 received as an encryption root, specify encryption properties in the same
4191 manner as is required for
4192 .Nm
4193 .Cm create .
4194 For instance:
4195 .Bd -literal
4196 # zfs send tank/test@snap1 | zfs recv -o encryption=on -o keyformat=passphrase -o keylocation=file:///path/to/keyfile
4197 .Ed
4198 .Pp
4199 Note that
4200 .Op Fl o Ar keylocation Ns = Ns Ar prompt
4201 may not be specified here, since stdin is already being utilized for the send
4202 stream. Once the receive has completed, you can use
4203 .Nm
4204 .Cm set
4205 to change this setting after the fact. Similarly, you can receive a dataset as
4206 an encrypted child by specifying
4207 .Op Fl x Ar encryption
4208 to force the property to be inherited. Overriding encryption properties (except
4209 for
4210 .Sy keylocation Ns )
4211 is not possible with raw send streams.
4212 .It Fl s
4213 If the receive is interrupted, save the partially received state, rather
4214 than deleting it.
4215 Interruption may be due to premature termination of the stream
4216 .Po e.g. due to network failure or failure of the remote system
4217 if the stream is being read over a network connection
4218 .Pc ,
4219 a checksum error in the stream, termination of the
4220 .Nm zfs Cm receive
4221 process, or unclean shutdown of the system.
4222 .Pp
4223 The receive can be resumed with a stream generated by
4224 .Nm zfs Cm send Fl t Ar token ,
4225 where the
4226 .Ar token
4227 is the value of the
4228 .Sy receive_resume_token
4229 property of the filesystem or volume which is received into.
4230 .Pp
4231 To use this flag, the storage pool must have the
4232 .Sy extensible_dataset
4233 feature enabled.
4234 See
4235 .Xr zpool-features 5
4236 for details on ZFS feature flags.
4237 .It Fl u
4238 File system that is associated with the received stream is not mounted.
4239 .It Fl v
4240 Print verbose information about the stream and the time required to perform the
4241 receive operation.
4242 .It Fl x Em property
4243 Ensures that the effective value of the specified property after the
4244 receive is unaffected by the value of that property in the send stream (if any),
4245 as if the property had been excluded from the send stream.
4246 .Pp
4247 If the specified property is not present in the send stream, this option does
4248 nothing.
4249 .Pp
4250 If a received property needs to be overridden, the effective value will be
4251 set or inherited, depending on whether the property is inheritable or not.
4252 .Pp
4253 In the case of an incremental update,
4254 .Fl x
4255 leaves any existing local setting or explicit inheritance unchanged.
4256 .Pp
4257 All
4258 .Fl o
4259 restrictions (e.g. set-once) apply equally to
4260 .Fl x .
4261 .El
4262 .It Xo
4263 .Nm
4264 .Cm receive
4265 .Fl A
4266 .Ar filesystem Ns | Ns Ar volume
4267 .Xc
4268 Abort an interrupted
4269 .Nm zfs Cm receive Fl s ,
4270 deleting its saved partially received state.
4271 .It Xo
4272 .Nm
4273 .Cm redact
4274 .Ar snapshot redaction_bookmark
4275 .Op Ar redaction_snapshot Ns ...
4276 .Xc
4277 Generate a new redaction bookmark.
4278 In addition to the typical bookmark information, a redaction bookmark contains
4279 the list of redacted blocks and the list of redaction snapshots specified.
4280 The redacted blocks are blocks in the snapshot which are not referenced by any
4281 of the redaction snapshots.
4282 These blocks are found by iterating over the metadata in each redaction snapshot
4283 to determine what has been changed since the target snapshot.
4284 Redaction is designed to support redacted zfs sends; see the entry for
4285 .Sy zfs send
4286 for more information on the purpose of this operation.
4287 If a redact operation fails partway through (due to an error or a system
4288 failure), the redaction can be resumed by rerunning the same command.
4289 .It Xo
4290 .Nm
4291 .Cm allow
4292 .Ar filesystem Ns | Ns Ar volume
4293 .Xc
4294 Displays permissions that have been delegated on the specified filesystem or
4295 volume.
4296 See the other forms of
4297 .Nm zfs Cm allow
4298 for more information.
4299 .Pp
4300 Delegations are supported under Linux with the exception of
4301 .Sy mount ,
4302 .Sy unmount ,
4303 .Sy mountpoint ,
4304 .Sy canmount ,
4305 .Sy rename ,
4306 and
4307 .Sy share .
4308 These permissions cannot be delegated because the Linux
4309 .Xr mount 8
4310 command restricts modifications of the global namespace to the root user.
4311 .It Xo
4312 .Nm
4313 .Cm allow
4314 .Op Fl dglu
4315 .Ar user Ns | Ns Ar group Ns Oo , Ns Ar user Ns | Ns Ar group Oc Ns ...
4316 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4317 .Ar setname Oc Ns ...
4318 .Ar filesystem Ns | Ns Ar volume
4319 .Xc
4320 .It Xo
4321 .Nm
4322 .Cm allow
4323 .Op Fl dl
4324 .Fl e Ns | Ns Sy everyone
4325 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4326 .Ar setname Oc Ns ...
4327 .Ar filesystem Ns | Ns Ar volume
4328 .Xc
4329 Delegates ZFS administration permission for the file systems to non-privileged
4330 users.
4331 .Bl -tag -width "-d"
4332 .It Fl d
4333 Allow only for the descendent file systems.
4334 .It Fl e Ns | Ns Sy everyone
4335 Specifies that the permissions be delegated to everyone.
4336 .It Fl g Ar group Ns Oo , Ns Ar group Oc Ns ...
4337 Explicitly specify that permissions are delegated to the group.
4338 .It Fl l
4339 Allow
4340 .Qq locally
4341 only for the specified file system.
4342 .It Fl u Ar user Ns Oo , Ns Ar user Oc Ns ...
4343 Explicitly specify that permissions are delegated to the user.
4344 .It Ar user Ns | Ns Ar group Ns Oo , Ns Ar user Ns | Ns Ar group Oc Ns ...
4345 Specifies to whom the permissions are delegated.
4346 Multiple entities can be specified as a comma-separated list.
4347 If neither of the
4348 .Fl gu
4349 options are specified, then the argument is interpreted preferentially as the
4350 keyword
4351 .Sy everyone ,
4352 then as a user name, and lastly as a group name.
4353 To specify a user or group named
4354 .Qq everyone ,
4355 use the
4356 .Fl g
4357 or
4358 .Fl u
4359 options.
4360 To specify a group with the same name as a user, use the
4361 .Fl g
4362 options.
4363 .It Xo
4364 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4365 .Ar setname Oc Ns ...
4366 .Xc
4367 The permissions to delegate.
4368 Multiple permissions may be specified as a comma-separated list.
4369 Permission names are the same as ZFS subcommand and property names.
4370 See the property list below.
4371 Property set names, which begin with
4372 .Sy @ ,
4373 may be specified.
4374 See the
4375 .Fl s
4376 form below for details.
4377 .El
4378 .Pp
4379 If neither of the
4380 .Fl dl
4381 options are specified, or both are, then the permissions are allowed for the
4382 file system or volume, and all of its descendents.
4383 .Pp
4384 Permissions are generally the ability to use a ZFS subcommand or change a ZFS
4385 property.
4386 The following permissions are available:
4387 .Bd -literal
4388 NAME             TYPE           NOTES
4389 allow            subcommand     Must also have the permission that is
4390                                 being allowed
4391 clone            subcommand     Must also have the 'create' ability and
4392                                 'mount' ability in the origin file system
4393 create           subcommand     Must also have the 'mount' ability.
4394                                 Must also have the 'refreservation' ability to
4395                                 create a non-sparse volume.
4396 destroy          subcommand     Must also have the 'mount' ability
4397 diff             subcommand     Allows lookup of paths within a dataset
4398                                 given an object number, and the ability
4399                                 to create snapshots necessary to
4400                                 'zfs diff'.
4401 load-key         subcommand     Allows loading and unloading of encryption key
4402                                 (see 'zfs load-key' and 'zfs unload-key').
4403 change-key       subcommand     Allows changing an encryption key via
4404                                 'zfs change-key'.
4405 mount            subcommand     Allows mount/umount of ZFS datasets
4406 promote          subcommand     Must also have the 'mount' and 'promote'
4407                                 ability in the origin file system
4408 receive          subcommand     Must also have the 'mount' and 'create'
4409                                 ability
4410 rename           subcommand     Must also have the 'mount' and 'create'
4411                                 ability in the new parent
4412 rollback         subcommand     Must also have the 'mount' ability
4413 send             subcommand
4414 share            subcommand     Allows sharing file systems over NFS
4415                                 or SMB protocols
4416 snapshot         subcommand     Must also have the 'mount' ability
4417
4418 groupquota       other          Allows accessing any groupquota@...
4419                                 property
4420 groupused        other          Allows reading any groupused@... property
4421 userprop         other          Allows changing any user property
4422 userquota        other          Allows accessing any userquota@...
4423                                 property
4424 userused         other          Allows reading any userused@... property
4425 projectobjquota  other          Allows accessing any projectobjquota@...
4426                                 property
4427 projectquota     other          Allows accessing any projectquota@... property
4428 projectobjused   other          Allows reading any projectobjused@... property
4429 projectused      other          Allows reading any projectused@... property
4430
4431 aclinherit       property
4432 acltype          property
4433 atime            property
4434 canmount         property
4435 casesensitivity  property
4436 checksum         property
4437 compression      property
4438 copies           property
4439 devices          property
4440 exec             property
4441 filesystem_limit property
4442 mountpoint       property
4443 nbmand           property
4444 normalization    property
4445 primarycache     property
4446 quota            property
4447 readonly         property
4448 recordsize       property
4449 refquota         property
4450 refreservation   property
4451 reservation      property
4452 secondarycache   property
4453 setuid           property
4454 sharenfs         property
4455 sharesmb         property
4456 snapdir          property
4457 snapshot_limit   property
4458 utf8only         property
4459 version          property
4460 volblocksize     property
4461 volsize          property
4462 vscan            property
4463 xattr            property
4464 zoned            property
4465 .Ed
4466 .It Xo
4467 .Nm
4468 .Cm allow
4469 .Fl c
4470 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4471 .Ar setname Oc Ns ...
4472 .Ar filesystem Ns | Ns Ar volume
4473 .Xc
4474 Sets
4475 .Qq create time
4476 permissions.
4477 These permissions are granted
4478 .Pq locally
4479 to the creator of any newly-created descendent file system.
4480 .It Xo
4481 .Nm
4482 .Cm allow
4483 .Fl s No @ Ns Ar setname
4484 .Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4485 .Ar setname Oc Ns ...
4486 .Ar filesystem Ns | Ns Ar volume
4487 .Xc
4488 Defines or adds permissions to a permission set.
4489 The set can be used by other
4490 .Nm zfs Cm allow
4491 commands for the specified file system and its descendents.
4492 Sets are evaluated dynamically, so changes to a set are immediately reflected.
4493 Permission sets follow the same naming restrictions as ZFS file systems, but the
4494 name must begin with
4495 .Sy @ ,
4496 and can be no more than 64 characters long.
4497 .It Xo
4498 .Nm
4499 .Cm unallow
4500 .Op Fl dglru
4501 .Ar user Ns | Ns Ar group Ns Oo , Ns Ar user Ns | Ns Ar group Oc Ns ...
4502 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4503 .Ar setname Oc Ns ... Oc
4504 .Ar filesystem Ns | Ns Ar volume
4505 .Xc
4506 .It Xo
4507 .Nm
4508 .Cm unallow
4509 .Op Fl dlr
4510 .Fl e Ns | Ns Sy everyone
4511 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4512 .Ar setname Oc Ns ... Oc
4513 .Ar filesystem Ns | Ns Ar volume
4514 .Xc
4515 .It Xo
4516 .Nm
4517 .Cm unallow
4518 .Op Fl r
4519 .Fl c
4520 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4521 .Ar setname Oc Ns ... Oc
4522 .Ar filesystem Ns | Ns Ar volume
4523 .Xc
4524 Removes permissions that were granted with the
4525 .Nm zfs Cm allow
4526 command.
4527 No permissions are explicitly denied, so other permissions granted are still in
4528 effect.
4529 For example, if the permission is granted by an ancestor.
4530 If no permissions are specified, then all permissions for the specified
4531 .Ar user ,
4532 .Ar group ,
4533 or
4534 .Sy everyone
4535 are removed.
4536 Specifying
4537 .Sy everyone
4538 .Po or using the
4539 .Fl e
4540 option
4541 .Pc
4542 only removes the permissions that were granted to everyone, not all permissions
4543 for every user and group.
4544 See the
4545 .Nm zfs Cm allow
4546 command for a description of the
4547 .Fl ldugec
4548 options.
4549 .Bl -tag -width "-r"
4550 .It Fl r
4551 Recursively remove the permissions from this file system and all descendents.
4552 .El
4553 .It Xo
4554 .Nm
4555 .Cm unallow
4556 .Op Fl r
4557 .Fl s No @ Ns Ar setname
4558 .Oo Ar perm Ns | Ns @ Ns Ar setname Ns Oo , Ns Ar perm Ns | Ns @ Ns
4559 .Ar setname Oc Ns ... Oc
4560 .Ar filesystem Ns | Ns Ar volume
4561 .Xc
4562 Removes permissions from a permission set.
4563 If no permissions are specified, then all permissions are removed, thus removing
4564 the set entirely.
4565 .It Xo
4566 .Nm
4567 .Cm hold
4568 .Op Fl r
4569 .Ar tag Ar snapshot Ns ...
4570 .Xc
4571 Adds a single reference, named with the
4572 .Ar tag
4573 argument, to the specified snapshot or snapshots.
4574 Each snapshot has its own tag namespace, and tags must be unique within that
4575 space.
4576 .Pp
4577 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
4578 .Nm zfs Cm destroy
4579 command return
4580 .Er EBUSY .
4581 .Bl -tag -width "-r"
4582 .It Fl r
4583 Specifies that a hold with the given tag is applied recursively to the snapshots
4584 of all descendent file systems.
4585 .El
4586 .It Xo
4587 .Nm
4588 .Cm holds
4589 .Op Fl rH
4590 .Ar snapshot Ns ...
4591 .Xc
4592 Lists all existing user references for the given snapshot or snapshots.
4593 .Bl -tag -width "-r"
4594 .It Fl r
4595 Lists the holds that are set on the named descendent snapshots, in addition to
4596 listing the holds on the named snapshot.
4597 .It Fl H
4598 Do not print headers, use tab-delimited output.
4599 .El
4600 .It Xo
4601 .Nm
4602 .Cm release
4603 .Op Fl r
4604 .Ar tag Ar snapshot Ns ...
4605 .Xc
4606 Removes a single reference, named with the
4607 .Ar tag
4608 argument, from the specified snapshot or snapshots.
4609 The tag must already exist for each snapshot.
4610 If a hold exists on a snapshot, attempts to destroy that snapshot by using the
4611 .Nm zfs Cm destroy
4612 command return
4613 .Er EBUSY .
4614 .Bl -tag -width "-r"
4615 .It Fl r
4616 Recursively releases a hold with the given tag on the snapshots of all
4617 descendent file systems.
4618 .El
4619 .It Xo
4620 .Nm
4621 .Cm diff
4622 .Op Fl FHt
4623 .Ar snapshot Ar snapshot Ns | Ns Ar filesystem
4624 .Xc
4625 Display the difference between a snapshot of a given filesystem and another
4626 snapshot of that filesystem from a later time or the current contents of the
4627 filesystem.
4628 The first column is a character indicating the type of change, the other columns
4629 indicate pathname, new pathname
4630 .Pq in case of rename ,
4631 change in link count, and optionally file type and/or change time.
4632 The types of change are:
4633 .Bd -literal
4634 -       The path has been removed
4635 +       The path has been created
4636 M       The path has been modified
4637 R       The path has been renamed
4638 .Ed
4639 .Bl -tag -width "-F"
4640 .It Fl F
4641 Display an indication of the type of file, in a manner similar to the
4642 .Fl
4643 option of
4644 .Xr ls 1 .
4645 .Bd -literal
4646 B       Block device
4647 C       Character device
4648 /       Directory
4649 >       Door
4650 |       Named pipe
4651 @       Symbolic link
4652 P       Event port
4653 =       Socket
4654 F       Regular file
4655 .Ed
4656 .It Fl H
4657 Give more parsable tab-separated output, without header lines and without
4658 arrows.
4659 .It Fl t
4660 Display the path's inode change time as the first column of output.
4661 .El
4662 .It Xo
4663 .Nm
4664 .Cm program
4665 .Op Fl jn
4666 .Op Fl t Ar instruction-limit
4667 .Op Fl m Ar memory-limit
4668 .Ar pool script
4669 .Op Ar arg1 No ...
4670 .Xc
4671 Executes
4672 .Ar script
4673 as a ZFS channel program on
4674 .Ar pool .
4675 The ZFS channel
4676 program interface allows ZFS administrative operations to be run
4677 programmatically via a Lua script.
4678 The entire script is executed atomically, with no other administrative
4679 operations taking effect concurrently.
4680 A library of ZFS calls is made available to channel program scripts.
4681 Channel programs may only be run with root privileges.
4682 .sp
4683 For full documentation of the ZFS channel program interface, see the manual
4684 page for
4685 .Xr zfs-program 8 .
4686 .Bl -tag -width ""
4687 .It Fl j
4688 Display channel program output in JSON format. When this flag is specified and
4689 standard output is empty - channel program encountered an error. The details of
4690 such an error will be printed to standard error in plain text.
4691 .It Fl n
4692 Executes a read-only channel program, which runs faster.
4693 The program cannot change on-disk state by calling functions from
4694 the zfs.sync submodule.
4695 The program can be used to gather information such as properties and
4696 determining if changes would succeed (zfs.check.*).
4697 Without this flag, all pending changes must be synced to disk before
4698 a channel program can complete.
4699 .It Fl t Ar instruction-limit
4700 Limit the number of Lua instructions to execute.
4701 If a channel program executes more than the specified number of instructions,
4702 it will be stopped and an error will be returned.
4703 The default limit is 10 million instructions, and it can be set to a maximum of
4704 100 million instructions.
4705 .It Fl m Ar memory-limit
4706 Memory limit, in bytes.
4707 If a channel program attempts to allocate more memory than the given limit,
4708 it will be stopped and an error returned.
4709 The default memory limit is 10 MB, and can be set to a maximum of 100 MB.
4710 .sp
4711 All remaining argument strings are passed directly to the channel program as
4712 arguments.
4713 See
4714 .Xr zfs-program 8
4715 for more information.
4716 .El
4717 .It Xo
4718 .Nm
4719 .Cm load-key
4720 .Op Fl nr
4721 .Op Fl L Ar keylocation
4722 .Fl a | Ar filesystem
4723 .Xc
4724 Load the key for
4725 .Ar filesystem ,
4726 allowing it and all children that inherit the
4727 .Sy keylocation
4728 property to be accessed. The key will be expected in the format specified by the
4729 .Sy keyformat
4730 and location specified by the
4731 .Sy keylocation
4732 property. Note that if the
4733 .Sy keylocation
4734 is set to
4735 .Sy prompt
4736 the terminal will interactively wait for the key to be entered. Loading a key
4737 will not automatically mount the dataset. If that functionality is desired,
4738 .Nm zfs Cm mount Sy -l
4739 will ask for the key and mount the dataset. Once the key is loaded the
4740 .Sy keystatus
4741 property will become
4742 .Sy available .
4743 .Bl -tag -width "-r"
4744 .It Fl r
4745 Recursively loads the keys for the specified filesystem and all descendent
4746 encryption roots.
4747 .It Fl a
4748 Loads the keys for all encryption roots in all imported pools.
4749 .It Fl n
4750 Do a dry-run
4751 .Pq Qq No-op
4752 load-key. This will cause zfs to simply check that the
4753 provided key is correct. This command may be run even if the key is already
4754 loaded.
4755 .It Fl L Ar keylocation
4756 Use
4757 .Ar keylocation
4758 instead of the
4759 .Sy keylocation
4760 property. This will not change the value of the property on the dataset. Note
4761 that if used with either
4762 .Fl r
4763 or
4764 .Fl a ,
4765 .Ar keylocation
4766 may only be given as
4767 .Sy prompt .
4768 .El
4769 .It Xo
4770 .Nm
4771 .Cm unload-key
4772 .Op Fl r
4773 .Fl a | Ar filesystem
4774 .Xc
4775 Unloads a key from ZFS, removing the ability to access the dataset and all of
4776 its children that inherit the
4777 .Sy keylocation
4778 property. This requires that the dataset is not currently open or mounted. Once
4779 the key is unloaded the
4780 .Sy keystatus
4781 property will become
4782 .Sy unavailable .
4783 .Bl -tag -width "-r"
4784 .It Fl r
4785 Recursively unloads the keys for the specified filesystem and all descendent
4786 encryption roots.
4787 .It Fl a
4788 Unloads the keys for all encryption roots in all imported pools.
4789 .El
4790 .It Xo
4791 .Nm
4792 .Cm change-key
4793 .Op Fl l
4794 .Op Fl o Ar keylocation Ns = Ns Ar value
4795 .Op Fl o Ar keyformat Ns = Ns Ar value
4796 .Op Fl o Ar pbkdf2iters Ns = Ns Ar value
4797 .Ar filesystem
4798 .Xc
4799 .It Xo
4800 .Nm
4801 .Cm change-key
4802 .Fl i
4803 .Op Fl l
4804 .Ar filesystem
4805 .Xc
4806 Allows a user to change the encryption key used to access a dataset. This
4807 command requires that the existing key for the dataset is already loaded into
4808 ZFS. This command may also be used to change the
4809 .Sy keylocation ,
4810 .Sy keyformat ,
4811 and
4812 .Sy pbkdf2iters
4813 properties as needed. If the dataset was not previously an encryption root it
4814 will become one. Alternatively, the
4815 .Fl i
4816 flag may be provided to cause an encryption root to inherit the parent's key
4817 instead.
4818 .Bl -tag -width "-r"
4819 .It Fl l
4820 Ensures the key is loaded before attempting to change the key. This is
4821 effectively equivalent to
4822 .Qq Nm zfs Cm load-key Ar filesystem ; Nm zfs Cm change-key Ar filesystem
4823 .It Fl o Ar property Ns = Ns Ar value
4824 Allows the user to set encryption key properties (
4825 .Sy keyformat ,
4826 .Sy keylocation ,
4827 and
4828 .Sy pbkdf2iters
4829 ) while changing the key. This is the only way to alter
4830 .Sy keyformat
4831 and
4832 .Sy pbkdf2iters
4833 after the dataset has been created.
4834 .It Fl i
4835 Indicates that zfs should make
4836 .Ar filesystem
4837 inherit the key of its parent. Note that this command can only be run on an
4838 encryption root that has an encrypted parent.
4839 .El
4840 .It Xo
4841 .Nm
4842 .Cm version
4843 .Xc
4844 Displays the software version of the
4845 .Nm
4846 userland utility and the zfs kernel module.
4847 .El
4848 .Sh EXIT STATUS
4849 The
4850 .Nm
4851 utility exits 0 on success, 1 if an error occurs, and 2 if invalid command line
4852 options were specified.
4853 .Sh EXAMPLES
4854 .Bl -tag -width ""
4855 .It Sy Example 1 No Creating a ZFS File System Hierarchy
4856 The following commands create a file system named
4857 .Em pool/home
4858 and a file system named
4859 .Em pool/home/bob .
4860 The mount point
4861 .Pa /export/home
4862 is set for the parent file system, and is automatically inherited by the child
4863 file system.
4864 .Bd -literal
4865 # zfs create pool/home
4866 # zfs set mountpoint=/export/home pool/home
4867 # zfs create pool/home/bob
4868 .Ed
4869 .It Sy Example 2 No Creating a ZFS Snapshot
4870 The following command creates a snapshot named
4871 .Sy yesterday .
4872 This snapshot is mounted on demand in the
4873 .Pa .zfs/snapshot
4874 directory at the root of the
4875 .Em pool/home/bob
4876 file system.
4877 .Bd -literal
4878 # zfs snapshot pool/home/bob@yesterday
4879 .Ed
4880 .It Sy Example 3 No Creating and Destroying Multiple Snapshots
4881 The following command creates snapshots named
4882 .Sy yesterday
4883 of
4884 .Em pool/home
4885 and all of its descendent file systems.
4886 Each snapshot is mounted on demand in the
4887 .Pa .zfs/snapshot
4888 directory at the root of its file system.
4889 The second command destroys the newly created snapshots.
4890 .Bd -literal
4891 # zfs snapshot -r pool/home@yesterday
4892 # zfs destroy -r pool/home@yesterday
4893 .Ed
4894 .It Sy Example 4 No Disabling and Enabling File System Compression
4895 The following command disables the
4896 .Sy compression
4897 property for all file systems under
4898 .Em pool/home .
4899 The next command explicitly enables
4900 .Sy compression
4901 for
4902 .Em pool/home/anne .
4903 .Bd -literal
4904 # zfs set compression=off pool/home
4905 # zfs set compression=on pool/home/anne
4906 .Ed
4907 .It Sy Example 5 No Listing ZFS Datasets
4908 The following command lists all active file systems and volumes in the system.
4909 Snapshots are displayed if the
4910 .Sy listsnaps
4911 property is
4912 .Sy on .
4913 The default is
4914 .Sy off .
4915 See
4916 .Xr zpool 8
4917 for more information on pool properties.
4918 .Bd -literal
4919 # zfs list
4920 NAME                      USED  AVAIL  REFER  MOUNTPOINT
4921 pool                      450K   457G    18K  /pool
4922 pool/home                 315K   457G    21K  /export/home
4923 pool/home/anne             18K   457G    18K  /export/home/anne
4924 pool/home/bob             276K   457G   276K  /export/home/bob
4925 .Ed
4926 .It Sy Example 6 No Setting a Quota on a ZFS File System
4927 The following command sets a quota of 50 Gbytes for
4928 .Em pool/home/bob .
4929 .Bd -literal
4930 # zfs set quota=50G pool/home/bob
4931 .Ed
4932 .It Sy Example 7 No Listing ZFS Properties
4933 The following command lists all properties for
4934 .Em pool/home/bob .
4935 .Bd -literal
4936 # zfs get all pool/home/bob
4937 NAME           PROPERTY              VALUE                  SOURCE
4938 pool/home/bob  type                  filesystem             -
4939 pool/home/bob  creation              Tue Jul 21 15:53 2009  -
4940 pool/home/bob  used                  21K                    -
4941 pool/home/bob  available             20.0G                  -
4942 pool/home/bob  referenced            21K                    -
4943 pool/home/bob  compressratio         1.00x                  -
4944 pool/home/bob  mounted               yes                    -
4945 pool/home/bob  quota                 20G                    local
4946 pool/home/bob  reservation           none                   default
4947 pool/home/bob  recordsize            128K                   default
4948 pool/home/bob  mountpoint            /pool/home/bob         default
4949 pool/home/bob  sharenfs              off                    default
4950 pool/home/bob  checksum              on                     default
4951 pool/home/bob  compression           on                     local
4952 pool/home/bob  atime                 on                     default
4953 pool/home/bob  devices               on                     default
4954 pool/home/bob  exec                  on                     default
4955 pool/home/bob  setuid                on                     default
4956 pool/home/bob  readonly              off                    default
4957 pool/home/bob  zoned                 off                    default
4958 pool/home/bob  snapdir               hidden                 default
4959 pool/home/bob  acltype               off                    default
4960 pool/home/bob  aclinherit            restricted             default
4961 pool/home/bob  canmount              on                     default
4962 pool/home/bob  xattr                 on                     default
4963 pool/home/bob  copies                1                      default
4964 pool/home/bob  version               4                      -
4965 pool/home/bob  utf8only              off                    -
4966 pool/home/bob  normalization         none                   -
4967 pool/home/bob  casesensitivity       sensitive              -
4968 pool/home/bob  vscan                 off                    default
4969 pool/home/bob  nbmand                off                    default
4970 pool/home/bob  sharesmb              off                    default
4971 pool/home/bob  refquota              none                   default
4972 pool/home/bob  refreservation        none                   default
4973 pool/home/bob  primarycache          all                    default
4974 pool/home/bob  secondarycache        all                    default
4975 pool/home/bob  usedbysnapshots       0                      -
4976 pool/home/bob  usedbydataset         21K                    -
4977 pool/home/bob  usedbychildren        0                      -
4978 pool/home/bob  usedbyrefreservation  0                      -
4979 .Ed
4980 .Pp
4981 The following command gets a single property value.
4982 .Bd -literal
4983 # zfs get -H -o value compression pool/home/bob
4984 on
4985 .Ed
4986 The following command lists all properties with local settings for
4987 .Em pool/home/bob .
4988 .Bd -literal
4989 # zfs get -r -s local -o name,property,value all pool/home/bob
4990 NAME           PROPERTY              VALUE
4991 pool/home/bob  quota                 20G
4992 pool/home/bob  compression           on
4993 .Ed
4994 .It Sy Example 8 No Rolling Back a ZFS File System
4995 The following command reverts the contents of
4996 .Em pool/home/anne
4997 to the snapshot named
4998 .Sy yesterday ,
4999 deleting all intermediate snapshots.
5000 .Bd -literal
5001 # zfs rollback -r pool/home/anne@yesterday
5002 .Ed
5003 .It Sy Example 9 No Creating a ZFS Clone
5004 The following command creates a writable file system whose initial contents are
5005 the same as
5006 .Em pool/home/bob@yesterday .
5007 .Bd -literal
5008 # zfs clone pool/home/bob@yesterday pool/clone
5009 .Ed
5010 .It Sy Example 10 No Promoting a ZFS Clone
5011 The following commands illustrate how to test out changes to a file system, and
5012 then replace the original file system with the changed one, using clones, clone
5013 promotion, and renaming:
5014 .Bd -literal
5015 # zfs create pool/project/production
5016   populate /pool/project/production with data
5017 # zfs snapshot pool/project/production@today
5018 # zfs clone pool/project/production@today pool/project/beta
5019   make changes to /pool/project/beta and test them
5020 # zfs promote pool/project/beta
5021 # zfs rename pool/project/production pool/project/legacy
5022 # zfs rename pool/project/beta pool/project/production
5023   once the legacy version is no longer needed, it can be destroyed
5024 # zfs destroy pool/project/legacy
5025 .Ed
5026 .It Sy Example 11 No Inheriting ZFS Properties
5027 The following command causes
5028 .Em pool/home/bob
5029 and
5030 .Em pool/home/anne
5031 to inherit the
5032 .Sy checksum
5033 property from their parent.
5034 .Bd -literal
5035 # zfs inherit checksum pool/home/bob pool/home/anne
5036 .Ed
5037 .It Sy Example 12 No Remotely Replicating ZFS Data
5038 The following commands send a full stream and then an incremental stream to a
5039 remote machine, restoring them into
5040 .Em poolB/received/fs@a
5041 and
5042 .Em poolB/received/fs@b ,
5043 respectively.
5044 .Em poolB
5045 must contain the file system
5046 .Em poolB/received ,
5047 and must not initially contain
5048 .Em poolB/received/fs .
5049 .Bd -literal
5050 # zfs send pool/fs@a | \e
5051   ssh host zfs receive poolB/received/fs@a
5052 # zfs send -i a pool/fs@b | \e
5053   ssh host zfs receive poolB/received/fs
5054 .Ed
5055 .It Sy Example 13 No Using the zfs receive -d Option
5056 The following command sends a full stream of
5057 .Em poolA/fsA/fsB@snap
5058 to a remote machine, receiving it into
5059 .Em poolB/received/fsA/fsB@snap .
5060 The
5061 .Em fsA/fsB@snap
5062 portion of the received snapshot's name is determined from the name of the sent
5063 snapshot.
5064 .Em poolB
5065 must contain the file system
5066 .Em poolB/received .
5067 If
5068 .Em poolB/received/fsA
5069 does not exist, it is created as an empty file system.
5070 .Bd -literal
5071 # zfs send poolA/fsA/fsB@snap | \e
5072   ssh host zfs receive -d poolB/received
5073 .Ed
5074 .It Sy Example 14 No Setting User Properties
5075 The following example sets the user-defined
5076 .Sy com.example:department
5077 property for a dataset.
5078 .Bd -literal
5079 # zfs set com.example:department=12345 tank/accounting
5080 .Ed
5081 .It Sy Example 15 No Performing a Rolling Snapshot
5082 The following example shows how to maintain a history of snapshots with a
5083 consistent naming scheme.
5084 To keep a week's worth of snapshots, the user destroys the oldest snapshot,
5085 renames the remaining snapshots, and then creates a new snapshot, as follows:
5086 .Bd -literal
5087 # zfs destroy -r pool/users@7daysago
5088 # zfs rename -r pool/users@6daysago @7daysago
5089 # zfs rename -r pool/users@5daysago @6daysago
5090 # zfs rename -r pool/users@4daysago @5daysago
5091 # zfs rename -r pool/users@3daysago @4daysago
5092 # zfs rename -r pool/users@2daysago @3daysago
5093 # zfs rename -r pool/users@yesterday @2daysago
5094 # zfs rename -r pool/users@today @yesterday
5095 # zfs snapshot -r pool/users@today
5096 .Ed
5097 .It Sy Example 16 No Setting sharenfs Property Options on a ZFS File System
5098 The following commands show how to set
5099 .Sy sharenfs
5100 property options to enable
5101 .Sy rw
5102 access for a set of
5103 .Sy IP
5104 addresses and to enable root access for system
5105 .Sy neo
5106 on the
5107 .Em tank/home
5108 file system.
5109 .Bd -literal
5110 # zfs set sharenfs='rw=@123.123.0.0/16,root=neo' tank/home
5111 .Ed
5112 .Pp
5113 If you are using
5114 .Sy DNS
5115 for host name resolution, specify the fully qualified hostname.
5116 .It Sy Example 17 No Delegating ZFS Administration Permissions on a ZFS Dataset
5117 The following example shows how to set permissions so that user
5118 .Sy cindys
5119 can create, destroy, mount, and take snapshots on
5120 .Em tank/cindys .
5121 The permissions on
5122 .Em tank/cindys
5123 are also displayed.
5124 .Bd -literal
5125 # zfs allow cindys create,destroy,mount,snapshot tank/cindys
5126 # zfs allow tank/cindys
5127 ---- Permissions on tank/cindys --------------------------------------
5128 Local+Descendent permissions:
5129         user cindys create,destroy,mount,snapshot
5130 .Ed
5131 .Pp
5132 Because the
5133 .Em tank/cindys
5134 mount point permission is set to 755 by default, user
5135 .Sy cindys
5136 will be unable to mount file systems under
5137 .Em tank/cindys .
5138 Add an ACE similar to the following syntax to provide mount point access:
5139 .Bd -literal
5140 # chmod A+user:cindys:add_subdirectory:allow /tank/cindys
5141 .Ed
5142 .It Sy Example 18 No Delegating Create Time Permissions on a ZFS Dataset
5143 The following example shows how to grant anyone in the group
5144 .Sy staff
5145 to create file systems in
5146 .Em tank/users .
5147 This syntax also allows staff members to destroy their own file systems, but not
5148 destroy anyone else's file system.
5149 The permissions on
5150 .Em tank/users
5151 are also displayed.
5152 .Bd -literal
5153 # zfs allow staff create,mount tank/users
5154 # zfs allow -c destroy tank/users
5155 # zfs allow tank/users
5156 ---- Permissions on tank/users ---------------------------------------
5157 Permission sets:
5158         destroy
5159 Local+Descendent permissions:
5160         group staff create,mount
5161 .Ed
5162 .It Sy Example 19 No Defining and Granting a Permission Set on a ZFS Dataset
5163 The following example shows how to define and grant a permission set on the
5164 .Em tank/users
5165 file system.
5166 The permissions on
5167 .Em tank/users
5168 are also displayed.
5169 .Bd -literal
5170 # zfs allow -s @pset create,destroy,snapshot,mount tank/users
5171 # zfs allow staff @pset tank/users
5172 # zfs allow tank/users
5173 ---- Permissions on tank/users ---------------------------------------
5174 Permission sets:
5175         @pset create,destroy,mount,snapshot
5176 Local+Descendent permissions:
5177         group staff @pset
5178 .Ed
5179 .It Sy Example 20 No Delegating Property Permissions on a ZFS Dataset
5180 The following example shows to grant the ability to set quotas and reservations
5181 on the
5182 .Em users/home
5183 file system.
5184 The permissions on
5185 .Em users/home
5186 are also displayed.
5187 .Bd -literal
5188 # zfs allow cindys quota,reservation users/home
5189 # zfs allow users/home
5190 ---- Permissions on users/home ---------------------------------------
5191 Local+Descendent permissions:
5192         user cindys quota,reservation
5193 cindys% zfs set quota=10G users/home/marks
5194 cindys% zfs get quota users/home/marks
5195 NAME              PROPERTY  VALUE  SOURCE
5196 users/home/marks  quota     10G    local
5197 .Ed
5198 .It Sy Example 21 No Removing ZFS Delegated Permissions on a ZFS Dataset
5199 The following example shows how to remove the snapshot permission from the
5200 .Sy staff
5201 group on the
5202 .Em tank/users
5203 file system.
5204 The permissions on
5205 .Em tank/users
5206 are also displayed.
5207 .Bd -literal
5208 # zfs unallow staff snapshot tank/users
5209 # zfs allow tank/users
5210 ---- Permissions on tank/users ---------------------------------------
5211 Permission sets:
5212         @pset create,destroy,mount,snapshot
5213 Local+Descendent permissions:
5214         group staff @pset
5215 .Ed
5216 .It Sy Example 22 No Showing the differences between a snapshot and a ZFS Dataset
5217 The following example shows how to see what has changed between a prior
5218 snapshot of a ZFS dataset and its current state.
5219 The
5220 .Fl F
5221 option is used to indicate type information for the files affected.
5222 .Bd -literal
5223 # zfs diff -F tank/test@before tank/test
5224 M       /       /tank/test/
5225 M       F       /tank/test/linked      (+1)
5226 R       F       /tank/test/oldname -> /tank/test/newname
5227 -       F       /tank/test/deleted
5228 +       F       /tank/test/created
5229 M       F       /tank/test/modified
5230 .Ed
5231 .It Sy Example 23 No Creating a bookmark
5232 The following example create a bookmark to a snapshot. This bookmark
5233 can then be used instead of snapshot in send streams.
5234 .Bd -literal
5235 # zfs bookmark rpool@snapshot rpool#bookmark
5236 .Ed
5237 .It Sy Example 24 No Setting sharesmb Property Options on a ZFS File System
5238 The following example show how to share SMB filesystem through ZFS. Note that
5239 that a user and his/her password must be given.
5240 .Bd -literal
5241 # smbmount //127.0.0.1/share_tmp /mnt/tmp \\
5242   -o user=workgroup/turbo,password=obrut,uid=1000
5243 .Ed
5244 .Pp
5245 Minimal
5246 .Em /etc/samba/smb.conf
5247 configuration required:
5248 .Pp
5249 Samba will need to listen to 'localhost' (127.0.0.1) for the ZFS utilities to
5250 communicate with Samba. This is the default behavior for most Linux
5251 distributions.
5252 .Pp
5253 Samba must be able to authenticate a user. This can be done in a number of
5254 ways, depending on if using the system password file, LDAP or the Samba
5255 specific smbpasswd file. How to do this is outside the scope of this manual.
5256 Please refer to the
5257 .Xr smb.conf 5
5258 man page for more information.
5259 .Pp
5260 See the
5261 .Sy USERSHARE section
5262 of the
5263 .Xr smb.conf 5
5264 man page for all configuration options in case you need to modify any options
5265 to the share afterwards. Do note that any changes done with the
5266 .Xr net 8
5267 command will be undone if the share is ever unshared (such as at a reboot etc).
5268 .El
5269 .Sh INTERFACE STABILITY
5270 .Sy Committed .
5271 .Sh SEE ALSO
5272 .Xr attr 1 ,
5273 .Xr gzip 1 ,
5274 .Xr ssh 1 ,
5275 .Xr chmod 2 ,
5276 .Xr fsync 2 ,
5277 .Xr stat 2 ,
5278 .Xr write 2 ,
5279 .Xr acl 5 ,
5280 .Xr attributes 5 ,
5281 .Xr exports 5 ,
5282 .Xr exportfs 8 ,
5283 .Xr mount 8 ,
5284 .Xr net 8 ,
5285 .Xr selinux 8 ,
5286 .Xr zfs-program 8 ,
5287 .Xr zpool 8