Revision 7181fba0 lib/objects.py
b/lib/objects.py | ||
---|---|---|
599 | 599 |
return "/dev/%s/%s" % (self.logical_id[0], self.logical_id[1]) |
600 | 600 |
elif self.dev_type == constants.LD_BLOCKDEV: |
601 | 601 |
return self.logical_id[1] |
602 |
elif self.dev_type == constants.LD_RBD: |
|
603 |
return "/dev/%s/%s" % (self.logical_id[0], self.logical_id[1]) |
|
602 | 604 |
return None |
603 | 605 |
|
604 | 606 |
def ChildrenNeeded(self): |
... | ... | |
642 | 644 |
|
643 | 645 |
""" |
644 | 646 |
if self.dev_type in [constants.LD_LV, constants.LD_FILE, |
645 |
constants.LD_BLOCKDEV]: |
|
647 |
constants.LD_BLOCKDEV, constants.LD_RBD]:
|
|
646 | 648 |
result = [node] |
647 | 649 |
elif self.dev_type in constants.LDS_DRBD: |
648 | 650 |
result = [self.logical_id[0], self.logical_id[1]] |
... | ... | |
717 | 719 |
actual algorithms from bdev. |
718 | 720 |
|
719 | 721 |
""" |
720 |
if self.dev_type in (constants.LD_LV, constants.LD_FILE): |
|
722 |
if self.dev_type in (constants.LD_LV, constants.LD_FILE, |
|
723 |
constants.LD_RBD): |
|
721 | 724 |
self.size += amount |
722 | 725 |
elif self.dev_type == constants.LD_DRBD8: |
723 | 726 |
if self.children: |
Also available in: Unified diff