mirror_zfs/lib/libzfs
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
..
os Return finer grain errors in libzfs unmount_one 2021-03-08 08:46:45 -08:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libzfs_changelist.c Add 'zfs rename -u' to rename without remounting 2020-09-01 16:14:16 -07:00
libzfs_config.c Use zfs_ioctl with zfs_cmd_t in libzfs 2019-10-23 17:29:43 -07:00
libzfs_crypto.c Don't bomb out when using keylocation=file:// 2021-03-03 08:28:49 -08:00
libzfs_dataset.c Removed duplicated includes 2021-03-22 12:34:58 -07:00
libzfs_diff.c Don't open zfs control device exclusively 2020-02-28 14:54:14 -08:00
libzfs_import.c zpool: speed up importing large pools (#11469) 2021-01-21 12:55:54 -08:00
libzfs_iter.c Mark functions as static 2020-06-18 12:20:38 -07:00
libzfs_mount.c Return finer grain errors in libzfs unmount_one 2021-03-08 08:46:45 -08:00
libzfs_pool.c When specifying raidz vdev name, parity count should match 2021-03-26 11:12:22 -07:00
libzfs_sendrecv.c Removed duplicated includes 2021-03-22 12:34:58 -07:00
libzfs_status.c Add missing checks for unsupported features 2021-02-27 17:16:02 -08:00
libzfs_util.c Update references to nonexistent man pages in code 2020-10-30 08:55:59 -07:00
libzfs.abi Add "compatibility" property for zpool feature sets 2021-02-17 21:30:45 -08:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00