xref: /freebsd/sys/contrib/openzfs/man/man7/zpool-features.7 (revision fa38579f317d5c2ff2926fab9b12ee6d429bd155)
1.\" SPDX-License-Identifier: CDDL-1.0
2.\"
3.\" Copyright (c) 2012, 2018 by Delphix. All rights reserved.
4.\" Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
5.\" Copyright (c) 2014, Joyent, Inc. All rights reserved.
6.\" The contents of this file are subject to the terms of the Common Development
7.\" and Distribution License (the "License").  You may not use this file except
8.\" in compliance with the License. You can obtain a copy of the license at
9.\" usr/src/OPENSOLARIS.LICENSE or https://opensource.org/licenses/CDDL-1.0.
10.\"
11.\" See the License for the specific language governing permissions and
12.\" limitations under the License. When distributing Covered Code, include this
13.\" CDDL HEADER in each file and include the License file at
14.\" usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this
15.\" CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your
16.\" own identifying information:
17.\" Portions Copyright [yyyy] [name of copyright owner]
18.\" Copyright (c) 2019, 2023, 2024, Klara, Inc.
19.\" Copyright (c) 2019, Allan Jude
20.\" Copyright (c) 2021, Colm Buckley <colm@tuatha.org>
21.\"
22.Dd October 2, 2024
23.Dt ZPOOL-FEATURES 7
24.Os
25.
26.Sh NAME
27.Nm zpool-features
28.Nd description of ZFS pool features
29.
30.Sh DESCRIPTION
31ZFS pool on-disk format versions are specified via
32.Dq features
33which replace the old on-disk format numbers
34.Pq the last supported on-disk format number is 28 .
35To enable a feature on a pool use the
36.Nm zpool Cm upgrade ,
37or set the
38.Sy feature Ns @ Ns Ar feature-name
39property to
40.Sy enabled .
41Please also see the
42.Sx Compatibility feature sets
43section for information on how sets of features may be enabled together.
44.Pp
45The pool format does not affect file system version compatibility or the ability
46to send file systems between pools.
47.Pp
48Since most features can be enabled independently of each other, the on-disk
49format of the pool is specified by the set of all features marked as
50.Sy active
51on the pool.
52If the pool was created by another software version
53this set may include unsupported features.
54.
55.Ss Identifying features
56Every feature has a GUID of the form
57.Ar com.example : Ns Ar feature-name .
58The reversed DNS name ensures that the feature's GUID is unique across all ZFS
59implementations.
60When unsupported features are encountered on a pool they will
61be identified by their GUIDs.
62Refer to the documentation for the ZFS
63implementation that created the pool for information about those features.
64.Pp
65Each supported feature also has a short name.
66By convention a feature's short name is the portion of its GUID which follows
67the
68.Sq \&:
69.Po
70i.e.
71.Ar com.example : Ns Ar feature-name
72would have the short name
73.Ar feature-name
74.Pc ,
75however a feature's short name may differ across ZFS implementations if
76following the convention would result in name conflicts.
77.
78.Ss Feature states
79Features can be in one of three states:
80.Bl -tag -width "disabled"
81.It Sy active
82This feature's on-disk format changes are in effect on the pool.
83Support for this feature is required to import the pool in read-write mode.
84If this feature is not read-only compatible,
85support is also required to import the pool in read-only mode
86.Pq see Sx Read-only compatibility .
87.It Sy enabled
88An administrator has marked this feature as enabled on the pool, but the
89feature's on-disk format changes have not been made yet.
90The pool can still be imported by software that does not support this feature,
91but changes may be made to the on-disk format at any time
92which will move the feature to the
93.Sy active
94state.
95Some features may support returning to the
96.Sy enabled
97state after becoming
98.Sy active .
99See feature-specific documentation for details.
100.It Sy disabled
101This feature's on-disk format changes have not been made and will not be made
102unless an administrator moves the feature to the
103.Sy enabled
104state.
105Features cannot be disabled once they have been enabled.
106.El
107.Pp
108The state of supported features is exposed through pool properties of the form
109.Sy feature Ns @ Ns Ar short-name .
110.
111.Ss Read-only compatibility
112Some features may make on-disk format changes that do not interfere with other
113software's ability to read from the pool.
114These features are referred to as
115.Dq read-only compatible .
116If all unsupported features on a pool are read-only compatible,
117the pool can be imported in read-only mode by setting the
118.Sy readonly
119property during import
120.Po see
121.Xr zpool-import 8
122for details on importing pools
123.Pc .
124.
125.Ss Unsupported features
126For each unsupported feature enabled on an imported pool, a pool property
127named
128.Sy unsupported Ns @ Ns Ar feature-name
129will indicate why the import was allowed despite the unsupported feature.
130Possible values for this property are:
131.Bl -tag -width "readonly"
132.It Sy inactive
133The feature is in the
134.Sy enabled
135state and therefore the pool's on-disk
136format is still compatible with software that does not support this feature.
137.It Sy readonly
138The feature is read-only compatible and the pool has been imported in
139read-only mode.
140.El
141.
142.Ss Feature dependencies
143Some features depend on other features being enabled in order to function.
144Enabling a feature will automatically enable any features it depends on.
145.
146.Ss Compatibility feature sets
147It is sometimes necessary for a pool to maintain compatibility with a
148specific on-disk format, by enabling and disabling particular features.
149The
150.Sy compatibility
151feature facilitates this by allowing feature sets to be read from text files.
152When set to
153.Sy off
154.Pq the default ,
155compatibility feature sets are disabled
156.Pq i.e. all features are enabled ;
157when set to
158.Sy legacy ,
159no features are enabled.
160When set to a comma-separated list of filenames
161.Po
162each filename may either be an absolute path, or relative to
163.Pa /etc/zfs/compatibility.d
164or
165.Pa /usr/share/zfs/compatibility.d
166.Pc ,
167the lists of requested features are read from those files,
168separated by whitespace and/or commas.
169Only features present in all files are enabled.
170.Pp
171Simple sanity checks are applied to the files:
172they must be between 1 B and 16 KiB in size, and must end with a newline
173character.
174.Pp
175The requested features are applied when a pool is created using
176.Nm zpool Cm create Fl o Sy compatibility Ns = Ns Ar …
177and controls which features are enabled when using
178.Nm zpool Cm upgrade .
179.Nm zpool Cm status
180will not show a warning about disabled features which are not part
181of the requested feature set.
182.Pp
183The special value
184.Sy legacy
185prevents any features from being enabled, either via
186.Nm zpool Cm upgrade
187or
188.Nm zpool Cm set Sy feature Ns @ Ns Ar feature-name Ns = Ns Sy enabled .
189This setting also prevents pools from being upgraded to newer on-disk versions.
190This is a safety measure to prevent new features from being
191accidentally enabled, breaking compatibility.
192.Pp
193By convention, compatibility files in
194.Pa /usr/share/zfs/compatibility.d
195are provided by the distribution, and include feature sets
196supported by important versions of popular distributions, and feature
197sets commonly supported at the start of each year.
198Compatibility files in
199.Pa /etc/zfs/compatibility.d ,
200if present, will take precedence over files with the same name in
201.Pa /usr/share/zfs/compatibility.d .
202.Pp
203If an unrecognized feature is found in these files, an error message will
204be shown.
205If the unrecognized feature is in a file in
206.Pa /etc/zfs/compatibility.d ,
207this is treated as an error and processing will stop.
208If the unrecognized feature is under
209.Pa /usr/share/zfs/compatibility.d ,
210this is treated as a warning and processing will continue.
211This difference is to allow distributions to include features
212which might not be recognized by the currently-installed binaries.
213.Pp
214Compatibility files may include comments:
215any text from
216.Sq #
217to the end of the line is ignored.
218.Pp
219.Sy Example :
220.Bd -literal -compact -offset 4n
221.No example# Nm cat Pa /usr/share/zfs/compatibility.d/grub2
222# Features which are supported by GRUB2 versions from v2.12 onwards.
223allocation_classes
224async_destroy
225block_cloning
226bookmarks
227device_rebuild
228embedded_data
229empty_bpobj
230enabled_txg
231extensible_dataset
232filesystem_limits
233hole_birth
234large_blocks
235livelist
236log_spacemap
237lz4_compress
238project_quota
239resilver_defer
240spacemap_histogram
241spacemap_v2
242userobj_accounting
243zilsaxattr
244zpool_checkpoint
245
246.No example# Nm cat Pa /usr/share/zfs/compatibility.d/grub2-2.06
247# Features which are supported by GRUB2 versions prior to v2.12.
248#
249# GRUB is not able to detect ZFS pool if snapshot of top level boot pool
250# is created. This issue is observed with GRUB versions before v2.12 if
251# extensible_dataset feature is enabled on ZFS boot pool.
252#
253# This file lists all read-only compatible features except
254# extensible_dataset and any other feature that depends on it.
255#
256allocation_classes
257async_destroy
258block_cloning
259device_rebuild
260embedded_data
261empty_bpobj
262enabled_txg
263hole_birth
264log_spacemap
265lz4_compress
266resilver_defer
267spacemap_histogram
268spacemap_v2
269zpool_checkpoint
270
271.No example# Nm zpool Cm create Fl o Sy compatibility Ns = Ns Ar grub2 Ar bootpool Ar vdev
272.Ed
273.Pp
274See
275.Xr zpool-create 8
276and
277.Xr zpool-upgrade 8
278for more information on how these commands are affected by feature sets.
279.
280.de feature
281.It Sy \\$2
282.Bl -tag -compact -width "READ-ONLY COMPATIBLE"
283.It GUID
284.Sy \\$1:\\$2
285.if !"\\$4"" \{\
286.It DEPENDENCIES
287\fB\\$4\fP\c
288.if !"\\$5"" , \fB\\$5\fP\c
289.if !"\\$6"" , \fB\\$6\fP\c
290.if !"\\$7"" , \fB\\$7\fP\c
291.if !"\\$8"" , \fB\\$8\fP\c
292.if !"\\$9"" , \fB\\$9\fP\c
293.\}
294.It READ-ONLY COMPATIBLE
295\\$3
296.El
297.Pp
298..
299.
300.ds instant-never \
301.No This feature becomes Sy active No as soon as it is enabled \
302and will never return to being Sy enabled .
303.
304.ds remount-upgrade \
305.No Each filesystem will be upgraded automatically when remounted, \
306or when a new file is created under that filesystem. \
307The upgrade can also be triggered on filesystems via \
308Nm zfs Cm set Sy version Ns = Ns Sy current Ar fs . \
309No The upgrade process runs in the background and may take a while to complete \
310for filesystems containing large amounts of files .
311.
312.de checksum-spiel
313When the
314.Sy \\$1
315feature is set to
316.Sy enabled ,
317the administrator can turn on the
318.Sy \\$1
319checksum on any dataset using
320.Nm zfs Cm set Sy checksum Ns = Ns Sy \\$1 Ar dset
321.Po see Xr zfs-set 8 Pc .
322This feature becomes
323.Sy active
324once a
325.Sy checksum
326property has been set to
327.Sy \\$1 ,
328and will return to being
329.Sy enabled
330once all filesystems that have ever had their checksum set to
331.Sy \\$1
332are destroyed.
333..
334.
335.Sh FEATURES
336The following features are supported on this system:
337.Bl -tag -width Ds
338.feature org.zfsonlinux allocation_classes yes
339This feature enables support for separate allocation classes.
340.Pp
341This feature becomes
342.Sy active
343when a dedicated allocation class vdev
344.Pq dedup or special
345is created with the
346.Nm zpool Cm create No or Nm zpool Cm add No commands .
347With device removal, it can be returned to the
348.Sy enabled
349state if all the dedicated allocation class vdevs are removed.
350.
351.feature com.delphix async_destroy yes
352Destroying a file system requires traversing all of its data in order to
353return its used space to the pool.
354Without
355.Sy async_destroy ,
356the file system is not fully removed until all space has been reclaimed.
357If the destroy operation is interrupted by a reboot or power outage,
358the next attempt to open the pool will need to complete the destroy
359operation synchronously.
360.Pp
361When
362.Sy async_destroy
363is enabled, the file system's data will be reclaimed by a background process,
364allowing the destroy operation to complete
365without traversing the entire file system.
366The background process is able to resume
367interrupted destroys after the pool has been opened, eliminating the need
368to finish interrupted destroys as part of the open operation.
369The amount of space remaining to be reclaimed by the background process
370is available through the
371.Sy freeing
372property.
373.Pp
374This feature is only
375.Sy active
376while
377.Sy freeing
378is non-zero.
379.
380.feature org.openzfs blake3 no extensible_dataset
381This feature enables the use of the BLAKE3 hash algorithm for checksum and
382dedup.
383BLAKE3 is a secure hash algorithm focused on high performance.
384.Pp
385.checksum-spiel blake3
386.
387.feature com.fudosecurity block_cloning yes
388When this feature is enabled ZFS will use block cloning for operations like
389.Fn copy_file_range 2 .
390Block cloning allows to create multiple references to a single block.
391It is much faster than copying the data (as the actual data is neither read nor
392written) and takes no additional space.
393Blocks can be cloned across datasets under some conditions (like equal
394.Nm recordsize ,
395the same master encryption key, etc.).
396ZFS tries its best to clone across datasets including encrypted ones.
397This is limited for various (nontrivial) reasons depending on the OS
398and/or ZFS internals.
399.Pp
400This feature becomes
401.Sy active
402when first block is cloned.
403When the last cloned block is freed, it goes back to the enabled state.
404.feature com.delphix bookmarks yes extensible_dataset
405This feature enables use of the
406.Nm zfs Cm bookmark
407command.
408.Pp
409This feature is
410.Sy active
411while any bookmarks exist in the pool.
412All bookmarks in the pool can be listed by running
413.Nm zfs Cm list Fl t Sy bookmark Fl r Ar poolname .
414.
415.feature com.datto bookmark_v2 no bookmark extensible_dataset
416This feature enables the creation and management of larger bookmarks which are
417needed for other features in ZFS.
418.Pp
419This feature becomes
420.Sy active
421when a v2 bookmark is created and will be returned to the
422.Sy enabled
423state when all v2 bookmarks are destroyed.
424.
425.feature com.delphix bookmark_written no bookmark extensible_dataset bookmark_v2
426This feature enables additional bookmark accounting fields, enabling the
427.Sy written Ns # Ns Ar bookmark
428property
429.Pq space written since a bookmark
430and estimates of send stream sizes for incrementals from bookmarks.
431.Pp
432This feature becomes
433.Sy active
434when a bookmark is created and will be
435returned to the
436.Sy enabled
437state when all bookmarks with these fields are destroyed.
438.
439.feature org.openzfs device_rebuild yes
440This feature enables the ability for the
441.Nm zpool Cm attach
442and
443.Nm zpool Cm replace
444commands to perform sequential reconstruction
445.Pq instead of healing reconstruction
446when resilvering.
447.Pp
448Sequential reconstruction resilvers a device in LBA order without immediately
449verifying the checksums.
450Once complete, a scrub is started, which then verifies the checksums.
451This approach allows full redundancy to be restored to the pool
452in the minimum amount of time.
453This two-phase approach will take longer than a healing resilver
454when the time to verify the checksums is included.
455However, unless there is additional pool damage,
456no checksum errors should be reported by the scrub.
457This feature is incompatible with raidz configurations.
458.
459This feature becomes
460.Sy active
461while a sequential resilver is in progress, and returns to
462.Sy enabled
463when the resilver completes.
464.
465.feature com.delphix device_removal no
466This feature enables the
467.Nm zpool Cm remove
468command to remove top-level vdevs,
469evacuating them to reduce the total size of the pool.
470.Pp
471This feature becomes
472.Sy active
473when the
474.Nm zpool Cm remove
475command is used
476on a top-level vdev, and will never return to being
477.Sy enabled .
478.
479.feature org.openzfs draid no
480This feature enables use of the
481.Sy draid
482vdev type.
483dRAID is a variant of RAID-Z which provides integrated distributed
484hot spares that allow faster resilvering while retaining the benefits of RAID-Z.
485Data, parity, and spare space are organized in redundancy groups
486and distributed evenly over all of the devices.
487.Pp
488This feature becomes
489.Sy active
490when creating a pool which uses the
491.Sy draid
492vdev type, or when adding a new
493.Sy draid
494vdev to an existing pool.
495.
496.feature org.illumos edonr no extensible_dataset
497This feature enables the use of the Edon-R hash algorithm for checksum,
498including for nopwrite
499.Po if compression is also enabled, an overwrite of
500a block whose checksum matches the data being written will be ignored
501.Pc .
502In an abundance of caution, Edon-R requires verification when used with
503dedup:
504.Nm zfs Cm set Sy dedup Ns = Ns Sy edonr , Ns Sy verify
505.Po see Xr zfs-set 8 Pc .
506.Pp
507Edon-R is a very high-performance hash algorithm that was part
508of the NIST SHA-3 competition.
509It provides extremely high hash performance
510.Pq over 350% faster than SHA-256 ,
511but was not selected because of its unsuitability
512as a general purpose secure hash algorithm.
513This implementation utilizes the new salted checksumming functionality
514in ZFS, which means that the checksum is pre-seeded with a secret
515256-bit random key
516.Pq stored on the pool
517before being fed the data block to be checksummed.
518Thus the produced checksums are unique to a given pool,
519preventing hash collision attacks on systems with dedup.
520.Pp
521.checksum-spiel edonr
522.
523.feature com.delphix embedded_data no
524This feature improves the performance and compression ratio of
525highly-compressible blocks.
526Blocks whose contents can compress to 112 bytes
527or smaller can take advantage of this feature.
528.Pp
529When this feature is enabled, the contents of highly-compressible blocks are
530stored in the block
531.Dq pointer
532itself
533.Po a misnomer in this case, as it contains
534the compressed data, rather than a pointer to its location on disk
535.Pc .
536Thus the space of the block
537.Pq one sector, typically 512 B or 4 KiB
538is saved, and no additional I/O is needed to read and write the data block.
539.
540\*[instant-never]
541.
542.feature com.delphix empty_bpobj yes
543This feature increases the performance of creating and using a large
544number of snapshots of a single filesystem or volume, and also reduces
545the disk space required.
546.Pp
547When there are many snapshots, each snapshot uses many Block Pointer
548Objects
549.Pq bpobjs
550to track blocks associated with that snapshot.
551However, in common use cases, most of these bpobjs are empty.
552This feature allows us to create each bpobj on-demand,
553thus eliminating the empty bpobjs.
554.Pp
555This feature is
556.Sy active
557while there are any filesystems, volumes,
558or snapshots which were created after enabling this feature.
559.
560.feature com.delphix enabled_txg yes
561Once this feature is enabled, ZFS records the transaction group number
562in which new features are enabled.
563This has no user-visible impact, but other features may depend on this feature.
564.Pp
565This feature becomes
566.Sy active
567as soon as it is enabled and will never return to being
568.Sy enabled .
569.
570.feature com.datto encryption no bookmark_v2 extensible_dataset
571This feature enables the creation and management of natively encrypted datasets.
572.Pp
573This feature becomes
574.Sy active
575when an encrypted dataset is created and will be returned to the
576.Sy enabled
577state when all datasets that use this feature are destroyed.
578.
579.feature com.klarasystems fast_dedup yes
580This feature allows more advanced deduplication features to be enabled on new
581dedup tables.
582.Pp
583This feature will be
584.Sy active
585when the first deduplicated block is written after a new dedup table is created
586(i.e. after a new pool creation, or new checksum used on a dataset with
587.Sy dedup
588enabled).
589It will be returned to the
590.Sy enabled
591state when all deduplicated blocks using it are freed.
592.
593.feature com.delphix extensible_dataset no
594This feature allows more flexible use of internal ZFS data structures,
595and exists for other features to depend on.
596.Pp
597This feature will be
598.Sy active
599when the first dependent feature uses it, and will be returned to the
600.Sy enabled
601state when all datasets that use this feature are destroyed.
602.
603.feature com.joyent filesystem_limits yes extensible_dataset
604This feature enables filesystem and snapshot limits.
605These limits can be used to control how many filesystems and/or snapshots
606can be created at the point in the tree on which the limits are set.
607.Pp
608This feature is
609.Sy active
610once either of the limit properties has been set on a dataset
611and will never return to being
612.Sy enabled .
613.
614.feature com.delphix head_errlog no
615This feature enables the upgraded version of errlog, which required an on-disk
616error log format change.
617Now the error log of each head dataset is stored separately in the zap object
618and keyed by the head id.
619With this feature enabled, every dataset affected by an error block is listed
620in the output of
621.Nm zpool Cm status .
622In case of encrypted filesystems with unloaded keys we are unable to check
623their snapshots or clones for errors and these will not be reported.
624An "access denied" error will be reported.
625.Pp
626\*[instant-never]
627.
628.feature com.delphix hole_birth no enabled_txg
629This feature has/had bugs, the result of which is that, if you do a
630.Nm zfs Cm send Fl i
631.Pq or Fl R , No since it uses Fl i
632from an affected dataset, the receiving party will not see any checksum
633or other errors, but the resulting destination snapshot
634will not match the source.
635Its use by
636.Nm zfs Cm send Fl i
637has been disabled by default
638.Po
639see
640.Sy send_holes_without_birth_time
641in
642.Xr zfs 4
643.Pc .
644.Pp
645This feature improves performance of incremental sends
646.Pq Nm zfs Cm send Fl i
647and receives for objects with many holes.
648The most common case of hole-filled objects is zvols.
649.Pp
650An incremental send stream from snapshot
651.Sy A No to snapshot Sy B
652contains information about every block that changed between
653.Sy A No and Sy B .
654Blocks which did not change between those snapshots can be
655identified and omitted from the stream using a piece of metadata called
656the
657.Dq block birth time ,
658but birth times are not recorded for holes
659.Pq blocks filled only with zeroes .
660Since holes created after
661.Sy A No cannot be distinguished from holes created before Sy A ,
662information about every hole in the entire filesystem or zvol
663is included in the send stream.
664.Pp
665For workloads where holes are rare this is not a problem.
666However, when incrementally replicating filesystems or zvols with many holes
667.Pq for example a zvol formatted with another filesystem
668a lot of time will be spent sending and receiving unnecessary information
669about holes that already exist on the receiving side.
670.Pp
671Once the
672.Sy hole_birth
673feature has been enabled the block birth times
674of all new holes will be recorded.
675Incremental sends between snapshots created after this feature is enabled
676will use this new metadata to avoid sending information about holes that
677already exist on the receiving side.
678.Pp
679\*[instant-never]
680.
681.feature org.open-zfs large_blocks no extensible_dataset
682This feature allows the record size on a dataset to be set larger than 128 KiB.
683.Pp
684This feature becomes
685.Sy active
686once a dataset contains a file with a block size larger than 128 KiB,
687and will return to being
688.Sy enabled
689once all filesystems that have ever had their recordsize larger than 128 KiB
690are destroyed.
691.
692.feature org.zfsonlinux large_dnode no extensible_dataset
693This feature allows the size of dnodes in a dataset to be set larger than 512 B.
694.
695This feature becomes
696.Sy active
697once a dataset contains an object with a dnode larger than 512 B,
698which occurs as a result of setting the
699.Sy dnodesize
700dataset property to a value other than
701.Sy legacy .
702The feature will return to being
703.Sy enabled
704once all filesystems that have ever contained a dnode larger than 512 B
705are destroyed.
706Large dnodes allow more data to be stored in the bonus buffer,
707thus potentially improving performance by avoiding the use of spill blocks.
708.
709.feature com.klarasystems large_microzap yes extensible_dataset large_blocks
710This feature allows "micro" ZAPs to grow larger than 128 KiB without being
711upgraded to "fat" ZAPs.
712.Pp
713This feature becomes
714.Sy active
715the first time a micro ZAP grows larger than 128KiB.
716It will only be returned to the
717.Sy enabled
718state when all datasets that ever had a large micro ZAP are destroyed.
719.Pp
720Note that even when this feature is enabled, micro ZAPs cannot grow larger
721than 128 KiB without also changing the
722.Sy zap_micro_max_size
723module parameter.
724See
725.Xr zfs 4 .
726.
727.feature com.delphix livelist yes extensible_dataset
728This feature allows clones to be deleted faster than the traditional method
729when a large number of random/sparse writes have been made to the clone.
730All blocks allocated and freed after a clone is created are tracked by the
731the clone's livelist which is referenced during the deletion of the clone.
732The feature is activated when a clone is created and remains
733.Sy active
734until all clones have been destroyed.
735.
736.feature com.delphix log_spacemap yes com.delphix:spacemap_v2
737This feature improves performance for heavily-fragmented pools,
738especially when workloads are heavy in random-writes.
739It does so by logging all the metaslab changes on a single spacemap every TXG
740instead of scattering multiple writes to all the metaslab spacemaps.
741.Pp
742\*[instant-never]
743.
744.feature org.zfsonlinux longname no extensible_dataset
745This feature allows creating files and directories with name up to 1023 bytes
746in length.
747A new dataset property
748.Sy longname
749is also introduced to toggle longname support for each dataset individually.
750This property can be disabled even if it contains longname files.
751In such case, new file cannot be created with longname but existing longname
752files can still be looked up.
753.Pp
754This feature becomes
755.Sy active
756when a file name greater than 255 is created in a dataset, and returns to
757being
758.Sy enabled
759when all such datasets are destroyed.
760.
761.feature org.illumos lz4_compress no
762.Sy lz4
763is a high-performance real-time compression algorithm that
764features significantly faster compression and decompression as well as a
765higher compression ratio than the older
766.Sy lzjb
767compression.
768Typically,
769.Sy lz4
770compression is approximately 50% faster on compressible data and 200% faster
771on incompressible data than
772.Sy lzjb .
773It is also approximately 80% faster on decompression,
774while giving approximately a 10% better compression ratio.
775.Pp
776When the
777.Sy lz4_compress
778feature is set to
779.Sy enabled ,
780the administrator can turn on
781.Sy lz4
782compression on any dataset on the pool using the
783.Xr zfs-set 8
784command.
785All newly written metadata will be compressed with the
786.Sy lz4
787algorithm.
788.Pp
789\*[instant-never]
790.
791.feature com.joyent multi_vdev_crash_dump no
792This feature allows a dump device to be configured with a pool comprised
793of multiple vdevs.
794Those vdevs may be arranged in any mirrored or raidz configuration.
795.Pp
796When the
797.Sy multi_vdev_crash_dump
798feature is set to
799.Sy enabled ,
800the administrator can use
801.Xr dumpadm 8
802to configure a dump device on a pool comprised of multiple vdevs.
803.Pp
804Under
805.Fx
806and Linux this feature is unused, but registered for compatibility.
807New pools created on these systems will have the feature
808.Sy enabled
809but will never transition to
810.Sy active ,
811as this functionality is not required for crash dump support.
812Existing pools where this feature is
813.Sy active
814can be imported.
815.
816.feature com.delphix obsolete_counts yes device_removal
817This feature is an enhancement of
818.Sy device_removal ,
819which will over time reduce the memory used to track removed devices.
820When indirect blocks are freed or remapped,
821we note that their part of the indirect mapping is
822.Dq obsolete
823– no longer needed.
824.Pp
825This feature becomes
826.Sy active
827when the
828.Nm zpool Cm remove
829command is used on a top-level vdev, and will never return to being
830.Sy enabled .
831.
832.feature org.zfsonlinux project_quota yes extensible_dataset
833This feature allows administrators to account the spaces and objects usage
834information against the project identifier
835.Pq ID .
836.Pp
837The project ID is an object-based attribute.
838When upgrading an existing filesystem,
839objects without a project ID will be assigned a zero project ID.
840When this feature is enabled, newly created objects inherit
841their parent directories' project ID if the parent's inherit flag is set
842.Pq via Nm chattr Sy [+-]P No or Nm zfs Cm project Fl s Ns | Ns Fl C .
843Otherwise, the new object's project ID will be zero.
844An object's project ID can be changed at any time by the owner
845.Pq or privileged user
846via
847.Nm chattr Fl p Ar prjid
848or
849.Nm zfs Cm project Fl p Ar prjid .
850.Pp
851This feature will become
852.Sy active
853as soon as it is enabled and will never return to being
854.Sy disabled .
855\*[remount-upgrade]
856.
857.feature org.openzfs raidz_expansion no none
858This feature enables the
859.Nm zpool Cm attach
860subcommand to attach a new device to a RAID-Z group, expanding the total
861amount usable space in the pool.
862See
863.Xr zpool-attach 8 .
864.
865.feature com.delphix redaction_bookmarks no bookmarks extensible_dataset
866This feature enables the use of redacted
867.Nm zfs Cm send Ns s ,
868which create redaction bookmarks storing the list of blocks
869redacted by the send that created them.
870For more information about redacted sends, see
871.Xr zfs-send 8 .
872.
873.feature com.delphix redacted_datasets no extensible_dataset
874This feature enables the receiving of redacted
875.Nm zfs Cm send
876streams, which create redacted datasets when received.
877These datasets are missing some of their blocks,
878and so cannot be safely mounted, and their contents cannot be safely read.
879For more information about redacted receives, see
880.Xr zfs-send 8 .
881.
882.feature com.delphix redaction_list_spill no redaction_bookmarks
883This feature enables the redaction list created by zfs redact to store
884many more entries.
885It becomes
886.Sy active
887when a redaction list is created with more than 36 entries,
888and returns to being
889.Sy enabled
890when no long redaction lists remain in the pool.
891For more information about redacted sends, see
892.Xr zfs-send 8 .
893.
894.feature com.datto resilver_defer yes
895This feature allows ZFS to postpone new resilvers if an existing one is already
896in progress.
897Without this feature, any new resilvers will cause the currently
898running one to be immediately restarted from the beginning.
899.Pp
900This feature becomes
901.Sy active
902once a resilver has been deferred, and returns to being
903.Sy enabled
904when the deferred resilver begins.
905.
906.feature org.illumos sha512 no extensible_dataset
907This feature enables the use of the SHA-512/256 truncated hash algorithm
908.Pq FIPS 180-4
909for checksum and dedup.
910The native 64-bit arithmetic of SHA-512 provides an approximate 50%
911performance boost over SHA-256 on 64-bit hardware
912and is thus a good minimum-change replacement candidate
913for systems where hash performance is important,
914but these systems cannot for whatever reason utilize the faster
915.Sy skein No and Sy edonr
916algorithms.
917.Pp
918.checksum-spiel sha512
919.
920.feature org.illumos skein no extensible_dataset
921This feature enables the use of the Skein hash algorithm for checksum and dedup.
922Skein is a high-performance secure hash algorithm that was a
923finalist in the NIST SHA-3 competition.
924It provides a very high security margin and high performance on 64-bit hardware
925.Pq 80% faster than SHA-256 .
926This implementation also utilizes the new salted checksumming
927functionality in ZFS, which means that the checksum is pre-seeded with a
928secret 256-bit random key
929.Pq stored on the pool
930before being fed the data block to be checksummed.
931Thus the produced checksums are unique to a given pool,
932preventing hash collision attacks on systems with dedup.
933.Pp
934.checksum-spiel skein
935.
936.feature com.delphix spacemap_histogram yes
937This features allows ZFS to maintain more information about how free space
938is organized within the pool.
939If this feature is
940.Sy enabled ,
941it will be activated when a new space map object is created, or
942an existing space map is upgraded to the new format,
943and never returns back to being
944.Sy enabled .
945.
946.feature com.delphix spacemap_v2 yes
947This feature enables the use of the new space map encoding which
948consists of two words
949.Pq instead of one
950whenever it is advantageous.
951The new encoding allows space maps to represent large regions of
952space more efficiently on-disk while also increasing their maximum
953addressable offset.
954.Pp
955This feature becomes
956.Sy active
957once it is
958.Sy enabled ,
959and never returns back to being
960.Sy enabled .
961.
962.feature org.zfsonlinux userobj_accounting yes extensible_dataset
963This feature allows administrators to account the object usage information
964by user and group.
965.Pp
966\*[instant-never]
967\*[remount-upgrade]
968.
969.feature com.klarasystems vdev_zaps_v2 no
970This feature creates a ZAP object for the root vdev.
971.Pp
972This feature becomes active after the next
973.Nm zpool Cm import
974or
975.Nm zpool reguid .
976.
977Properties can be retrieved or set on the root vdev using
978.Nm zpool Cm get
979and
980.Nm zpool Cm set
981with
982.Sy root
983as the vdev name which is an alias for
984.Sy root-0 .
985.feature org.openzfs zilsaxattr yes extensible_dataset
986This feature enables
987.Sy xattr Ns = Ns Sy sa
988extended attribute logging in the ZIL.
989If enabled, extended attribute changes
990.Pq both Sy xattrdir Ns = Ns Sy dir No and Sy xattr Ns = Ns Sy sa
991are guaranteed to be durable if either the dataset had
992.Sy sync Ns = Ns Sy always
993set at the time the changes were made, or
994.Xr sync 2
995is called on the dataset after the changes were made.
996.Pp
997This feature becomes
998.Sy active
999when a ZIL is created for at least one dataset and will be returned to the
1000.Sy enabled
1001state when it is destroyed for all datasets that use this feature.
1002.
1003.feature com.delphix zpool_checkpoint yes
1004This feature enables the
1005.Nm zpool Cm checkpoint
1006command that can checkpoint the state of the pool
1007at the time it was issued and later rewind back to it or discard it.
1008.Pp
1009This feature becomes
1010.Sy active
1011when the
1012.Nm zpool Cm checkpoint
1013command is used to checkpoint the pool.
1014The feature will only return back to being
1015.Sy enabled
1016when the pool is rewound or the checkpoint has been discarded.
1017.
1018.feature org.freebsd zstd_compress no extensible_dataset
1019.Sy zstd
1020is a high-performance compression algorithm that features a
1021combination of high compression ratios and high speed.
1022Compared to
1023.Sy gzip ,
1024.Sy zstd
1025offers slightly better compression at much higher speeds.
1026Compared to
1027.Sy lz4 ,
1028.Sy zstd
1029offers much better compression while being only modestly slower.
1030Typically,
1031.Sy zstd
1032compression speed ranges from 250 to 500 MB/s per thread
1033and decompression speed is over 1 GB/s per thread.
1034.Pp
1035When the
1036.Sy zstd
1037feature is set to
1038.Sy enabled ,
1039the administrator can turn on
1040.Sy zstd
1041compression of any dataset using
1042.Nm zfs Cm set Sy compress Ns = Ns Sy zstd Ar dset
1043.Po see Xr zfs-set 8 Pc .
1044This feature becomes
1045.Sy active
1046once a
1047.Sy compress
1048property has been set to
1049.Sy zstd ,
1050and will return to being
1051.Sy enabled
1052once all filesystems that have ever had their
1053.Sy compress
1054property set to
1055.Sy zstd
1056are destroyed.
1057.El
1058.
1059.Sh SEE ALSO
1060.Xr zfs 8 ,
1061.Xr zpool 8
1062