diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2011-02-21 09:38:08 -0500 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2011-10-14 10:47:59 -0400 |
commit | 1aba4d7fcfabe999e0c99683b394aa76d5c42842 (patch) | |
tree | f7d2cbff4aba926e8d7134bc68ed4904989b5b6b /include/linux/drbd.h | |
parent | 2f5cdd0b2cf7a4099faa7e53ba0a29ddf0ddf950 (diff) |
drbd: Preparing the connector interface to operator on connections
Up to now it only operated on minor numbers. Now it can work also
on named connections.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd.h')
-rw-r--r-- | include/linux/drbd.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/include/linux/drbd.h b/include/linux/drbd.h index 70a688b92c1b..7683b4ab6583 100644 --- a/include/linux/drbd.h +++ b/include/linux/drbd.h | |||
@@ -155,6 +155,7 @@ enum drbd_ret_code { | |||
155 | ERR_CONG_NOT_PROTO_A = 155, | 155 | ERR_CONG_NOT_PROTO_A = 155, |
156 | ERR_PIC_AFTER_DEP = 156, | 156 | ERR_PIC_AFTER_DEP = 156, |
157 | ERR_PIC_PEER_DEP = 157, | 157 | ERR_PIC_PEER_DEP = 157, |
158 | ERR_CONN_NOT_KNOWN = 158, | ||
158 | 159 | ||
159 | /* insert new ones above this line */ | 160 | /* insert new ones above this line */ |
160 | AFTER_LAST_ERR_CODE | 161 | AFTER_LAST_ERR_CODE |
@@ -347,8 +348,11 @@ enum drbd_timeout_flag { | |||
347 | 348 | ||
348 | /* Start of the new netlink/connector stuff */ | 349 | /* Start of the new netlink/connector stuff */ |
349 | 350 | ||
350 | #define DRBD_NL_CREATE_DEVICE 0x01 | 351 | enum drbd_ncr_flags { |
351 | #define DRBD_NL_SET_DEFAULTS 0x02 | 352 | DRBD_NL_CREATE_DEVICE = 0x01, |
353 | DRBD_NL_SET_DEFAULTS = 0x02, | ||
354 | }; | ||
355 | #define DRBD_NL_OBJ_NAME_LEN 32 | ||
352 | 356 | ||
353 | 357 | ||
354 | /* For searching a vacant cn_idx value */ | 358 | /* For searching a vacant cn_idx value */ |
@@ -356,8 +360,15 @@ enum drbd_timeout_flag { | |||
356 | 360 | ||
357 | struct drbd_nl_cfg_req { | 361 | struct drbd_nl_cfg_req { |
358 | int packet_type; | 362 | int packet_type; |
359 | unsigned int drbd_minor; | 363 | union { |
360 | int flags; | 364 | struct { |
365 | unsigned int drbd_minor; | ||
366 | enum drbd_ncr_flags flags; | ||
367 | }; | ||
368 | struct { | ||
369 | char obj_name[DRBD_NL_OBJ_NAME_LEN]; | ||
370 | }; | ||
371 | }; | ||
361 | unsigned short tag_list[]; | 372 | unsigned short tag_list[]; |
362 | }; | 373 | }; |
363 | 374 | ||