Revision 59bcd180 lib/constants.py

b/lib/constants.py
353 353
  ST_LVM_PV: frozenset([SF_ALLOCATABLE]),
354 354
  }
355 355

  
356
LDS_OKAY = _constants.LDS_OKAY
357
LDS_UNKNOWN = _constants.LDS_UNKNOWN
358
LDS_FAULTY = _constants.LDS_FAULTY
359
LDS_NAMES = _constants.LDS_NAMES
356 360
VALID_STORAGE_OPERATIONS = {
357 361
  ST_LVM_VG: frozenset([SO_FIX_CONSISTENCY]),
358 362
  }
......
366 370
VF_SIZE = "size"
367 371
VF_VG = "vg"
368 372

  
369
# Local disk status
370
# Note: Code depends on LDS_OKAY < LDS_UNKNOWN < LDS_FAULTY
371
(LDS_OKAY,
372
 LDS_UNKNOWN,
373
 LDS_FAULTY) = range(1, 4)
374

  
375
LDS_NAMES = {
376
  LDS_OKAY: "ok",
377
  LDS_UNKNOWN: "unknown",
378
  LDS_FAULTY: "faulty",
379
}
380

  
381 373
# disk template types
382 374
DT_BLOCK = _constants.DT_BLOCK
383 375
DT_DISKLESS = _constants.DT_DISKLESS
......
514 506
FD_BLKTAP = _constants.FD_BLKTAP
515 507
FD_LOOP = _constants.FD_LOOP
516 508

  
517
# the set of drbd-like disk types
518
LDS_DRBD = compat.UniqueFrozenset([DT_DRBD8])
509
LDS_DRBD = _constants.LDS_DRBD
519 510

  
520 511
# disk access mode
521 512
DISK_RDONLY = _constants.DISK_RDONLY

Also available in: Unified diff