class documentation

class LvmPvStorage(_LvmBase):

View In Hierarchy

LVM Physical Volume storage unit.

Method Modify Modifies flags on a physical volume.
Constant LIST_COMMAND Undocumented
Constant LIST_FIELDS Undocumented
Method _SetAllocatable Sets the "allocatable" flag on a physical volume.

Inherited from _LvmBase:

Method List Returns a list of all entities within the storage unit.
Constant LIST_SEP Undocumented
Class Method _BuildList Builds the final result list.
Static Method _BuildListCommand Builds LVM command line.
Static Method _GetLvmFields Returns unique list of fields wanted from LVM command.
Static Method _RunListCommand Run LVM command.
Static Method _SplitList Splits LVM command output into rows and fields.

Inherited from _Base (via _LvmBase):

Method Execute Executes an operation on an entity within the storage unit.
def Modify(self, name, changes):

Modifies flags on a physical volume.

See _Base.Modify.

LIST_COMMAND: str =

Undocumented

Value
'pvs'
LIST_FIELDS =

Undocumented

Value
[(constants.SF_NAME, ['pv_name'], None),
 (constants.SF_SIZE, ['pv_size'], _ParseSize),
 (constants.SF_USED, ['pv_used'], _ParseSize),
 (constants.SF_FREE, ['pv_free'], _ParseSize),
 (constants.SF_ALLOCATABLE, ['pv_attr'], _LvmPvGetAllocatable)]
def _SetAllocatable(self, name, allocatable):

Sets the "allocatable" flag on a physical volume.

Parameters
name:stringPhysical volume name
allocatable:boolWhether to set the "allocatable" flag