1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

tests: syncaction needs kernel fix

Add 'should' as we currently cannot pass this test.

FIXME:
Add properly wrapper to not use 'should' with fixed kernel.
This commit is contained in:
Zdenek Kabelac 2014-10-21 10:52:57 +02:00
parent e1dede6f6b
commit c3bb9629a8
2 changed files with 8 additions and 4 deletions

View File

@ -167,11 +167,15 @@ run_syncaction_check() {
# 'lvs' should show results
lvchange --syncaction check $vg/$lv
aux wait_for_sync $vg $lv
# FIXME: this needs kernel fix in md-raid
# currently let just this test to cause 'warning'
if ! get lv_field $vg/$lv lv_attr -a | grep '.*m.$'; then
dmsetup status | grep $vg
false
# false
fi
not check lv_field $vg/$lv raid_mismatch_count "0"
# FIXME: with fixed kernel this should not fail
# add 'wrapper' detecting kernel for this
should not check lv_field $vg/$lv raid_mismatch_count "0"
# "repair" will fix discrepancies
lvchange --syncaction repair $vg/$lv

View File

@ -37,7 +37,7 @@ lvchange -an $vg/$lv1
aux delay_dev "$dev2" 0 100
lvchange -ay $vg/$lv1
# noone has it open and target is read & running
dmsetup info -c
dmsetup info -c | grep $vg
#sleep 10 < "$DM_DEV_DIR/$vg/$lv1" &
# "check" should find discrepancies but not change them
@ -49,7 +49,7 @@ dmsetup info -c
# For now it fails with:
# device-mapper: message ioctl on failed: Device or resource busy
#
lvchange --syncaction check $vg/$lv1
should lvchange --syncaction check $vg/$lv1
aux enable_dev "$dev2"
lvs -o+raid_mismatch_count -a $vg