]> sourceware.org Git - lvm2.git/commitdiff
tests: have_cache function checks for cache-pool
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 11 Sep 2020 09:59:55 +0000 (11:59 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 11 Sep 2020 19:52:55 +0000 (21:52 +0200)
Check for cache-pool segment as plain cache can match writecache.

test/lib/aux.sh

index 1418bb4733e481b7f2b0462e0bd7ef243a94991f..364b80a5c8742ffa94e95fbaf91100298908f96e 100644 (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
        }
This page took 0.041254 seconds and 5 git commands to generate.