aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/drbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/drbd.h')
-rw-r--r--include/linux/drbd.h19
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 {
ERR_CONG_NOT_PROTO_A = 155,
ERR_PIC_AFTER_DEP = 156,
ERR_PIC_PEER_DEP = 157,
+ ERR_CONN_NOT_KNOWN = 158,
/* insert new ones above this line */
AFTER_LAST_ERR_CODE
@@ -347,8 +348,11 @@ enum drbd_timeout_flag {
/* Start of the new netlink/connector stuff */
-#define DRBD_NL_CREATE_DEVICE 0x01
-#define DRBD_NL_SET_DEFAULTS 0x02
+enum drbd_ncr_flags {
+ DRBD_NL_CREATE_DEVICE = 0x01,
+ DRBD_NL_SET_DEFAULTS = 0x02,
+};
+#define DRBD_NL_OBJ_NAME_LEN 32
/* For searching a vacant cn_idx value */
@@ -356,8 +360,15 @@ enum drbd_timeout_flag {
struct drbd_nl_cfg_req {
int packet_type;
- unsigned int drbd_minor;
- int flags;
+ union {
+ struct {
+ unsigned int drbd_minor;
+ enum drbd_ncr_flags flags;
+ };
+ struct {
+ char obj_name[DRBD_NL_OBJ_NAME_LEN];
+ };
+ };
unsigned short tag_list[];
};