class documentation
class _LvmBase(_Base):
Known subclasses: ganeti.storage.container.LvmPvStorage
, ganeti.storage.container.LvmVgStorage
Base class for LVM storage containers.
Method |
|
Returns a list of all entities within the storage unit. |
Constant | LIST |
Undocumented |
Constant | LIST |
list of tuples consisting of three elements: SF_* constants, lvm command output fields (list), and conversion function or static value (for static value, the lvm output field can be an empty list) |
Constant | LIST |
Undocumented |
Class Method | _ |
Builds the final result list. |
Static Method | _ |
Builds LVM command line. |
Static Method | _ |
Returns unique list of fields wanted from LVM command. |
Static Method | _ |
Run LVM command. |
Static Method | _ |
Splits LVM command output into rows and fields. |
Inherited from _Base
:
Method |
|
Executes an operation on an entity within the storage unit. |
Method |
|
Modifies an entity within the storage unit. |
overrides
ganeti.storage.container._Base.List
Returns a list of all entities within the storage unit.
See _Base.List
.
LIST_FIELDS =
¶
list of tuples consisting of three elements: SF_* constants, lvm command output fields (list), and conversion function or static value (for static value, the lvm output field can be an empty list)
Value |
|
Builds the final result list.
Parameters | |
cmd | Iterable of LVM command output (iterable of lists) |
fields | Field definitions |
wanted | List of requested fields |
lvm | LVM fields |
Builds LVM command line.
Parameters | |
cmd:string | Command name |
sep:string | Field separator character |
options:list of strings | Wanted LVM fields |
name:name or None | Name of requested entity |
Returns unique list of fields wanted from LVM command.
Parameters | |
fields | Field definitions |
wanted | List of requested fields |