]> sourceware.org Git - lvm2.git/commitdiff
When there is merging snapshot, report percentage on the origin LV.
authorMike Snitzer <snitzer@redhat.com>
Wed, 13 Jan 2010 01:49:22 +0000 (01:49 +0000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 13 Jan 2010 01:49:22 +0000 (01:49 +0000)
Because the snapshot LV will be hidden this is needed so the user can
see merging progress with "lvs" command.

lib/report/report.c

index b2e32dbbeb2bcbc00e75c3b2095f38dd9b4deba0..221c8dee629323919fd93539f2bcc2aa9e1f6067 100644 (file)
@@ -1023,7 +1023,7 @@ static int _snpercent_disp(struct dm_report *rh __attribute((unused)), struct dm
                return 0;
        }
 
-       if (!lv_is_cow(lv) ||
+       if ((!lv_is_cow(lv) && !lv->merging_snapshot) ||
            (lv_info(lv->vg->cmd, lv, &info, 0, 0) && !info.exists)) {
                *sortval = UINT64_C(0);
                dm_report_field_set_value(field, "", sortval);
This page took 0.03401 seconds and 5 git commands to generate.