mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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 -
|
Version 2.02.90 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix data% report for thin volume used as origin for non-thin snapshot.
|
||||||
|
|
||||||
Version 2.02.89 - 26th January 2012
|
Version 2.02.89 - 26th January 2012
|
||||||
===================================
|
===================================
|
||||||
|
@ -953,12 +953,13 @@ int dev_manager_thin_percent(struct dev_manager *dm,
|
|||||||
{
|
{
|
||||||
char *name;
|
char *name;
|
||||||
const char *dlid;
|
const char *dlid;
|
||||||
|
const char *layer = lv_is_origin(lv) ? "real" : NULL;
|
||||||
|
|
||||||
/* Build a name for the top layer */
|
/* 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;
|
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;
|
return_0;
|
||||||
|
|
||||||
log_debug("Getting device status percentage for %s", name);
|
log_debug("Getting device status percentage for %s", name);
|
||||||
|
Loading…
Reference in New Issue
Block a user