mirror_zfs/tests/runfiles
Tony Hutter f40ab9e399
Fix double spares for failed vdev
It's possible for two spares to get attached to a single failed vdev.
This happens when you have a failed disk that is spared, and then you
replace the failed disk with a new disk, but during the resilver
the new disk fails, and ZED kicks in a spare for the failed new
disk.  This commit checks for that condition and disallows it.

Reviewed-by: Akash B <akash-b@hpe.com>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes: #16547
Closes: #17231
2025-05-02 09:03:11 -07:00
..
bclone.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
common.run Handle interaction between gang blocks, copies, and FDT. 2025-04-21 11:26:30 -04:00
freebsd.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
linux.run Fix double spares for failed vdev 2025-05-02 09:03:11 -07:00
longevity.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
perf-regression.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
sanity.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
sunos.run SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00