Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
drbd_limits.h File Reference

Go to the source code of this file.

Macros

#define DEBUG_RANGE_CHECK   0
 
#define DRBD_MINOR_COUNT_MIN   1
 
#define DRBD_MINOR_COUNT_MAX   256
 
#define DRBD_MINOR_COUNT_DEF   32
 
#define DRBD_DIALOG_REFRESH_MIN   0
 
#define DRBD_DIALOG_REFRESH_MAX   600
 
#define DRBD_PORT_MIN   1
 
#define DRBD_PORT_MAX   0xffff
 
#define DRBD_WFC_TIMEOUT_MIN   0
 
#define DRBD_WFC_TIMEOUT_MAX   300000
 
#define DRBD_WFC_TIMEOUT_DEF   0
 
#define DRBD_DEGR_WFC_TIMEOUT_MIN   0
 
#define DRBD_DEGR_WFC_TIMEOUT_MAX   300000
 
#define DRBD_DEGR_WFC_TIMEOUT_DEF   0
 
#define DRBD_OUTDATED_WFC_TIMEOUT_MIN   0
 
#define DRBD_OUTDATED_WFC_TIMEOUT_MAX   300000
 
#define DRBD_OUTDATED_WFC_TIMEOUT_DEF   0
 
#define DRBD_TIMEOUT_MIN   1
 
#define DRBD_TIMEOUT_MAX   600
 
#define DRBD_TIMEOUT_DEF   60 /* 6 seconds */
 
#define DRBD_DISK_TIMEOUT_MIN   0 /* 0 = disabled */
 
#define DRBD_DISK_TIMEOUT_MAX   6000 /* 10 Minutes */
 
#define DRBD_DISK_TIMEOUT_DEF   0 /* disabled */
 
#define DRBD_CONNECT_INT_MIN   1
 
#define DRBD_CONNECT_INT_MAX   120
 
#define DRBD_CONNECT_INT_DEF   10 /* seconds */
 
#define DRBD_PING_INT_MIN   1
 
#define DRBD_PING_INT_MAX   120
 
#define DRBD_PING_INT_DEF   10
 
#define DRBD_PING_TIMEO_MIN   1
 
#define DRBD_PING_TIMEO_MAX   300
 
#define DRBD_PING_TIMEO_DEF   5
 
#define DRBD_MAX_EPOCH_SIZE_MIN   1
 
#define DRBD_MAX_EPOCH_SIZE_MAX   20000
 
#define DRBD_MAX_EPOCH_SIZE_DEF   2048
 
#define DRBD_SNDBUF_SIZE_MIN   0
 
#define DRBD_SNDBUF_SIZE_MAX   (10<<20)
 
#define DRBD_SNDBUF_SIZE_DEF   0
 
#define DRBD_RCVBUF_SIZE_MIN   0
 
#define DRBD_RCVBUF_SIZE_MAX   (10<<20)
 
#define DRBD_RCVBUF_SIZE_DEF   0
 
#define DRBD_MAX_BUFFERS_MIN   32
 
#define DRBD_MAX_BUFFERS_MAX   131072
 
#define DRBD_MAX_BUFFERS_DEF   2048
 
#define DRBD_UNPLUG_WATERMARK_MIN   1
 
#define DRBD_UNPLUG_WATERMARK_MAX   131072
 
#define DRBD_UNPLUG_WATERMARK_DEF   (DRBD_MAX_BUFFERS_DEF/16)
 
#define DRBD_KO_COUNT_MIN   0
 
#define DRBD_KO_COUNT_MAX   200
 
#define DRBD_KO_COUNT_DEF   0
 
#define DRBD_RATE_MIN   1
 
#define DRBD_RATE_MAX   (4 << 20)
 
#define DRBD_RATE_DEF   250 /* kb/second */
 
#define DRBD_AL_EXTENTS_MIN   7
 
#define DRBD_AL_EXTENTS_MAX   3833
 
#define DRBD_AL_EXTENTS_DEF   127
 
#define DRBD_AFTER_MIN   -1
 
#define DRBD_AFTER_MAX   255
 
#define DRBD_AFTER_DEF   -1
 
#define DRBD_DISK_SIZE_SECT_MIN   0
 
#define DRBD_DISK_SIZE_SECT_MAX   (1 * (2LLU << 40))
 
#define DRBD_DISK_SIZE_SECT_DEF   0 /* = disabled = no user size... */
 
#define DRBD_ON_IO_ERROR_DEF   EP_PASS_ON
 
#define DRBD_FENCING_DEF   FP_DONT_CARE
 
#define DRBD_AFTER_SB_0P_DEF   ASB_DISCONNECT
 
#define DRBD_AFTER_SB_1P_DEF   ASB_DISCONNECT
 
#define DRBD_AFTER_SB_2P_DEF   ASB_DISCONNECT
 
#define DRBD_RR_CONFLICT_DEF   ASB_DISCONNECT
 
#define DRBD_ON_NO_DATA_DEF   OND_IO_ERROR
 
#define DRBD_ON_CONGESTION_DEF   OC_BLOCK
 
#define DRBD_MAX_BIO_BVECS_MIN   0
 
#define DRBD_MAX_BIO_BVECS_MAX   128
 
#define DRBD_MAX_BIO_BVECS_DEF   0
 
#define DRBD_C_PLAN_AHEAD_MIN   0
 
#define DRBD_C_PLAN_AHEAD_MAX   300
 
#define DRBD_C_PLAN_AHEAD_DEF   0 /* RS rate controller disabled by default */
 
#define DRBD_C_DELAY_TARGET_MIN   1
 
#define DRBD_C_DELAY_TARGET_MAX   100
 
#define DRBD_C_DELAY_TARGET_DEF   10
 
#define DRBD_C_FILL_TARGET_MIN   0
 
#define DRBD_C_FILL_TARGET_MAX   (1<<20) /* 500MByte in sec */
 
#define DRBD_C_FILL_TARGET_DEF   0 /* By default disabled -> controlled by delay_target */
 
#define DRBD_C_MAX_RATE_MIN   250 /* kByte/sec */
 
#define DRBD_C_MAX_RATE_MAX   (4 << 20)
 
#define DRBD_C_MAX_RATE_DEF   102400
 
#define DRBD_C_MIN_RATE_MIN   0 /* kByte/sec */
 
#define DRBD_C_MIN_RATE_MAX   (4 << 20)
 
#define DRBD_C_MIN_RATE_DEF   4096
 
#define DRBD_CONG_FILL_MIN   0
 
#define DRBD_CONG_FILL_MAX   (10<<21) /* 10GByte in sectors */
 
#define DRBD_CONG_FILL_DEF   0
 
#define DRBD_CONG_EXTENTS_MIN   DRBD_AL_EXTENTS_MIN
 
#define DRBD_CONG_EXTENTS_MAX   DRBD_AL_EXTENTS_MAX
 
#define DRBD_CONG_EXTENTS_DEF   DRBD_AL_EXTENTS_DEF
 

Macro Definition Documentation

#define DEBUG_RANGE_CHECK   0

Definition at line 16 of file drbd_limits.h.

#define DRBD_AFTER_DEF   -1

Definition at line 118 of file drbd_limits.h.

#define DRBD_AFTER_MAX   255

Definition at line 117 of file drbd_limits.h.

#define DRBD_AFTER_MIN   -1

Definition at line 116 of file drbd_limits.h.

#define DRBD_AFTER_SB_0P_DEF   ASB_DISCONNECT

Definition at line 133 of file drbd_limits.h.

#define DRBD_AFTER_SB_1P_DEF   ASB_DISCONNECT

Definition at line 134 of file drbd_limits.h.

#define DRBD_AFTER_SB_2P_DEF   ASB_DISCONNECT

Definition at line 135 of file drbd_limits.h.

#define DRBD_AL_EXTENTS_DEF   127

Definition at line 114 of file drbd_limits.h.

#define DRBD_AL_EXTENTS_MAX   3833

Definition at line 113 of file drbd_limits.h.

#define DRBD_AL_EXTENTS_MIN   7

Definition at line 112 of file drbd_limits.h.

#define DRBD_C_DELAY_TARGET_DEF   10

Definition at line 150 of file drbd_limits.h.

#define DRBD_C_DELAY_TARGET_MAX   100

Definition at line 149 of file drbd_limits.h.

#define DRBD_C_DELAY_TARGET_MIN   1

Definition at line 148 of file drbd_limits.h.

#define DRBD_C_FILL_TARGET_DEF   0 /* By default disabled -> controlled by delay_target */

Definition at line 154 of file drbd_limits.h.

#define DRBD_C_FILL_TARGET_MAX   (1<<20) /* 500MByte in sec */

Definition at line 153 of file drbd_limits.h.

#define DRBD_C_FILL_TARGET_MIN   0

Definition at line 152 of file drbd_limits.h.

#define DRBD_C_MAX_RATE_DEF   102400

Definition at line 158 of file drbd_limits.h.

#define DRBD_C_MAX_RATE_MAX   (4 << 20)

Definition at line 157 of file drbd_limits.h.

#define DRBD_C_MAX_RATE_MIN   250 /* kByte/sec */

Definition at line 156 of file drbd_limits.h.

#define DRBD_C_MIN_RATE_DEF   4096

Definition at line 162 of file drbd_limits.h.

#define DRBD_C_MIN_RATE_MAX   (4 << 20)

Definition at line 161 of file drbd_limits.h.

#define DRBD_C_MIN_RATE_MIN   0 /* kByte/sec */

Definition at line 160 of file drbd_limits.h.

#define DRBD_C_PLAN_AHEAD_DEF   0 /* RS rate controller disabled by default */

Definition at line 146 of file drbd_limits.h.

#define DRBD_C_PLAN_AHEAD_MAX   300

Definition at line 145 of file drbd_limits.h.

#define DRBD_C_PLAN_AHEAD_MIN   0

Definition at line 144 of file drbd_limits.h.

#define DRBD_CONG_EXTENTS_DEF   DRBD_AL_EXTENTS_DEF

Definition at line 170 of file drbd_limits.h.

#define DRBD_CONG_EXTENTS_MAX   DRBD_AL_EXTENTS_MAX

Definition at line 169 of file drbd_limits.h.

#define DRBD_CONG_EXTENTS_MIN   DRBD_AL_EXTENTS_MIN

Definition at line 168 of file drbd_limits.h.

#define DRBD_CONG_FILL_DEF   0

Definition at line 166 of file drbd_limits.h.

#define DRBD_CONG_FILL_MAX   (10<<21) /* 10GByte in sectors */

Definition at line 165 of file drbd_limits.h.

#define DRBD_CONG_FILL_MIN   0

Definition at line 164 of file drbd_limits.h.

#define DRBD_CONNECT_INT_DEF   10 /* seconds */

Definition at line 59 of file drbd_limits.h.

#define DRBD_CONNECT_INT_MAX   120

Definition at line 58 of file drbd_limits.h.

#define DRBD_CONNECT_INT_MIN   1

Definition at line 57 of file drbd_limits.h.

#define DRBD_DEGR_WFC_TIMEOUT_DEF   0

Definition at line 37 of file drbd_limits.h.

#define DRBD_DEGR_WFC_TIMEOUT_MAX   300000

Definition at line 36 of file drbd_limits.h.

#define DRBD_DEGR_WFC_TIMEOUT_MIN   0

Definition at line 35 of file drbd_limits.h.

#define DRBD_DIALOG_REFRESH_MAX   600

Definition at line 23 of file drbd_limits.h.

#define DRBD_DIALOG_REFRESH_MIN   0

Definition at line 22 of file drbd_limits.h.

#define DRBD_DISK_SIZE_SECT_DEF   0 /* = disabled = no user size... */

Definition at line 129 of file drbd_limits.h.

#define DRBD_DISK_SIZE_SECT_MAX   (1 * (2LLU << 40))

Definition at line 128 of file drbd_limits.h.

#define DRBD_DISK_SIZE_SECT_MIN   0

Definition at line 127 of file drbd_limits.h.

#define DRBD_DISK_TIMEOUT_DEF   0 /* disabled */

Definition at line 54 of file drbd_limits.h.

#define DRBD_DISK_TIMEOUT_MAX   6000 /* 10 Minutes */

Definition at line 53 of file drbd_limits.h.

#define DRBD_DISK_TIMEOUT_MIN   0 /* 0 = disabled */

Definition at line 52 of file drbd_limits.h.

#define DRBD_FENCING_DEF   FP_DONT_CARE

Definition at line 132 of file drbd_limits.h.

#define DRBD_KO_COUNT_DEF   0

Definition at line 99 of file drbd_limits.h.

#define DRBD_KO_COUNT_MAX   200

Definition at line 98 of file drbd_limits.h.

#define DRBD_KO_COUNT_MIN   0

Definition at line 97 of file drbd_limits.h.

#define DRBD_MAX_BIO_BVECS_DEF   0

Definition at line 142 of file drbd_limits.h.

#define DRBD_MAX_BIO_BVECS_MAX   128

Definition at line 141 of file drbd_limits.h.

#define DRBD_MAX_BIO_BVECS_MIN   0

Definition at line 140 of file drbd_limits.h.

#define DRBD_MAX_BUFFERS_DEF   2048

Definition at line 88 of file drbd_limits.h.

#define DRBD_MAX_BUFFERS_MAX   131072

Definition at line 87 of file drbd_limits.h.

#define DRBD_MAX_BUFFERS_MIN   32

Definition at line 86 of file drbd_limits.h.

#define DRBD_MAX_EPOCH_SIZE_DEF   2048

Definition at line 74 of file drbd_limits.h.

#define DRBD_MAX_EPOCH_SIZE_MAX   20000

Definition at line 73 of file drbd_limits.h.

#define DRBD_MAX_EPOCH_SIZE_MIN   1

Definition at line 72 of file drbd_limits.h.

#define DRBD_MINOR_COUNT_DEF   32

Definition at line 20 of file drbd_limits.h.

#define DRBD_MINOR_COUNT_MAX   256

Definition at line 19 of file drbd_limits.h.

#define DRBD_MINOR_COUNT_MIN   1

Definition at line 18 of file drbd_limits.h.

#define DRBD_ON_CONGESTION_DEF   OC_BLOCK

Definition at line 138 of file drbd_limits.h.

#define DRBD_ON_IO_ERROR_DEF   EP_PASS_ON

Definition at line 131 of file drbd_limits.h.

#define DRBD_ON_NO_DATA_DEF   OND_IO_ERROR

Definition at line 137 of file drbd_limits.h.

#define DRBD_OUTDATED_WFC_TIMEOUT_DEF   0

Definition at line 41 of file drbd_limits.h.

#define DRBD_OUTDATED_WFC_TIMEOUT_MAX   300000

Definition at line 40 of file drbd_limits.h.

#define DRBD_OUTDATED_WFC_TIMEOUT_MIN   0

Definition at line 39 of file drbd_limits.h.

#define DRBD_PING_INT_DEF   10

Definition at line 64 of file drbd_limits.h.

#define DRBD_PING_INT_MAX   120

Definition at line 63 of file drbd_limits.h.

#define DRBD_PING_INT_MIN   1

Definition at line 62 of file drbd_limits.h.

#define DRBD_PING_TIMEO_DEF   5

Definition at line 69 of file drbd_limits.h.

#define DRBD_PING_TIMEO_MAX   300

Definition at line 68 of file drbd_limits.h.

#define DRBD_PING_TIMEO_MIN   1

Definition at line 67 of file drbd_limits.h.

#define DRBD_PORT_MAX   0xffff

Definition at line 27 of file drbd_limits.h.

#define DRBD_PORT_MIN   1

Definition at line 26 of file drbd_limits.h.

#define DRBD_RATE_DEF   250 /* kb/second */

Definition at line 107 of file drbd_limits.h.

#define DRBD_RATE_MAX   (4 << 20)

Definition at line 106 of file drbd_limits.h.

#define DRBD_RATE_MIN   1

Definition at line 104 of file drbd_limits.h.

#define DRBD_RCVBUF_SIZE_DEF   0

Definition at line 83 of file drbd_limits.h.

#define DRBD_RCVBUF_SIZE_MAX   (10<<20)

Definition at line 82 of file drbd_limits.h.

#define DRBD_RCVBUF_SIZE_MIN   0

Definition at line 81 of file drbd_limits.h.

#define DRBD_RR_CONFLICT_DEF   ASB_DISCONNECT

Definition at line 136 of file drbd_limits.h.

#define DRBD_SNDBUF_SIZE_DEF   0

Definition at line 79 of file drbd_limits.h.

#define DRBD_SNDBUF_SIZE_MAX   (10<<20)

Definition at line 78 of file drbd_limits.h.

#define DRBD_SNDBUF_SIZE_MIN   0

Definition at line 77 of file drbd_limits.h.

#define DRBD_TIMEOUT_DEF   60 /* 6 seconds */

Definition at line 49 of file drbd_limits.h.

#define DRBD_TIMEOUT_MAX   600

Definition at line 48 of file drbd_limits.h.

#define DRBD_TIMEOUT_MIN   1

Definition at line 47 of file drbd_limits.h.

#define DRBD_UNPLUG_WATERMARK_DEF   (DRBD_MAX_BUFFERS_DEF/16)

Definition at line 93 of file drbd_limits.h.

#define DRBD_UNPLUG_WATERMARK_MAX   131072

Definition at line 92 of file drbd_limits.h.

#define DRBD_UNPLUG_WATERMARK_MIN   1

Definition at line 91 of file drbd_limits.h.

#define DRBD_WFC_TIMEOUT_DEF   0

Definition at line 33 of file drbd_limits.h.

#define DRBD_WFC_TIMEOUT_MAX   300000

Definition at line 32 of file drbd_limits.h.

#define DRBD_WFC_TIMEOUT_MIN   0

Definition at line 31 of file drbd_limits.h.