Revision c5539592 lib/constants.py
b/lib/constants.py | ||
---|---|---|
308 | 308 |
DEFAULT_ENABLED_DISK_TEMPLATES = _constants.DEFAULT_ENABLED_DISK_TEMPLATES |
309 | 309 |
|
310 | 310 |
MAP_DISK_TEMPLATE_STORAGE_TYPE = _constants.MAP_DISK_TEMPLATE_STORAGE_TYPE |
311 |
# drbd constants |
|
312 |
DRBD_HMAC_ALG = "md5" |
|
313 |
DRBD_DEFAULT_NET_PROTOCOL = "C" |
|
314 |
DRBD_MIGRATION_NET_PROTOCOL = "C" |
|
315 |
DRBD_STATUS_FILE = "/proc/drbd" |
|
316 |
|
|
317 |
#: Size of DRBD meta block device |
|
318 |
DRBD_META_SIZE = 128 |
|
319 | 311 |
|
320 | 312 |
DTS_INT_MIRROR = _constants.DTS_INT_MIRROR |
321 | 313 |
DTS_EXT_MIRROR = _constants.DTS_EXT_MIRROR |
... | ... | |
329 | 321 |
DTS_EXCL_STORAGE = _constants.DTS_EXCL_STORAGE |
330 | 322 |
DTS_NO_FREE_SPACE_CHECK = _constants.DTS_NO_FREE_SPACE_CHECK |
331 | 323 |
DTS_BLOCK = _constants.DTS_BLOCK |
332 |
# drbd barrier types |
|
333 |
DRBD_B_NONE = "n" |
|
334 |
DRBD_B_DISK_BARRIERS = "b" |
|
335 |
DRBD_B_DISK_DRAIN = "d" |
|
336 |
DRBD_B_DISK_FLUSH = "f" |
|
324 |
|
|
325 |
DRBD_HMAC_ALG = _constants.DRBD_HMAC_ALG |
|
326 |
DRBD_DEFAULT_NET_PROTOCOL = _constants.DRBD_DEFAULT_NET_PROTOCOL |
|
327 |
DRBD_MIGRATION_NET_PROTOCOL = _constants.DRBD_MIGRATION_NET_PROTOCOL |
|
328 |
DRBD_STATUS_FILE = _constants.DRBD_STATUS_FILE |
|
329 |
DRBD_META_SIZE = _constants.DRBD_META_SIZE |
|
330 |
|
|
331 |
DRBD_B_NONE = _constants.DRBD_B_NONE |
|
332 |
DRBD_B_DISK_BARRIERS = _constants.DRBD_B_DISK_BARRIERS |
|
333 |
DRBD_B_DISK_DRAIN = _constants.DRBD_B_DISK_DRAIN |
|
334 |
DRBD_B_DISK_FLUSH = _constants.DRBD_B_DISK_FLUSH |
|
337 | 335 |
|
338 | 336 |
# Valid barrier combinations: "n" or any non-null subset of "bfd" |
339 | 337 |
DRBD_VALID_BARRIER_OPT = compat.UniqueFrozenset([ |
... | ... | |
347 | 345 |
frozenset([DRBD_B_DISK_BARRIERS, DRBD_B_DISK_FLUSH, DRBD_B_DISK_DRAIN]), |
348 | 346 |
]) |
349 | 347 |
|
350 |
# rbd tool command |
|
351 |
RBD_CMD = "rbd" |
|
348 |
RBD_CMD = _constants.RBD_CMD |
|
352 | 349 |
|
353 | 350 |
FD_BLKTAP = _constants.FD_BLKTAP |
354 | 351 |
FD_LOOP = _constants.FD_LOOP |
Also available in: Unified diff