zfs: fix the zfsd_autoreplace_003_pos test

The test declared that it only needed 5 disks, but actually tried to use 6.
Fix it to use just 5, which is all it really needs.

MFC after:	2 weeks
Sponsored by:	Axcient
This commit is contained in:
Alan Somers 2019-10-08 15:33:11 +00:00
parent b0fd461524
commit dca76f293a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353309

View file

@ -78,11 +78,11 @@ function verify_assertion
typeset PHYSPATH="some_physical_path"
typeset REMOVAL_DISK=$DISK0
typeset REMOVAL_NOP=${DISK0}.nop
typeset NEW_DISK=$DISK4
typeset NEW_NOP=${DISK4}.nop
typeset SPARE_DISK=${DISK5}
typeset SPARE_NOP=${DISK5}.nop
typeset OTHER_DISKS="${DISK1} ${DISK2} ${DISK3}"
typeset NEW_DISK=$DISK3
typeset NEW_NOP=${DISK3}.nop
typeset SPARE_DISK=${DISK4}
typeset SPARE_NOP=${DISK4}.nop
typeset OTHER_DISKS="${DISK1} ${DISK2}"
typeset OTHER_NOPS=${OTHER_DISKS//~(E)([[:space:]]+|$)/.nop\1}
set -A MY_KEYWORDS "mirror" "raidz1" "raidz2"
ensure_zfsd_running