diff --git a/lib/report/properties.c b/lib/report/properties.c index 8f9272c2f..c08ddfdb4 100644 --- a/lib/report/properties.c +++ b/lib/report/properties.c @@ -267,6 +267,12 @@ static int _get_property(const void *obj, struct lvm_property_type *prop, return 1; } +int lv_get_property(const struct logical_volume *lv, + struct lvm_property_type *prop) +{ + return _get_property(lv, prop, LVS); +} + int vg_get_property(const struct volume_group *vg, struct lvm_property_type *prop) { diff --git a/lib/report/properties.h b/lib/report/properties.h index db4ae516f..18e5ab90c 100644 --- a/lib/report/properties.h +++ b/lib/report/properties.h @@ -32,6 +32,8 @@ struct lvm_property_type { int (*set) (void *obj, struct lvm_property_type *prop); }; +int lv_get_property(const struct logical_volume *lv, + struct lvm_property_type *prop); int vg_get_property(const struct volume_group *vg, struct lvm_property_type *prop); int pv_get_property(const struct physical_volume *pv,