diff --git a/daemons/clvmd/lvm-functions.c b/daemons/clvmd/lvm-functions.c index 4ebd059d5..dafffcc40 100644 --- a/daemons/clvmd/lvm-functions.c +++ b/daemons/clvmd/lvm-functions.c @@ -136,7 +136,7 @@ static const char *decode_flags(unsigned char flags) flags & LCK_DMEVENTD_MONITOR_MODE ? "DMEVENTD_MONITOR|" : "", flags & LCK_ORIGIN_ONLY_MODE ? "ORIGIN_ONLY|" : "", flags & LCK_TEST_MODE ? "TEST|" : "", - flags & LCK_CONVERT ? "CONVERT|" : "", + flags & LCK_CONVERT_MODE ? "CONVERT|" : "", flags & LCK_DMEVENTD_MONITOR_IGNORE ? "DMEVENTD_MONITOR_IGNORE|" : "", flags & LCK_REVERT_MODE ? "REVERT|" : ""); @@ -375,7 +375,7 @@ static int do_activate_lv(char *resource, unsigned char command, unsigned char l * of exclusive lock to shared one during activation. */ if (!test_mode() && command & LCK_CLUSTER_VG) { - status = hold_lock(resource, mode, LCKF_NOQUEUE | (lock_flags & LCK_CONVERT ? LCKF_CONVERT:0)); + status = hold_lock(resource, mode, LCKF_NOQUEUE | ((lock_flags & LCK_CONVERT_MODE) ? LCKF_CONVERT:0)); if (status) { /* Return an LVM-sensible error for this. * Forcing EIO makes the upper level return this text diff --git a/lib/locking/locking.h b/lib/locking/locking.h index c1affb41d..644e07c9c 100644 --- a/lib/locking/locking.h +++ b/lib/locking/locking.h @@ -114,7 +114,7 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname); #define LCK_DMEVENTD_MONITOR_MODE 0x04 /* Register with dmeventd */ /* Not yet used. */ -#define LCK_CONVERT 0x08 /* Convert existing lock */ +#define LCK_CONVERT_MODE 0x08 /* Convert existing lock */ #define LCK_TEST_MODE 0x10 /* Test mode: No activation */ #define LCK_ORIGIN_ONLY_MODE 0x20 /* Same as above */