]> sourceware.org Git - lvm2.git/commitdiff
If unable to obtain snapshot percentage leave value blank on reports.
authorAlasdair Kergon <agk@redhat.com>
Thu, 20 May 2010 22:24:33 +0000 (22:24 +0000)
committerAlasdair Kergon <agk@redhat.com>
Thu, 20 May 2010 22:24:33 +0000 (22:24 +0000)
WHATS_NEW
lib/report/report.c

index 56bbe5f16c19489dd43cbfbece9a3363309e0558..6a3c89431fc0513091c476f71cd317e8517cb36d 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.66 - 
 ===============================
+  If unable to obtain snapshot percentage leave value blank on reports.
   Add install_system_dirs and install_initscripts makefile targets.
   Add configure options for system and locking directories.
   Generate example.conf so default lvm.conf contents can be configured.
index 49d28b79aeed8be18a220cb17b5d1bdea0b6969a..063db07396813a57b054ab9ab17e62df37a10522 100644 (file)
@@ -1019,7 +1019,7 @@ static int _snpercent_disp(struct dm_report *rh __attribute((unused)), struct dm
        }
 
        if ((!lv_is_cow(lv) && !lv_is_merging_origin(lv)) ||
-           (lv_info(lv->vg->cmd, lv, &info, 0, 0) && !info.exists)) {
+           !lv_info(lv->vg->cmd, lv, &info, 0, 0) || !info.exists) {
                *sortval = UINT64_C(0);
                dm_report_field_set_value(field, "", sortval);
                return 1;
This page took 0.047963 seconds and 5 git commands to generate.