mirror of
git://sourceware.org/git/lvm2.git
synced 2026-01-21 12:32:46 +03:00
lvm2app: Add thin and thin pool lv creation
Add thin and thin pool lv creation support to lvm library
This is Mohan's thinp patch, re-worked to include suggestions
from Zdenek and Mohan.
Rework of commit 4d5de8322b
which uses refactored properties handling.
Based on work done by M. Mohan Kumar <mohan@in.ibm.com>
Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
@@ -62,6 +62,15 @@ static int _ ## NAME ## _set (void *obj, struct lvm_property_type *prop) \
|
||||
return 1; \
|
||||
}
|
||||
|
||||
#define SET_NUM_PROPERTY(NAME, VALUE, TYPE, VAR) \
|
||||
static int _ ## NAME ## _set (void *obj, struct lvm_property_type *prop) \
|
||||
{ \
|
||||
struct TYPE *VAR = (struct TYPE *)obj; \
|
||||
\
|
||||
VALUE = prop->value.integer; \
|
||||
return 1; \
|
||||
}
|
||||
|
||||
#define GET_STR_PROPERTY_FN(NAME, VALUE, TYPE, VAR) \
|
||||
static int _ ## NAME ## _get (const void *obj, struct lvm_property_type *prop) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user