1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: extend area covered by error target

Since 'BLKZEROOUT' streams out more block at once, at can easily
zero-out larger set of blocks after 1st. failing one.

So the test is adapted to fully 'hide' swap header under error target.
This commit is contained in:
Zdenek Kabelac 2020-10-06 15:45:19 +02:00
parent b50134dc14
commit d2bdad28d1

View File

@ -43,7 +43,7 @@ test_blkid_ || skip
lvremove -f $vg/$lv1 lvremove -f $vg/$lv1
# Zeroing stops the command when there is a failure (write error in this case) # Zeroing stops the command when there is a failure (write error in this case)
aux error_dev "$dev1" "$(get first_extent_sector "$dev1"):2" aux error_dev "$dev1" "$(get first_extent_sector "$dev1"):8"
not lvcreate -l1 -n $lv1 $vg 2>&1 | tee out not lvcreate -l1 -n $lv1 $vg 2>&1 | tee out
grep "Failed to initialize" out grep "Failed to initialize" out
aux enable_dev "$dev1" aux enable_dev "$dev1"