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

View File

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