mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmdbusd: Update table lookup for health lv_attr
(cherry picked from commit a6cba2d0a0
)
This commit is contained in:
parent
da9b499bc2
commit
48f00baea2
@ -369,9 +369,17 @@ class LvCommon(AutomatedProperties):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def Health(self):
|
def Health(self):
|
||||||
type_map = {'p': 'partial', 'r': 'refresh',
|
type_map = {'p': 'partial',
|
||||||
'm': 'mismatches', 'w': 'writemostly',
|
'r': 'refresh needed',
|
||||||
'X': 'X unknown', '-': 'Unspecified'}
|
'm': 'mismatches',
|
||||||
|
'w': 'writemostly',
|
||||||
|
'X': 'unknown',
|
||||||
|
'-': 'unspecified',
|
||||||
|
's': 'reshaping',
|
||||||
|
'F': 'failed',
|
||||||
|
'D': 'Data space',
|
||||||
|
'R': 'Remove',
|
||||||
|
'M': 'Metadata'}
|
||||||
return self.attr_struct(8, type_map)
|
return self.attr_struct(8, type_map)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user