24#ifndef __PACKET_GLUSTER_H__
25#define __PACKET_GLUSTER_H__
27#define GLUSTER_PORT 24007
36#define GLUSTERD1_MGMT_PROGRAM 1298433
39#define GLUSTERFS_PROGRAM 4867634
43#define GLUSTER_DUMP_PROGRAM 123451501
46#define GLUSTER_HNDSK_PROGRAM 14398633
49#define GLUSTER_PMAP_PROGRAM 34123456
52#define GLUSTER_CBK_PROGRAM 52743234
55#define GLUSTER3_1_FOP_PROGRAM 1298437
58#define GD_MGMT_PROGRAM 1238433
61#define GD_FRIEND_PROGRAM 1238437
64#define GLUSTER_CLI_PROGRAM 1238463
67#define GD_BRICK_PROGRAM 4867634
76 GD_MGMT_CLUSTER_UNLOCK,
79 GD_MGMT_FRIEND_REMOVE,
80 GD_MGMT_FRIEND_UPDATE,
83 GD_MGMT_CLI_LIST_FRIENDS,
84 GD_MGMT_CLI_CREATE_VOLUME,
85 GD_MGMT_CLI_GET_VOLUME,
86 GD_MGMT_CLI_DELETE_VOLUME,
87 GD_MGMT_CLI_START_VOLUME,
88 GD_MGMT_CLI_STOP_VOLUME,
89 GD_MGMT_CLI_RENAME_VOLUME,
90 GD_MGMT_CLI_DEFRAG_VOLUME,
91 GD_MGMT_CLI_SET_VOLUME,
92 GD_MGMT_CLI_ADD_BRICK,
93 GD_MGMT_CLI_REMOVE_BRICK,
94 GD_MGMT_CLI_REPLACE_BRICK,
95 GD_MGMT_CLI_LOG_FILENAME,
96 GD_MGMT_CLI_LOG_LOCATE,
97 GD_MGMT_CLI_LOG_ROTATE,
98 GD_MGMT_CLI_SYNC_VOLUME,
99 GD_MGMT_CLI_RESET_VOLUME,
101 GD_MGMT_CLI_GSYNC_SET,
102 GD_MGMT_CLI_PROFILE_VOLUME,
104 GD_MGMT_CLI_LOG_LEVEL,
105 GD_MGMT_CLI_STATUS_VOLUME,
110enum gluster_cli_procnum {
111 GLUSTER_CLI_NULL = 0,
114 GLUSTER_CLI_LIST_FRIENDS,
115 GLUSTER_CLI_CREATE_VOLUME,
116 GLUSTER_CLI_GET_VOLUME,
117 GLUSTER_CLI_GET_NEXT_VOLUME,
118 GLUSTER_CLI_DELETE_VOLUME,
119 GLUSTER_CLI_START_VOLUME,
120 GLUSTER_CLI_STOP_VOLUME,
121 GLUSTER_CLI_RENAME_VOLUME,
122 GLUSTER_CLI_DEFRAG_VOLUME,
123 GLUSTER_CLI_SET_VOLUME,
124 GLUSTER_CLI_ADD_BRICK,
125 GLUSTER_CLI_REMOVE_BRICK,
126 GLUSTER_CLI_REPLACE_BRICK,
127 GLUSTER_CLI_LOG_FILENAME,
128 GLUSTER_CLI_LOG_LOCATE,
129 GLUSTER_CLI_LOG_ROTATE,
131 GLUSTER_CLI_PMAP_PORTBYBRICK,
132 GLUSTER_CLI_SYNC_VOLUME,
133 GLUSTER_CLI_RESET_VOLUME,
135 GLUSTER_CLI_GSYNC_SET,
136 GLUSTER_CLI_PROFILE_VOLUME,
138 GLUSTER_CLI_TOP_VOLUME,
140 GLUSTER_CLI_LOG_LEVEL,
141 GLUSTER_CLI_STATUS_VOLUME,
144 GLUSTER_CLI_HEAL_VOLUME,
145 GLUSTER_CLI_STATEDUMP_VOLUME,
150enum gluster_cli_2_procnum {
151 GLUSTER_CLI_2_NULL = 0,
153 GLUSTER_CLI_2_DEPROBE,
154 GLUSTER_CLI_2_LIST_FRIENDS,
155 GLUSTER_CLI_2_CREATE_VOLUME,
156 GLUSTER_CLI_2_GET_VOLUME,
157 GLUSTER_CLI_2_GET_NEXT_VOLUME,
158 GLUSTER_CLI_2_DELETE_VOLUME,
159 GLUSTER_CLI_2_START_VOLUME,
160 GLUSTER_CLI_2_STOP_VOLUME,
161 GLUSTER_CLI_2_RENAME_VOLUME,
162 GLUSTER_CLI_2_DEFRAG_VOLUME,
163 GLUSTER_CLI_2_SET_VOLUME,
164 GLUSTER_CLI_2_ADD_BRICK,
165 GLUSTER_CLI_2_REMOVE_BRICK,
166 GLUSTER_CLI_2_REPLACE_BRICK,
167 GLUSTER_CLI_2_LOG_ROTATE,
168 GLUSTER_CLI_2_GETSPEC,
169 GLUSTER_CLI_2_PMAP_PORTBYBRICK,
170 GLUSTER_CLI_2_SYNC_VOLUME,
171 GLUSTER_CLI_2_RESET_VOLUME,
172 GLUSTER_CLI_2_FSM_LOG,
173 GLUSTER_CLI_2_GSYNC_SET,
174 GLUSTER_CLI_2_PROFILE_VOLUME,
176 GLUSTER_CLI_2_TOP_VOLUME,
178 GLUSTER_CLI_2_STATUS_VOLUME,
179 GLUSTER_CLI_2_STATUS_ALL,
181 GLUSTER_CLI_2_UMOUNT,
182 GLUSTER_CLI_2_HEAL_VOLUME,
183 GLUSTER_CLI_2_STATEDUMP_VOLUME,
184 GLUSTER_CLI_2_LIST_VOLUME,
185 GLUSTER_CLI_2_CLRLOCKS_VOLUME,
186 GLUSTER_CLI_2_MAXVALUE
191enum gluster_prog_dump_procs {
198enum glusterd_mgmt_procnum {
199 GLUSTERD_MGMT_NULL = 0,
200 GLUSTERD_MGMT_PROBE_QUERY,
201 GLUSTERD_MGMT_FRIEND_ADD,
202 GLUSTERD_MGMT_CLUSTER_LOCK,
203 GLUSTERD_MGMT_CLUSTER_UNLOCK,
204 GLUSTERD_MGMT_STAGE_OP,
205 GLUSTERD_MGMT_COMMIT_OP,
206 GLUSTERD_MGMT_FRIEND_REMOVE,
207 GLUSTERD_MGMT_FRIEND_UPDATE,
208 GLUSTERD_MGMT_MAXVALUE
212enum glusterd_mgmt_2_procnum {
213 GLUSTERD_MGMT_2_NULL = 0,
214 GLUSTERD_MGMT_2_CLUSTER_LOCK,
215 GLUSTERD_MGMT_2_CLUSTER_UNLOCK,
216 GLUSTERD_MGMT_2_STAGE_OP,
217 GLUSTERD_MGMT_2_COMMIT_OP,
218 GLUSTERD_MGMT_2_MAXVALUE
222enum glusterd_mgmt_3_procnum {
223 GLUSTERD_MGMT_3_NULL = 0,
224 GLUSTERD_MGMT_3_LOCK,
225 GLUSTERD_MGMT_3_PRE_VALIDATE,
226 GLUSTERD_MGMT_3_BRICK_OP,
227 GLUSTERD_MGMT_3_COMMIT,
228 GLUSTERD_MGMT_3_POST_VALIDATE,
229 GLUSTERD_MGMT_3_UNLOCK,
230 GLUSTERD_MGMT_3_MAXVALUE
234enum gf_brick_procnum {
237 GF_BRICK_XLATOR_INFO,
238 GF_BRICK_XLATOR_HEAL,
243enum gluster_prog_hndsk_procs {
249 GF_HNDSK_EVENT_NOTIFY,
250 GF_HNDSK_GET_VOLUME_INFO,
255enum gf_pmap_procnum {
266enum glusterd_brick_procnum {
267 GLUSTERD_BRICK_NULL = 0,
268 GLUSTERD_BRICK_TERMINATE,
269 GLUSTERD_BRICK_XLATOR_INFO,
270 GLUSTERD_BRICK_XLATOR_HEAL,
272 GLUSTERD_BRICK_MAXVALUE
276enum glusterd_brick_2_procnum {
277 GLUSTERD_2_BRICK_NULL,
278 GLUSTERD_2_BRICK_TERMINATE,
279 GLUSTERD_2_BRICK_XLATOR_INFO,
280 GLUSTERD_2_BRICK_XLATOR_OP,
281 GLUSTERD_2_BRICK_STATUS,
283 GLUSTERD_2_BRICK_XLATOR_DEFRAG,
284 GLUSTERD_2_NODE_PROFILE,
285 GLUSTERD_2_NODE_STATUS,
286 GLUSTERD_2_BRICK_MAXVALUE
297 GF_CBK_CACHE_INVALIDATION,
302enum glusterd_friend_procnum {
303 GLUSTERD_FRIEND_NULL,
304 GLUSTERD_PROBE_QUERY,
306 GLUSTERD_FRIEND_REMOVE,
307 GLUSTERD_FRIEND_UPDATE,
308 GLUSTERD_FRIEND_MAXVALUE
356 GFS3_OP_FREMOVEXATTR,
366enum gluster_entry_types {
367 GLUSTER_DT_UNKNOWN = 0,
374 GLUSTER_DT_SOCK = 12,
382enum gluster_lk_cmds {
393enum gluster_lk_types {
400enum gluster_lk_whence {
406enum gluster_seek_whence {
429 GD_OP_PROFILE_VOLUME,
434 GD_OP_STATEDUMP_VOLUME,
436 GD_OP_CLEARLOCKS_VOLUME,
437 GD_OP_DEFRAG_BRICK_VOLUME,
446enum gf_upcall_event {
447 GF_UPCALL_EVENT_NULL,
448 GF_UPCALL_CACHE_INVALIDATION,
456gluster_dissect_common_reply(
tvbuff_t *tvb,
int offset,
459glusterfs_gfs3_3_op_common_reply(
tvbuff_t *tvb,
Definition packet_info.h:43
Definition tvbuff-int.h:35