From ef907d53219cc6d985d3c2536569f2042fc24999 Mon Sep 17 00:00:00 2001 From: Tony Asleson Date: Tue, 11 Dec 2018 11:24:51 -0600 Subject: [PATCH] lvmdbusd: Update table lookup for state lv_attr (cherry picked from commit 2e01af0f78fb63c084998f728668553d8cce2b64) --- daemons/lvmdbusd/lv.py | 10 ++++++++-- 1 file 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