1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-25 13:49:28 +03:00

tests: have_cache function checks for cache-pool

Check for cache-pool segment as plain cache can match writecache.
This commit is contained in:
Zdenek Kabelac
2020-09-11 11:59:55 +02:00
parent 77fdc17d70
commit f233d9a909

View File

@ -1625,7 +1625,7 @@ have_raid4 () {
}
have_cache() {
lvm segtypes 2>/dev/null | grep cache$ >/dev/null || {
lvm segtypes 2>/dev/null | grep ' cache-pool$' >/dev/null || {
echo "Cache is not built-in." >&2
return 1
}