diff options
author | Colm <[email protected]> | 2021-02-18 05:30:45 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-17 21:30:45 -0800 |
commit | 658fb8020f0501435516baeea7004575d640649b (patch) | |
tree | c457e97687bbef4abe4b791fce7f4515feaaf4d2 /man/man8/zpool-create.8 | |
parent | 35ec51796f0aa8d4fe322b48e7d1d5a65e38a4ce (diff) |
Add "compatibility" property for zpool feature sets
Property to allow sets of features to be specified; for compatibility
with specific versions / releases / external systems. Influences
the behavior of 'zpool upgrade' and 'zpool create'. Initial man
page changes and test cases included.
Brief synopsis:
zpool create -o compatibility=off|legacy|file[,file...] pool vdev...
compatibility = off : disable compatibility mode (enable all features)
compatibility = legacy : request that no features be enabled
compatibility = file[,file...] : read features from specified files.
Only features present in *all* files will be enabled on the
resulting pool. Filenames may be absolute, or relative to
/etc/zfs/compatibility.d or /usr/share/zfs/compatibility.d (/etc
checked first).
Only affects zpool create, zpool upgrade and zpool status.
ABI changes in libzfs:
* New function "zpool_load_compat" to load and parse compat sets.
* Add "zpool_compat_status_t" typedef for compatibility parse status.
* Add ZPOOL_PROP_COMPATIBILITY to the pool properties enum
* Add ZPOOL_STATUS_COMPATIBILITY_ERR to the pool status enum
An initial set of base compatibility sets are included in
cmd/zpool/compatibility.d, and the Makefile for cmd/zpool is
modified to install these in $pkgdatadir/compatibility.d and to
create symbolic links to a reasonable set of aliases.
Reviewed-by: ericloewe
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Richard Laager <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Colm Buckley <[email protected]>
Closes #11468
Diffstat (limited to 'man/man8/zpool-create.8')
-rw-r--r-- | man/man8/zpool-create.8 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/man/man8/zpool-create.8 b/man/man8/zpool-create.8 index 7406a493e..fe35ab8db 100644 --- a/man/man8/zpool-create.8 +++ b/man/man8/zpool-create.8 @@ -26,6 +26,7 @@ .\" Copyright (c) 2018 George Melikov. All Rights Reserved. .\" Copyright 2017 Nexenta Systems, Inc. .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. +.\" Copyright (c) 2021, Colm Buckley <[email protected]> .\" .Dd August 9, 2019 .Dt ZPOOL-CREATE 8 @@ -40,6 +41,7 @@ .Op Fl m Ar mountpoint .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ... .Oo Fl o Ar feature@feature Ns = Ns Ar value Oc +.Op Fl o Ar compatibility Ns = Ns Ar off | legacy | file Bq , Ns Ar file Ns ... .Oo Fl O Ar file-system-property Ns = Ns Ar value Oc Ns ... .Op Fl R Ar root .Ar pool vdev Ns ... @@ -52,6 +54,7 @@ .Op Fl m Ar mountpoint .Oo Fl o Ar property Ns = Ns Ar value Oc Ns ... .Oo Fl o Ar feature@feature Ns = Ns Ar value Oc Ns ... +.Op Fl o Ar compatibility Ns = Ns Ar off | legacy | file Bq , Ns Ar file Ns ... .Oo Fl O Ar file-system-property Ns = Ns Ar value Oc Ns ... .Op Fl R Ar root .Op Fl t Ar tname @@ -135,9 +138,14 @@ This can be overridden with the .Fl m option. .Pp -By default all supported features are enabled on the new pool unless the +By default all supported features are enabled on the new pool. The .Fl d -option is specified. +option or the +.Fl o Ar compatibility +property (eg: +.Fl o Ar compatibility=2020 +) can be used to restrict the features that are enabled, so that the +pool can be imported on other releases of the ZFS software. .Bl -tag -width Ds .It Fl d Do not enable any features on the new pool. @@ -179,6 +187,10 @@ Sets the given pool properties. See the .Xr zpoolprops manual page for a list of valid properties that can be set. +.It Fl o Ar compatibility Ns = Ns Ar off | legacy | file Bq , Ns Ar file Ns ... +Specifies compatibility feature sets. See +.Xr zpool-features 5 +for more information about compatibility feature sets. .It Fl o Ar feature@feature Ns = Ns Ar value Sets the given pool feature. See the .Xr zpool-features 5 |