Revision a805ec18 lib/objects.py
b/lib/objects.py | ||
---|---|---|
396 | 396 |
raise errors.ProgrammerError("Disk.RecordGrow called for unsupported" |
397 | 397 |
" disk type %s" % self.dev_type) |
398 | 398 |
|
399 |
def UnsetSize(self): |
|
400 |
"""Sets recursively the size to zero for the disk and its children. |
|
401 |
|
|
402 |
""" |
|
403 |
if self.children: |
|
404 |
for child in self.children: |
|
405 |
child.UnsetSize() |
|
406 |
self.size = 0 |
|
407 |
|
|
399 | 408 |
def SetPhysicalID(self, target_node, nodes_ip): |
400 | 409 |
"""Convert the logical ID to the physical ID. |
401 | 410 |
|
Also available in: Unified diff