mirror_zfs/cmd/zpool
Stéphane Lesimple 4fc1ea9c6c
zpool: fix redundancy check after vdev removal
The presence of indirect vdevs was confusing get_redundancy(), which
considered a pool with e.g. only mirror top-level vdevs and at least
one indirect vdev (due to the removal of a previous vdev) as already
having a broken redundancy, which is not the case. This lead to the
possibility of compromising the redundancy of a pool by adding
mismatched vdevs without requiring the use of `-f`, and with no
visible notice or warning.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Stéphane Lesimple <speed47_github@speed47.net>
Closes #13705
Closes #13711
2022-08-04 17:02:57 -07:00
..
compatibility.d Add compatibility file sets (ZoL 0.6.1, 0.6.4, OpenZFS 2.1) 2021-03-31 09:40:25 -07:00
os Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool.d Workaround broken VDEV_UPATH 2022-05-10 10:14:07 -07:00
Makefile.am Replace EXTRA_DIST with dist_noinst_DATA 2022-05-26 09:24:50 -07:00
zpool_iter.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_main.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_util.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_util.h Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_vdev.c zpool: fix redundancy check after vdev removal 2022-08-04 17:02:57 -07:00