Trees | Indices | Help |
|
---|
|
Config object representing a block device.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
|
|||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|||
Inherited from |
|
|||
list(dict) |
|
|
|||
Inherited from |
|
Return the device path if this device type has a static one. Some devices (LVM for example) live always at the same /dev/ path, irrespective of their status. For such devices, we return this path, for others we return None. Warning: The path returned is not a normalized pathname; callers should check that it is a valid path. |
Compute the needed number of children for activation. This method will return either -1 (all children) or a positive number denoting the minimum number of children needed for activation (only mirrored devices will usually return >=0). Currently, only DRBD8 supports diskless activation (therefore we return 0), for all other we keep the previous semantics and return -1. |
Check if the disk or its children are based on the given type.
|
This function returns the nodes this device lives on. Given the node on which the parent of the device lives on (or, in case of a top-level device, the primary node of the devices' instance), this function will return a list of nodes on which this devices needs to (or can) be assembled. |
Compute the node/disk tree for this disk and its children. This method, given the node on which the parent disk lives, will return the list of all (node UUID, disk) pairs which describe the disk tree in the most compact way. For example, a drbd/lvm stack will be returned as (primary_node, drbd) and (secondary_node, drbd) which represents all the top-level devices on the nodes. |
Compute the per-VG growth requirements. This only works for VG-based disks.
|
Update the size of this disk after growth. This method recurses over the disks's children and updates their size correspondigly. The method needs to be kept in sync with the actual algorithms from bdev. |
Updates the dynamic disk params for the given node. This is mainly used for drbd, which needs ip/port configuration. Arguments:
The target_node must exist in nodes_ip, and should be one of the nodes in the logical ID if this device is a DRBD device. |
Disk-specific conversion to standard python types. This replaces the children lists of objects with lists of standard python types.
|
Custom function for Disks
|
Custom str() formatter for disks.
|
Fill defaults for missing configuration values.
|
Computes Logical Disk parameters from Disk Template parameters.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 7 16:23:37 2016 | http://epydoc.sourceforge.net |