1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: skip raid test on 3.12.0

3.12.0 kernel prevents raid test to be usable,
leaving unremovable devices in table.

This needs to be fixed ASAP, meanwhile disable test to make
test machines at least usable.
This commit is contained in:
Zdenek Kabelac 2013-11-19 11:47:28 +01:00
parent fe609141a8
commit b0b061cdbc
2 changed files with 7 additions and 4 deletions

View File

@ -689,6 +689,12 @@ target_at_least()
dm-*) modprobe "$1" || true ;; dm-*) modprobe "$1" || true ;;
esac esac
if test "$1" = dm-raid; then
case "$(uname -r)" in
3.12.0*) return 1 ;;
esac
fi
local version=$(dmsetup targets 2>/dev/null | grep "${1##dm-} " 2>/dev/null) local version=$(dmsetup targets 2>/dev/null | grep "${1##dm-} " 2>/dev/null)
version=${version##* v} version=${version##* v}
shift shift

View File

@ -22,10 +22,7 @@ get_image_pvs() {
######################################################## ########################################################
# MAIN # MAIN
######################################################## ########################################################
if ! aux target_at_least dm-raid 1 2 0; then aux target_at_least dm-raid 1 2 0 || skip
dmsetup targets | grep raid
skip
fi
# 9 PVs needed for RAID10 testing (3-stripes/2-mirror - replacing 3 devs) # 9 PVs needed for RAID10 testing (3-stripes/2-mirror - replacing 3 devs)
aux prepare_pvs 9 80 aux prepare_pvs 9 80