zfs/lib
Matthew Ahrens b85f47efd0
When specifying raidz vdev name, parity count should match
When specifying the name of a RAIDZ vdev on the command line, it can be
specified as raidz-<vdevID> or raidzP-<vdevID>.
e.g. `zpool clear poolname raidz-0` or `zpool clear poolname raidz2-0`

If the parity is specified in the vdev name, it should match the actual
parity of that RAIDZ vdev, otherwise the command should fail.  This
commit makes it so.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Stuart Maybee <stuart.maybee@comcast.net>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
Closes #11742
2021-03-26 11:12:22 -07:00
..
libavl cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libefi cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libicp cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libnvpair cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libshare cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libspl Support running FreeBSD buildworld on Arm-based macOS hosts 2021-03-26 10:45:12 -07:00
libtpool cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Fix a resource leak in uu_avl_pool_destroy 2021-01-26 19:39:28 -08:00
libzfs When specifying raidz vdev name, parity count should match 2021-03-26 11:12:22 -07:00
libzfs_core cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzfsbootenv cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzpool libzpool: set_global_var: refactor to not modify 'arg' 2021-02-19 22:45:04 -08:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil Removed duplicated includes 2021-03-22 12:34:58 -07:00
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00