summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/clvm.h
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-05-19 10:38:58 +0000
committerMilan Broz <mbroz@redhat.com>2009-05-19 10:38:58 +0000
commitfa6dca9f28c2434905687c53122361d7cecf7f63 (patch)
treeb891b2a08f352cf3d476a55e6375909013443f37 /daemons/clvmd/clvm.h
parent8dd0ae923b627fe04da2b431605740cff1dca8b1 (diff)
downloadlvm2-fa6dca9f28c2434905687c53122361d7cecf7f63.tar.gz
lvm2-fa6dca9f28c2434905687c53122361d7cecf7f63.tar.xz
lvm2-fa6dca9f28c2434905687c53122361d7cecf7f63.zip
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.)
Diffstat (limited to 'daemons/clvmd/clvm.h')
-rw-r--r--daemons/clvmd/clvm.h1
1 files changed, 1 insertions, 0 deletions
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