Revision 78f99abb lib/storage/drbd_info.py
b/lib/storage/drbd_info.py | ||
---|---|---|
41 | 41 |
""" |
42 | 42 |
UNCONF_RE = re.compile(r"\s*[0-9]+:\s*cs:Unconfigured$") |
43 | 43 |
LINE_RE = re.compile(r"\s*[0-9]+:\s*cs:(\S+)\s+(?:st|ro):([^/]+)/(\S+)" |
44 |
"\s+ds:([^/]+)/(\S+)\s+.*$") |
|
44 |
r"\s+ds:([^/]+)/(\S+)\s+.*$")
|
|
45 | 45 |
SYNC_RE = re.compile(r"^.*\ssync'ed:\s*([0-9.]+)%.*" |
46 | 46 |
# Due to a bug in drbd in the kernel, introduced in |
47 | 47 |
# commit 4b0715f096 (still unfixed as of 2011-08-22) |
48 |
"(?:\s|M)" |
|
49 |
"finish: ([0-9]+):([0-9]+):([0-9]+)\s.*$") |
|
48 |
r"(?:\s|M)"
|
|
49 |
r"finish: ([0-9]+):([0-9]+):([0-9]+)\s.*$")
|
|
50 | 50 |
|
51 | 51 |
CS_UNCONFIGURED = "Unconfigured" |
52 | 52 |
CS_STANDALONE = "StandAlone" |
Also available in: Unified diff