summaryrefslogtreecommitdiff
path: root/Documentation/device-mapper
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2018-09-06 23:54:29 +0300
committerMike Snitzer <snitzer@redhat.com>2018-09-07 00:07:56 +0300
commit36a240a706d43383bbdd377522501ddd2e5771f6 (patch)
tree4fb2525794d41162eb2be6cb4617b60c6ebc37b6 /Documentation/device-mapper
parentc44a5ee803d2b7ed8c2e6ce24a5c4dd60778886e (diff)
downloadlinux-36a240a706d43383bbdd377522501ddd2e5771f6.tar.xz
dm raid: fix RAID leg rebuild errors
On fast devices such as NVMe, a flaw in rs_get_progress() results in false target status output when userspace lvm2 requests leg rebuilds (symptom of the failure is device health chars 'aaaaaaaa' instead of expected 'aAaAAAAA' causing lvm2 to fail). The correct sync action state definitions already exist in decipher_sync_action() so fix rs_get_progress() to use it. Change decipher_sync_action() to return an enum rather than a string for the sync states and call it from rs_get_progress(). Introduce sync_str() to translate from enum to the string that is needed by raid_status(). Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation/device-mapper')
0 files changed, 0 insertions, 0 deletions