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

Add lv_get_property() internal lvm function.

This commit is contained in:
Dave Wysochanski 2010-10-21 18:51:16 +00:00
parent 60fc088d70
commit 12873010e5
2 changed files with 8 additions and 0 deletions

View File

@ -267,6 +267,12 @@ static int _get_property(const void *obj, struct lvm_property_type *prop,
return 1; 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, int vg_get_property(const struct volume_group *vg,
struct lvm_property_type *prop) struct lvm_property_type *prop)
{ {

View File

@ -32,6 +32,8 @@ struct lvm_property_type {
int (*set) (void *obj, struct lvm_property_type *prop); 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, int vg_get_property(const struct volume_group *vg,
struct lvm_property_type *prop); struct lvm_property_type *prop);
int pv_get_property(const struct physical_volume *pv, int pv_get_property(const struct physical_volume *pv,