From ae6164cee36c5f8c3bd24f410a2620a588d12588 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Thu, 20 May 2010 22:24:33 +0000 Subject: [PATCH] If unable to obtain snapshot percentage leave value blank on reports. --- WHATS_NEW | 1 + lib/report/report.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 56bbe5f16..6a3c89431 100644 --- 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. diff --git a/lib/report/report.c b/lib/report/report.c index 49d28b79a..063db0739 100644 --- a/lib/report/report.c +++ b/lib/report/report.c @@ -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; -- 2.43.5