1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

properties: also recognize LVSINFO, LVSSTATUS and LVSINFOSTATUS as subtypes of LVS

LVSINFO, LVSSTATUS and LVSINFOSTATUS is the same as LVS, just with some
extra info/status decoration attached to it. Recognize this when looking
for properties for lvm2app. This fixes lvm_lv_get_property lvm2app call
for fields which already use LVS{INFO,STATUS,INFOSTATUS} - currently,
this is lv_attr field which was converted to LVSINFOSTATUS from
pure LVS type.
This commit is contained in:
Peter Rajnoha 2015-01-30 11:13:49 +01:00
parent 531cc58d89
commit 8650404df1

View File

@ -476,7 +476,7 @@ int lvseg_get_property(const struct lv_segment *lvseg,
int lv_get_property(const struct logical_volume *lv,
struct lvm_property_type *prop)
{
return prop_get_property(_properties, lv, prop, LVS);
return prop_get_property(_properties, lv, prop, LVS | LVSINFO | LVSSTATUS | LVSINFOSTATUS);
}
int vg_get_property(const struct volume_group *vg,
@ -500,7 +500,7 @@ int pv_get_property(const struct physical_volume *pv,
int lv_set_property(struct logical_volume *lv,
struct lvm_property_type *prop)
{
return prop_set_property(_properties, lv, prop, LVS);
return prop_set_property(_properties, lv, prop, LVS | LVSINFO | LVSSTATUS | LVSINFOSTATUS);
}
int vg_set_property(struct volume_group *vg,