Package ganeti :: Package storage :: Module container
[hide private]
[frames] | no frames]

Module container

source code

Storage container abstraction.

Classes [hide private]
  _Base
Base class for storage abstraction.
  FileStorage
File storage unit.
  _LvmBase
Base class for LVM storage containers.
  LvmPvStorage
LVM Physical Volume storage unit.
  LvmVgStorage
LVM Volume Group storage unit.
Functions [hide private]
 
_ParseSize(value) source code
bool
_LvmPvGetAllocatable(attr)
Determines whether LVM PV is allocatable.
source code
 
GetStorageClass(name)
Returns the class for a storage type.
source code
 
GetStorage(name, *args)
Factory function for storage methods.
source code
Variables [hide private]
  _STORAGE_TYPES = {constants.ST_FILE: FileStorage, constants.ST...

Imports: logging, errors, constants, utils


Function Details [hide private]

GetStorageClass(name)

source code 

Returns the class for a storage type.

Parameters:
  • name (string) - Storage type

GetStorage(name, *args)

source code 

Factory function for storage methods.

Parameters:
  • name (string) - Storage type

Variables Details [hide private]

_STORAGE_TYPES

Value:
{constants.ST_FILE: FileStorage, constants.ST_LVM_PV: LvmPvStorage, co\
nstants.ST_LVM_VG: LvmVgStorage, constants.ST_SHARED_FILE: FileStorage\
, constants.ST_GLUSTER: FileStorage,}