Go to the documentation of this file.
28 #include <linux/connector.h>
29 #include <asm/types.h>
32 #include <linux/types.h>
33 #include <asm/byteorder.h>
35 #include <sys/types.h>
44 #if __BYTE_ORDER == __LITTLE_ENDIAN
45 #define __LITTLE_ENDIAN_BITFIELD
46 #elif __BYTE_ORDER == __BIG_ENDIAN
47 #define __BIG_ENDIAN_BITFIELD
49 # error "sorry, weird endianness on this box"
56 #define REL_VERSION "8.3.13"
57 #define API_VERSION 88
58 #define PRO_VERSION_MIN 86
59 #define PRO_VERSION_MAX 96
163 #define DRBD_PROT_A 1
164 #define DRBD_PROT_B 2
165 #define DRBD_PROT_C 3
242 #if defined(__LITTLE_ENDIAN_BITFIELD)
255 #elif defined(__BIG_ENDIAN_BITFIELD)
269 # error "this endianness is not supported"
308 #define SHARED_SECRET_MAX 64
310 #define MDF_CONSISTENT (1 << 0)
311 #define MDF_PRIMARY_IND (1 << 1)
312 #define MDF_CONNECTED_IND (1 << 2)
313 #define MDF_FULL_SYNC (1 << 3)
314 #define MDF_WAS_UP_TO_DATE (1 << 4)
315 #define MDF_PEER_OUT_DATED (1 << 5)
316 #define MDF_CRASHED_PRIMARY (1 << 6)
334 #define UUID_JUST_CREATED ((__u64)4)
336 #define DRBD_MAGIC 0x83740267
337 #define BE_DRBD_MAGIC __constant_cpu_to_be32(DRBD_MAGIC)
338 #define DRBD_MAGIC_BIG 0x835a
339 #define BE_DRBD_MAGIC_BIG __constant_cpu_to_be16(DRBD_MAGIC_BIG)
342 #define DRBD_MD_INDEX_INTERNAL -1
343 #define DRBD_MD_INDEX_FLEX_EXT -2
344 #define DRBD_MD_INDEX_FLEX_INT -3
348 #define DRBD_NL_CREATE_DEVICE 0x01
349 #define DRBD_NL_SET_DEFAULTS 0x02
353 #define CN_IDX_STEP 6977