mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
zpool: allow sharing of spare device among pools
ZFS allows, by default, sharing of spare devices among different pools; this commit simply restores this functionality for disk devices and adds an additional tests case to the ZFS Test Suite to prevent future regression. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #7999
This commit is contained in:
@@ -3190,6 +3190,7 @@ function wait_scrubbed
|
||||
{
|
||||
typeset pool=${1:-$TESTPOOL}
|
||||
typeset iter=${2:-10}
|
||||
typeset -i i=0
|
||||
for i in {1..$iter} ; do
|
||||
if is_pool_scrubbed $pool ; then
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user