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:
parent
b50134dc14
commit
d2bdad28d1
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user