1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2013-07-18 16:17:23 +02:00
parent e8fc77bd6d
commit b5dfe4bec2

View File

@ -689,6 +689,12 @@ typedef enum activation_change {
CHANGE_AAY = 5 /* automatic activation */
} 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! */
struct lvcreate_params {
/* flags */