Revision 376631d1 lib/objects.py
b/lib/objects.py | ||
---|---|---|
602 | 602 |
|
603 | 603 |
""" |
604 | 604 |
if self.dev_type in [constants.LD_LV, constants.LD_FILE, |
605 |
constants.LD_BLOCKDEV, constants.LD_RBD]: |
|
605 |
constants.LD_BLOCKDEV, constants.LD_RBD, |
|
606 |
constants.LD_EXT]: |
|
606 | 607 |
result = [node] |
607 | 608 |
elif self.dev_type in constants.LDS_DRBD: |
608 | 609 |
result = [self.logical_id[0], self.logical_id[1]] |
... | ... | |
678 | 679 |
|
679 | 680 |
""" |
680 | 681 |
if self.dev_type in (constants.LD_LV, constants.LD_FILE, |
681 |
constants.LD_RBD): |
|
682 |
constants.LD_RBD, constants.LD_EXT):
|
|
682 | 683 |
self.size += amount |
683 | 684 |
elif self.dev_type == constants.LD_DRBD8: |
684 | 685 |
if self.children: |
... | ... | |
1235 | 1236 |
return cls.SplitNameVariant(name)[1] |
1236 | 1237 |
|
1237 | 1238 |
|
1239 |
class ExtStorage(ConfigObject): |
|
1240 |
"""Config object representing an External Storage Provider. |
|
1241 |
|
|
1242 |
""" |
|
1243 |
__slots__ = [ |
|
1244 |
"name", |
|
1245 |
"path", |
|
1246 |
"create_script", |
|
1247 |
"remove_script", |
|
1248 |
"grow_script", |
|
1249 |
"attach_script", |
|
1250 |
"detach_script", |
|
1251 |
"setinfo_script", |
|
1252 |
] |
|
1253 |
|
|
1254 |
|
|
1238 | 1255 |
class NodeHvState(ConfigObject): |
1239 | 1256 |
"""Hypvervisor state on a node. |
1240 | 1257 |
|
Also available in: Unified diff