Revision 239364d0 lib/block/drbd.py
b/lib/block/drbd.py | ||
---|---|---|
42 | 42 |
_DEVICE_READ_SIZE = 128 * 1024 |
43 | 43 |
|
44 | 44 |
|
45 |
class DRBD8(base.BlockDev): |
|
45 |
class DRBD8Dev(base.BlockDev):
|
|
46 | 46 |
"""DRBD v8.x block device. |
47 | 47 |
|
48 | 48 |
This implements the local host part of the DRBD device, i.e. it |
... | ... | |
78 | 78 |
if not _CanReadDevice(children[1].dev_path): |
79 | 79 |
logging.info("drbd%s: Ignoring unreadable meta device", self._aminor) |
80 | 80 |
children = [] |
81 |
super(DRBD8, self).__init__(unique_id, children, size, params) |
|
81 |
super(DRBD8Dev, self).__init__(unique_id, children, size, params)
|
|
82 | 82 |
self.major = self._DRBD_MAJOR |
83 | 83 |
|
84 | 84 |
drbd_info = DRBD8Info.CreateFromFile() |
... | ... | |
471 | 471 |
logging.info(err) |
472 | 472 |
return [err] |
473 | 473 |
|
474 |
children_result = super(DRBD8, self).SetSyncParams(params) |
|
474 |
children_result = super(DRBD8Dev, self).SetSyncParams(params)
|
|
475 | 475 |
children_result.extend(self._SetMinorSyncParams(self.minor, params)) |
476 | 476 |
return children_result |
477 | 477 |
|
... | ... | |
486 | 486 |
logging.info("Not attached during PauseSync") |
487 | 487 |
return False |
488 | 488 |
|
489 |
children_result = super(DRBD8, self).PauseResumeSync(pause) |
|
489 |
children_result = super(DRBD8Dev, self).PauseResumeSync(pause)
|
|
490 | 490 |
|
491 | 491 |
if pause: |
492 | 492 |
cmd = self._cmd_gen.GenPauseSyncCmd(self.minor) |
... | ... | |
704 | 704 |
- anyway, set the device parameters |
705 | 705 |
|
706 | 706 |
""" |
707 |
super(DRBD8, self).Assemble() |
|
707 |
super(DRBD8Dev, self).Assemble()
|
|
708 | 708 |
|
709 | 709 |
self.Attach() |
710 | 710 |
if self.minor is None: |
Also available in: Unified diff