1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: aux detecs supported segments

Replace previous compilation detection of present supported segtypes
with runtime check.
This commit is contained in:
Zdenek Kabelac 2018-05-12 22:50:36 +02:00
parent 35ffc3f8eb
commit 7b8b13c62b

View File

@ -1516,6 +1516,10 @@ driver_at_least() {
}
have_thin() {
lvm segtypes 2>/dev/null | grep -q thin$ || {
echo "Thin is not built-in." >&2
return 1
}
target_at_least dm-thin-pool "$@"
declare -a CONF=()
@ -1556,6 +1560,10 @@ have_raid4 () {
}
have_cache() {
lvm segtypes 2>/dev/null | grep -q cache$ || {
echo "Cache is not built-in." >&2
return 1
}
target_at_least dm-cache "$@"
declare -a CONF=()