]> sourceware.org Git - lvm2.git/commitdiff
cache: report for succesful status
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Oct 2019 11:31:36 +0000 (13:31 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 4 Oct 2019 15:31:55 +0000 (17:31 +0200)
lib/display/display.c

index 055fc69ba2627de2ce8aa55d75508de5197c7821..913bced34eed1f35c24973ae1fab3cc275d7f069 100644 (file)
@@ -522,10 +522,10 @@ int lvdisplay_full(struct cmd_context *cmd,
                        log_print("LV origin of Cache LV  %s", seg->lv->name);
        } else if (lv_is_cache(lv)) {
                seg = first_seg(lv);
-               if (inkernel && !lv_cache_status(lv, &cache_status))
-                        return_0;
-               log_print("LV Cache pool name     %s", seg->pool_lv->name);
-               log_print("LV Cache origin name   %s", seg_lv(seg, 0)->name);
+               if (inkernel && lv_cache_status(lv, &cache_status)) {
+                       log_print("LV Cache pool name     %s", seg->pool_lv->name);
+                       log_print("LV Cache origin name   %s", seg_lv(seg, 0)->name);
+               }
        } else if (lv_is_cache_pool(lv)) {
                seg = first_seg(lv);
                log_print("LV Pool metadata       %s", seg->metadata_lv->name);
This page took 0.036681 seconds and 5 git commands to generate.