thin: fix test for nonexisting status
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 18 Feb 2016 17:09:49 +0000 (18:09 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 18 Feb 2016 17:11:29 +0000 (18:11 +0100)
Check status has right type.

lib/report/report.c

index b96dcfcdce297f8d580f77e202354629628e2064..ed6202c2e73e5c429f864f5babaf267b27ed3124 100644 (file)
@@ -3317,7 +3317,7 @@ static int _lvcheckneeded_disp(struct dm_report *rh, struct dm_pool *mem,
 {
        const struct lv_with_info_and_seg_status *lvdm = (const struct lv_with_info_and_seg_status *) data;
 
-       if (lv_is_thin_pool(lvdm->lv))
+       if (lv_is_thin_pool(lvdm->lv) && lvdm->seg_status.type == SEG_STATUS_THIN_POOL)
                return _binary_disp(rh, mem, field, lvdm->seg_status.thin_pool->needs_check,
                                    GET_FIRST_RESERVED_NAME(lv_check_needed_y), private);
 
This page took 0.0415 seconds and 5 git commands to generate.