dm raid: table line rebuild status fixes
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 19 Dec 2019 16:58:46 +0000 (17:58 +0100)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2020 16:43:37 +0000 (11:43 -0500)
commit43f3952a51f8198d365acb7f51fe42d578fe5d0a
treecfc5f972bb39bb36a274dfe92be263e9236e6299
parent88e7cafdcae8bc6354804c685379784c55e276ca
dm raid: table line rebuild status fixes

raid_status() wasn't emitting rebuild flags on the table line properly
because the rdev number was not yet set properly; index raid component
devices array directly to solve.

Also fix wrong argument count on emitted table line caused by 1 too
many rebuild/write_mostly argument and consider any journal_(dev|mode)
pairs.

Link: https://bugzilla.redhat.com/1782045
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/dm-raid.rst
drivers/md/dm-raid.c