Trees | Indices | Help |
|
---|
|
Base DRBD class.
This class contains a few bits of common functionality between the 0.7 and 8.x versions of DRBD.
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_VERSION_RE = re.compile(r"^version: (\d+)\.(\d+)\.(\d+)(?:\.\
|
|||
_VALID_LINE_RE = re.compile("^ *([0-9]+): cs:([^ ]+).*$")
|
|||
_UNUSED_LINE_RE = re.compile("^ *([0-9]+): cs:Unconfigured$")
|
|||
_DRBD_MAJOR = 147
|
|||
_ST_UNCONFIGURED = "Unconfigured"
|
|||
_ST_WFCONNECTION = "WFConnection"
|
|||
_ST_CONNECTED = "Connected"
|
|||
_STATUS_FILE = "/proc/drbd"
|
|||
_USERMODE_HELPER_FILE = "/sys/module/drbd/parameters/usermode_
|
|
|||
Inherited from |
|
Transform the output of _GetProdData into a nicer form.
|
Return the DRBD version. This will return a dict with keys:
|
Set our parameters based on the given minor. This sets our minor variable and our dev_path. |
Check if the given meta device looks like a valid one. This currently only check the size, which must be around 128MiB. |
Rename a device. This is not supported for drbd devices.
|
|
_VERSION_RE
|
_USERMODE_HELPER_FILE
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:24 2010 | http://epydoc.sourceforge.net |