1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-09-05 01:44:20 +03:00

tests: skip test for non dirty cache

Seems some cache LV can't be made dirty easily with older
cache policy implementations....
This commit is contained in:
Zdenek Kabelac
2017-07-14 00:42:40 +02:00
parent e682af7878
commit 8a2448a4ed

View File

@@ -40,7 +40,12 @@ done
# Delay dev to ensure we have some time to 'capture' interrupt in flush
aux delay_dev "$dev1" 100 0 "$(get first_extent_sector "$dev1"):"
lvdisplay --maps $vg
# TODO, how to make writeback cache dirty
test "$(get lv_field $vg/$lv1 cache_dirty_blocks)" -gt 0 || {
lvdisplay --maps $vg
skip "Cannot make a dirty writeback cache LV."
}
sync
dd if=/dev/zero of="$DM_DEV_DIR/$vg/$lv1" bs=4k count=100 conv=fdatasync