mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-18 06:03:42 +03:00
test: lower the # of mpath devices to 16
to make the test suitable for slower machines. (cherry picked from commit 1678bd2f81096b3b2b7c09f335e9c5cc8da96dca)
This commit is contained in:
parent
d17a45340b
commit
fd082f335e
@ -287,8 +287,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"
|
||||
|
@ -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")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user