From fa6dca9f28c2434905687c53122361d7cecf7f63 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Tue, 19 May 2009 10:38:58 +0000 Subject: Add infrastructure for queriying for remote locks. Current code, when need to ensure that volume is not active on remote node, it need to try to exclusive activate volume. Patch adds simple clvmd command which queries all nodes for lock for given resource. The lock type is returned in reply in text. (But code currently uses CR and EX modes only.) --- daemons/clvmd/clvm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'daemons/clvmd/clvm.h') diff --git a/daemons/clvmd/clvm.h b/daemons/clvmd/clvm.h index 481d644a..04ab2835 100644 --- a/daemons/clvmd/clvm.h +++ b/daemons/clvmd/clvm.h @@ -62,6 +62,7 @@ static const char CLVMD_SOCKNAME[] = "\0clvmd"; /* Lock/Unlock commands */ #define CLVMD_CMD_LOCK_LV 50 #define CLVMD_CMD_LOCK_VG 51 +#define CLVMD_CMD_LOCK_QUERY 52 /* Misc functions */ #define CLVMD_CMD_REFRESH 40 -- cgit