]> sourceware.org Git - lvm2.git/commitdiff
Add lv_get_property() internal lvm function.
authorDave Wysochanski <dwysocha@redhat.com>
Thu, 21 Oct 2010 18:51:16 +0000 (18:51 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Thu, 21 Oct 2010 18:51:16 +0000 (18:51 +0000)
lib/report/properties.c
lib/report/properties.h

index 8f9272c2fb14cd373c21b2ace12d86002d5de551..c08ddfdb431a5f5d1b756ffbfde3376ae1a354b0 100644 (file)
@@ -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)
 {
index db4ae516f8c133f3166850dd32b869bef2ac8a56..18e5ab90c951b1ea50fe19b8e6d54eb9e17914e2 100644 (file)
@@ -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,
This page took 0.03232 seconds and 5 git commands to generate.