1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

If unable to obtain snapshot percentage leave value blank on reports.

This commit is contained in:
Alasdair Kergon 2010-05-20 22:24:33 +00:00
parent 89cb3a410a
commit eedf87f891
2 changed files with 2 additions and 1 deletions

View File

@ -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.

View 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;