module documentation
Block device abstraction.
| Class | |
Logical Volume block device. |
| Class | |
A block device with persistent node |
| Class | |
A RADOS Block Device (rbd). |
| Exception | |
`rbd showmmapped' JSON formatting error Exception class. |
| Function | |
Try to attach or assemble an existing device. |
| Function | |
Create a device. |
| Function | |
Search for an existing, assembled device. |
| Constant | DEV |
Map disk types to disk type classes. |
| Function | _ |
Throws an error if the given result is a failed one. |
| Function | _ |
Verifies if all disk parameters are set. |
| Function | _ |
Undocumented |
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.
| Parameters | |
disk:objects.Disk | the disk object to assemble |
children:list of bdev.BlockDev | the list of block devices that are children of the device represented by the disk parameter |
Create a device.
| Parameters | |
disk:objects.Disk | the disk object to create |
children:list of bdev.BlockDev | the list of block devices that are children of the device represented by the disk parameter |
| excl | Whether exclusive_storage is active |
| Returns | |
bdev.BlockDev | the created device, or None in case of an error |
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.
| Parameters | |
disk:objects.Disk | the disk object to find |
children:list of bdev.BlockDev | the list of block devices that are children of the device represented by the disk parameter |
| **kwargs | Undocumented |
DEV_MAP =
¶
Map disk types to disk type classes.
| See Also | |
Assemble, FindDevice, Create. |