[lvm-devel] [PATCH 02/10] Get rid of hardcoded 0xffdf cluster lock flag.

Milan Broz mbroz at redhat.com
Tue Dec 8 15:39:05 UTC 2009


There is hidded change - the upper flags (0xffff0000)
and now not cleared, but there are unused anyway.

Signed-off-by: Milan Broz <mbroz at redhat.com>
---
 lib/locking/cluster_locking.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/locking/cluster_locking.c b/lib/locking/cluster_locking.c
index eb09241..b031f12 100644
--- a/lib/locking/cluster_locking.c
+++ b/lib/locking/cluster_locking.c
@@ -415,7 +415,7 @@ int lock_resource(struct cmd_context *cmd, const char *resource, uint32_t flags)
 		clvmd_cmd = CLVMD_CMD_LOCK_LV;
 		strcpy(lockname, resource);
 		lock_scope = "LV";
-		flags &= 0xffdf;	/* Mask off HOLD flag */
+		flags &= ~LCK_HOLD;	/* Mask off HOLD flag */
 		break;
 
 	default:
-- 
1.6.5.4




More information about the lvm-devel mailing list