mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
metadata: add is_change_activating
Add simple inline function to check, whether the change is activating. (better then macro since we get type checking).
This commit is contained in:
parent
e8fc77bd6d
commit
b5dfe4bec2
@ -689,6 +689,12 @@ typedef enum activation_change {
|
|||||||
CHANGE_AAY = 5 /* automatic activation */
|
CHANGE_AAY = 5 /* automatic activation */
|
||||||
} activation_change_t;
|
} activation_change_t;
|
||||||
|
|
||||||
|
/* Returns true, when change activates device */
|
||||||
|
static inline int is_change_activating(activation_change_t change)
|
||||||
|
{
|
||||||
|
return ((change != CHANGE_AN) && (change != CHANGE_ALN));
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME: refactor and reduce the size of this struct! */
|
/* FIXME: refactor and reduce the size of this struct! */
|
||||||
struct lvcreate_params {
|
struct lvcreate_params {
|
||||||
/* flags */
|
/* flags */
|
||||||
|
Loading…
Reference in New Issue
Block a user