test: lower the # of mpath devices to 16

to make the test suitable for slower machines.
This commit is contained in:
Frantisek Sumsal 2022-08-25 12:57:42 +02:00
parent bf2cc3865a
commit 1678bd2f81
2 changed files with 3 additions and 3 deletions

View file

@ -286,8 +286,8 @@ EOF
mkfs.ext4 -U "deadbeef-dead-dead-beef-111111111111" -L "failover_vol" "${lodev}p2"
losetup -d "$lodev"
# Add 64 multipath devices, each backed by 4 paths
for ndisk in {0..63}; do
# Add 16 multipath devices, each backed by 4 paths
for ndisk in {0..15}; do
wwn="0xDEADDEADBEEF$(printf "%.4d" "$ndisk")"
# Use a partitioned disk for the first device to test failover
[[ $ndisk -eq 0 ]] && image="$partdisk" || image="${TESTDIR:?}/disk$ndisk.img"

View file

@ -82,7 +82,7 @@ EOF
udevadm settle
ls -l /dev/disk/by-id/
for i in {0..63}; do
for i in {0..15}; do
wwid="deaddeadbeef$(printf "%.4d" "$i")"
path="/dev/disk/by-id/wwn-0x$wwid"
dmpath="$(readlink -f "$path")"