mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdbusd: Update table lookup for state lv_attr
(cherry picked from commit 2e01af0f78
)
This commit is contained in:
parent
48f00baea2
commit
ef907d5321
@ -346,13 +346,19 @@ class LvCommon(AutomatedProperties):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def State(self):
|
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',
|
'S': 'invalid Suspended snapshot',
|
||||||
'm': 'snapshot merge failed',
|
'm': 'snapshot merge failed',
|
||||||
'M': 'suspended snapshot (M)erge failed',
|
'M': 'suspended snapshot (M)erge failed',
|
||||||
'd': 'mapped device present without tables',
|
'd': 'mapped device present without tables',
|
||||||
'i': 'mapped device present with inactive table',
|
'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)
|
return self.attr_struct(4, type_map)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user