mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix data% reporting
For reading % of mapped size of thin volume use as origin for old style snapshot '-real' device needs to be queried. Fix log_error report given for lvs -a in this case.
This commit is contained in:
parent
400dede7a6
commit
15fd61e492
@ -1,5 +1,6 @@
|
||||
Version 2.02.90 -
|
||||
===================================
|
||||
Fix data% report for thin volume used as origin for non-thin snapshot.
|
||||
|
||||
Version 2.02.89 - 26th January 2012
|
||||
===================================
|
||||
|
@ -953,12 +953,13 @@ int dev_manager_thin_percent(struct dev_manager *dm,
|
||||
{
|
||||
char *name;
|
||||
const char *dlid;
|
||||
const char *layer = lv_is_origin(lv) ? "real" : NULL;
|
||||
|
||||
/* Build a name for the top layer */
|
||||
if (!(name = dm_build_dm_name(dm->mem, lv->vg->name, lv->name, NULL)))
|
||||
if (!(name = dm_build_dm_name(dm->mem, lv->vg->name, lv->name, layer)))
|
||||
return_0;
|
||||
|
||||
if (!(dlid = build_dm_uuid(dm->mem, lv->lvid.s, NULL)))
|
||||
if (!(dlid = build_dm_uuid(dm->mem, lv->lvid.s, layer)))
|
||||
return_0;
|
||||
|
||||
log_debug("Getting device status percentage for %s", name);
|
||||
|
Loading…
Reference in New Issue
Block a user