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:
parent
60fc088d70
commit
12873010e5
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user