diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2020-09-11 11:59:55 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2020-09-11 21:52:55 +0200 |
commit | f233d9a909a233c5147065bb5b17a2693622b281 (patch) | |
tree | a39fe34ef75854cb0503e31bb820217eda9b4bfa | |
parent | 77fdc17d70e62cab75efaaf0dad02493b948610d (diff) | |
download | lvm2-f233d9a909a233c5147065bb5b17a2693622b281.tar.gz |
tests: have_cache function checks for cache-pool
Check for cache-pool segment as plain cache can match writecache.
-rw-r--r-- | test/lib/aux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 1418bb473..364b80a5c 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -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 } |