aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/drbd.h
diff options
context:
space:
mode:
authorLars Ellenberg <lars.ellenberg@linbit.com>2011-03-07 06:49:34 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-03 19:16:17 -0400
commit3b98c0c2093d1f92e5b7394ae0b13d142e7ef880 (patch)
tree43d24df845b0c63ca0689b1aa094623ae0f999d0 /include/linux/drbd.h
parentec2c35ac1ea288f5c931e32452ecea50068e8450 (diff)
drbd: switch configuration interface from connector to genetlink
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.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/include/linux/drbd.h b/include/linux/drbd.h
index e192167e6145..d28fdd8fcd49 100644
--- a/include/linux/drbd.h
+++ b/include/linux/drbd.h
@@ -51,7 +51,6 @@
51 51
52#endif 52#endif
53 53
54
55extern const char *drbd_buildtag(void); 54extern const char *drbd_buildtag(void);
56#define REL_VERSION "8.3.11" 55#define REL_VERSION "8.3.11"
57#define API_VERSION 88 56#define API_VERSION 88
@@ -159,6 +158,7 @@ enum drbd_ret_code {
159 ERR_CONN_IN_USE = 159, 158 ERR_CONN_IN_USE = 159,
160 ERR_MINOR_CONFIGURED = 160, 159 ERR_MINOR_CONFIGURED = 160,
161 ERR_MINOR_EXISTS = 161, 160 ERR_MINOR_EXISTS = 161,
161 ERR_INVALID_REQUEST = 162,
162 162
163 /* insert new ones above this line */ 163 /* insert new ones above this line */
164 AFTER_LAST_ERR_CODE 164 AFTER_LAST_ERR_CODE
@@ -349,37 +349,4 @@ enum drbd_timeout_flag {
349#define DRBD_MD_INDEX_FLEX_EXT -2 349#define DRBD_MD_INDEX_FLEX_EXT -2
350#define DRBD_MD_INDEX_FLEX_INT -3 350#define DRBD_MD_INDEX_FLEX_INT -3
351 351
352/* Start of the new netlink/connector stuff */
353
354enum drbd_ncr_flags {
355 DRBD_NL_CREATE_DEVICE = 0x01,
356 DRBD_NL_SET_DEFAULTS = 0x02,
357};
358#define DRBD_NL_OBJ_NAME_LEN 32
359
360
361/* For searching a vacant cn_idx value */
362#define CN_IDX_STEP 6977
363
364struct drbd_nl_cfg_req {
365 int packet_type;
366 union {
367 struct {
368 unsigned int drbd_minor;
369 enum drbd_ncr_flags flags;
370 };
371 struct {
372 char obj_name[DRBD_NL_OBJ_NAME_LEN];
373 };
374 };
375 unsigned short tag_list[];
376};
377
378struct drbd_nl_cfg_reply {
379 int packet_type;
380 unsigned int minor;
381 int ret_code; /* enum ret_code or set_st_err_t */
382 unsigned short tag_list[]; /* only used with get_* calls */
383};
384
385#endif 352#endif