summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorHeinz Mauelshagen <heinzm@redhat.com>2017-12-02 01:03:55 +0100
committerMike Snitzer <snitzer@redhat.com>2017-12-08 16:59:58 +0100
commit4102d9de6d375fc27ec70382c4068f4f9f62ce4f (patch)
treea4b92332dd9b24c1b66042d3c03c28849bab81f3 /virt
parentdm raid: avoid passing array_in_sync variable to raid_status() callees (diff)
downloadlinux-4102d9de6d375fc27ec70382c4068f4f9f62ce4f.tar.xz
linux-4102d9de6d375fc27ec70382c4068f4f9f62ce4f.zip
dm raid: fix rs_get_progress() synchronization state/ratio
Fix various sync state issues causing racy/bogus sync ratio, sync_action ad health chars in dm_status() info output. Sync ratio could be N/N (i.e. 100%) shortly after raid set creation, i.e. creating a new RaidLV or upconverting a linear LV to raid1 thus: "0 2097152 raid raid1 2 Aa 2097162/2097152 recover 0 0 -" instead of: "0 2097152 raid raid1 2 Aa 0/2097152 idle 0 0 -" Sync action could be non-idle, when the MD thread was done with io. Health chars could be 'A' when they should be 'a' for a short time before a resynchonization started. Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions