HomeFreeBSD

Fix 'zpool create|add' replication level check

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 4 2017, 7:50 PM
GitHub <noreply@github.com>Committed on Dec 4 2017, 7:50 PM
Parents
rG72841b9fd957: Preserve itx alloc size for zio_data_buf_free()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGea39f75f64ff: Fix 'zpool create|add' replication level check (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 4 2017, 7:50 PM