mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +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:
parent
77fdc17d70
commit
f233d9a909
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user