1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-22 06:50:52 +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 ee5f8f12bf
commit f1329d4511
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;
}
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)
{

View 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,