mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: wait till fs is synchronized
Adding full filesystem sync, trying to fight with strange error from losetup: losetup: loopa: failed to set up loop device: Resource temporarily unavailable loop0: detected capacity change from 0 to 4096 loop_set_block_size: loop0 () has still dirty pages (nrpages=13) Also reuse internal aux wipefs_a
This commit is contained in:
parent
78406ef617
commit
800a93d4ac
@ -16,10 +16,10 @@ SKIP_WITH_LVMPOLLD=1
|
||||
|
||||
losetup -h | grep sector-size || skip
|
||||
which fallocate || skip
|
||||
which wipefs || skip
|
||||
|
||||
fallocate -l 2M loopa
|
||||
fallocate -l 2M loopb
|
||||
sync
|
||||
LOOP1=$(losetup -f loopa --sector-size 4096 --show)
|
||||
LOOP2=$(losetup -f loopb --show)
|
||||
|
||||
@ -40,7 +40,7 @@ vgcreate --config 'devices/allow_mixed_block_sizes=1' $vg "$dev1" "$dev2"
|
||||
vgs --config 'devices/allow_mixed_block_sizes=1' $vg
|
||||
|
||||
for i in "$dev1" "$dev2" ; do
|
||||
wipefs -a "$i"
|
||||
aux wipefs_a "$i"
|
||||
# FIXME - we are not missing notification for hinting
|
||||
# likely in more places - as the test should be able to work without
|
||||
# system's udev working only on real /dev dir.
|
||||
|
Loading…
Reference in New Issue
Block a user