mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
test: lower the # of mpath devices to 16
to make the test suitable for slower machines.
This commit is contained in:
parent
bf2cc3865a
commit
1678bd2f81
@ -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"
|
||||
|
@ -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…
Reference in New Issue
Block a user