Trees | Indices | Help |
|
---|
|
Block device abstraction
|
|||
RbdShowmappedJsonError `rbd showmmapped' JSON formatting error Exception class. |
|||
BlockDev Block device abstract class. |
|||
LogicalVolume Logical Volume block device. |
|||
DRBD8Status A DRBD status representation class. |
|||
BaseDRBD Base DRBD class. |
|||
DRBD8 DRBD v8.x block device. |
|||
FileStorage File device. |
|||
PersistentBlockDevice A block device with persistent node |
|||
RADOSBlockDevice A RADOS Block Device (rbd). |
|||
ExtStorageDevice A block device provided by an ExtStorage Provider. |
|
|||
boolean |
|
||
|
|||
|
|||
|
|||
frozenset |
|
||
list |
|
||
|
|||
|
|||
list |
|
||
|
|||
None or a block device path (during attach) |
|
||
tuple |
|
||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_DEVICE_READ_SIZE = 128* 1024
|
|||
DEV_MAP = {constants.LD_LV: LogicalVolume, constants.LD_DRBD8:
|
Imports: re, time, errno, shlex, stat, pyp, os, logging, math, utils, errors, constants, objects, compat, netutils, pathutils, serializer
|
Executes the given function, ignoring BlockDeviceErrors. This is used in order to simplify the execution of cleanup or rollback functions.
|
Log an error to the node daemon and the raise an exception.
|
Throws an error if the given result is a failed one.
|
Check if we can read from the given device. This tries to read the first 128k of the device. |
Cross-checks a list of paths for prefixes considered bad. Some paths, e.g. "/bin", should not be used for file storage.
|
Returns a list of file storage paths whose prefix is considered bad. See _ComputeWrongFileStoragePaths. |
Checks if a path is in a list of allowed paths for file storage.
|
Loads file containing allowed file storage paths.
|
Checks if a path is allowed for file storage.
|
Take an External Storage action. Take an External Storage action concerning or affecting a specific Volume inside the External Storage.
|
Create an ExtStorage instance from disk. This function will return an ExtStorage instance if the given name is a valid ExtStorage name.
|
Calculate the environment for an External Storage script.
|
Compute the ExtStorage log filename for a given Volume and operation.
|
Search for an existing, assembled device. This will succeed only if the device exists and is assembled, but it does not do any actions in order to activate the device.
|
Try to attach or assemble an existing device. This will attach to assemble the device, as needed, to bring it fully up. It must be safe to run on already-assembled devices.
|
Create a device.
|
|
DEV_MAP
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jul 4 09:38:33 2014 | http://epydoc.sourceforge.net |