mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Thin read percent info from layered device
Since we only need layered device - check for tpool device presence, so user doesn't need to activate thin pool explicitely for percent info.
This commit is contained in:
parent
e8905d9816
commit
ca12090800
@ -919,7 +919,7 @@ static int _dtpercent_disp(int metadata, struct dm_report *rh,
|
||||
char *repstr;
|
||||
|
||||
/* Suppress data percent if not thin pool/volume or not using driver */
|
||||
if (!lv_info(lv->vg->cmd, lv, 0, &info, 0, 0) || !info.exists) {
|
||||
if (!lv_info(lv->vg->cmd, lv, 1, &info, 0, 0) || !info.exists) {
|
||||
dm_report_field_set_value(field, "", NULL);
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user