From 8650404df1884f1e040aad4343c8db0eac71e125 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 30 Jan 2015 11:13:49 +0100 Subject: [PATCH] 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. --- lib/report/properties.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/report/properties.c b/lib/report/properties.c index 886692845..c1c9563dc 100644 --- a/lib/report/properties.c +++ b/lib/report/properties.c @@ -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,