2
* Copyright 2004-2012 Red Hat, Inc.
4
* This copyrighted material is made available to anyone wishing to use,
5
* modify, copy, or redistribute it subject to the terms and conditions
6
* of the GNU General Public License v2 or (at your option) any later version.
9
#ifndef __DLM_CONTROLD_DOT_H__
10
#define __DLM_CONTROLD_DOT_H__
12
/* This defines the interface between dlm_controld and libdlmcontrol, and
13
should only be used by libdlmcontrol. */
15
#define DLMC_SOCK_PATH "dlmc_sock"
16
#define DLMC_QUERY_SOCK_PATH "dlmc_query_sock"
18
#define DLMC_MAGIC 0xD13CD13C
19
#define DLMC_VERSION 0x00010001
21
#define DLMC_CMD_DUMP_DEBUG 1
22
#define DLMC_CMD_DUMP_PLOCKS 2
23
#define DLMC_CMD_LOCKSPACE_INFO 3
24
#define DLMC_CMD_NODE_INFO 4
25
#define DLMC_CMD_LOCKSPACES 5
26
#define DLMC_CMD_LOCKSPACE_NODES 6
27
#define DLMC_CMD_FS_REGISTER 7
28
#define DLMC_CMD_FS_UNREGISTER 8
29
#define DLMC_CMD_FS_NOTIFIED 9
30
#define DLMC_CMD_DEADLOCK_CHECK 10
31
#define DLMC_CMD_DUMP_LOG_PLOCK 11
32
#define DLMC_CMD_FENCE_ACK 12
33
#define DLMC_CMD_DUMP_STATUS 13
34
#define DLMC_CMD_DUMP_CONFIG 14
42
int data; /* embedded command-specific data, for convenience */
45
char name[DLM_LOCKSPACE_LEN]; /* no terminating null space */
48
#define DLMC_STATE_MAXSTR 4096
49
#define DLMC_STATE_MAXBIN 4096
51
#define DLMC_STATE_DAEMON 1
52
#define DLMC_STATE_DAEMON_NODE 2
53
#define DLMC_STATE_STARTUP_NODE 3
56
uint32_t type; /* DLMC_STATE_ */