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

tests: aux have_writecache

function was never defined, causing writecache.sh to be skipped
This commit is contained in:
David Teigland 2019-06-13 11:36:18 -05:00
parent 7eaa3adedf
commit 208a09745d

View File

@ -1478,6 +1478,14 @@ have_vdo() {
target_at_least dm-vdo "$@"
}
have_writecache() {
lvm segtypes 2>/dev/null | grep -q writecache$ || {
echo "writecache is not built-in." >&2
return 1
}
target_at_least dm-writecache "$@"
}
have_raid() {
target_at_least dm-raid "$@"