mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: use conv=fdatasync
When we only need wait for result - avoid using slow 'oflag=sync' with virtual layers
This commit is contained in:
parent
9f39977344
commit
6990cbc166
@ -53,10 +53,10 @@ trap 'cleanup_mounted_and_teardown' EXIT
|
||||
#truncate -s 64M loopc
|
||||
#truncate -s 64M loopd
|
||||
|
||||
dd if=/dev/zero of=loopa bs=1M count=64 oflag=sync
|
||||
dd if=/dev/zero of=loopb bs=1M count=64 oflag=sync
|
||||
dd if=/dev/zero of=loopc bs=1M count=64 oflag=sync
|
||||
dd if=/dev/zero of=loopd bs=1M count=64 oflag=sync
|
||||
dd if=/dev/zero of=loopa bs=1M count=64 conv=fdatasync
|
||||
dd if=/dev/zero of=loopb bs=1M count=64 conv=fdatasync
|
||||
dd if=/dev/zero of=loopc bs=1M count=64 conv=fdatasync
|
||||
dd if=/dev/zero of=loopd bs=1M count=64 conv=fdatasync
|
||||
|
||||
LOOP1=$(losetup -f loopa --show) || skip "Cannot find free loop device"
|
||||
LOOP2=$(losetup -f loopb --show) || skip "Cannot find free loop device"
|
||||
|
@ -130,10 +130,10 @@ _add_new_data_to_mnt
|
||||
_add_more_data_to_mnt
|
||||
_verify_data_on_mnt
|
||||
|
||||
dd if=/dev/zero of=$mnt/big1 bs=1M count=100 oflag=sync
|
||||
dd if=/dev/zero of=$mnt/big2 bs=1M count=100 oflag=sync
|
||||
dd if=/dev/zero of=$mnt/big3 bs=1M count=100 oflag=sync
|
||||
dd if=/dev/zero of=$mnt/big4 bs=1M count=100 oflag=sync
|
||||
dd if=/dev/zero of=$mnt/big1 bs=1M count=100 conv=fdatasync
|
||||
dd if=/dev/zero of=$mnt/big2 bs=1M count=100 conv=fdatasync
|
||||
dd if=/dev/zero of=$mnt/big3 bs=1M count=100 conv=fdatasync
|
||||
dd if=/dev/zero of=$mnt/big4 bs=1M count=100 conv=fdatasync
|
||||
|
||||
lvconvert --splitcache $vg/$lv1
|
||||
check lv_field $vg/$lv1 segtype linear
|
||||
@ -159,7 +159,7 @@ lvconvert --yes --type writecache --cachevol $lv2 $vg/$lv1
|
||||
|
||||
_add_new_data_to_mnt
|
||||
_add_more_data_to_mnt
|
||||
dd if=/dev/zero of=$mnt/big1 bs=1M count=100 oflag=sync
|
||||
dd if=/dev/zero of=$mnt/big1 bs=1M count=100 conv=fdatasync
|
||||
|
||||
umount $mnt
|
||||
lvchange -an $vg/$lv1
|
||||
|
Loading…
Reference in New Issue
Block a user