1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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 ;;
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)
version=${version##* v}
shift

View File

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