From 12873010e52234cd213ed3d3f3218f3222b15aac Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Thu, 21 Oct 2010 18:51:16 +0000 Subject: [PATCH] Add lv_get_property() internal lvm function. --- lib/report/properties.c | 6 ++++++ lib/report/properties.h | 2 ++ 2 files changed, 8 insertions(+) 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, -- 2.43.5