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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user