aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/drbd.h
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2011-02-21 15:38:08 +0100
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-10-14 16:47:59 +0200
commit1aba4d7fcfabe999e0c99683b394aa76d5c42842 (patch)
treef7d2cbff4aba926e8d7134bc68ed4904989b5b6b /include/linux/drbd.h
parentdrbd: Converted the transfer log from mdev to tconn (diff)
downloadlinux-dev-1aba4d7fcfabe999e0c99683b394aa76d5c42842.tar.xz
linux-dev-1aba4d7fcfabe999e0c99683b394aa76d5c42842.zip
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.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[];
};