summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2018-12-11 11:24:51 -0600
committerMarian Csontos <mcsontos@redhat.com>2018-12-17 16:11:17 +0100
commitef907d53219cc6d985d3c2536569f2042fc24999 (patch)
tree0fb8e5065fee140447b2751bf4a23fe8195e4104
parent48f00baea2c7b4b80e04d47707c195d74e31f841 (diff)
downloadlvm2-ef907d53219cc6d985d3c2536569f2042fc24999.tar.gz
lvmdbusd: Update table lookup for state lv_attr
(cherry picked from commit 2e01af0f78fb63c084998f728668553d8cce2b64)
-rw-r--r--daemons/lvmdbusd/lv.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/daemons/lvmdbusd/lv.py b/daemons/lvmdbusd/lv.py
index 1b66af595..c0029b85c 100644
--- a/daemons/lvmdbusd/lv.py
+++ b/daemons/lvmdbusd/lv.py
@@ -346,13 +346,19 @@ class LvCommon(AutomatedProperties):
@property
def State(self):
- type_map = {'a': 'active', 's': 'suspended', 'I': 'Invalid snapshot',
+ type_map = {'a': 'active',
+ 's': 'suspended',
+ 'I': 'Invalid snapshot',
'S': 'invalid Suspended snapshot',
'm': 'snapshot merge failed',
'M': 'suspended snapshot (M)erge failed',
'd': 'mapped device present without tables',
'i': 'mapped device present with inactive table',
- 'X': 'unknown', '-': 'Unspecified'}
+ 'h': 'historical',
+ 'c': 'check needed suspended thin-pool',
+ 'C': 'check needed',
+ 'X': 'unknown',
+ '-': 'Unspecified'}
return self.attr_struct(4, type_map)
@property