]> granicus.if.org Git - zfs/commit
Fix 'zpool create|add' replication level check
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 4 Dec 2017 19:50:35 +0000 (11:50 -0800)
committerTony Hutter <hutter2@llnl.gov>
Tue, 5 Dec 2017 01:21:39 +0000 (17:21 -0800)
commitddd20dbe0bc3121247be66e4be5ea6b91253f485
tree222f410d3cb3cb50d5e2ee6e859bd20d379d1a91
parent4a98780933fd0510b00a560f6e4e1e4fa79a50ac
Fix 'zpool create|add' replication level check

When the pool configuration contains a hole due to a previous device
removal ignore this top level vdev.  Failure to do so will result in
the current configuration being assessed to have a non-uniform
replication level and the expected warning will be disabled.

The zpool_add_010_pos test case was extended to cover this scenario.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6907
Closes #6911
cmd/zpool/zpool_vdev.c
tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_010_pos.ksh