dm raid: clarify and fix recovery
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 23 Jun 2016 22:21:09 +0000 (00:21 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 18 Jul 2016 19:37:23 +0000 (15:37 -0400)
commit4dff2f1e26f2621dc5b02436cb889df15400036b
tree2590ed9dcfa71751694608c19599a87e6ef8e853
parent0095dbc98bfdcd5a3b6cda6d2dde70ae5ffefec7
dm raid: clarify and fix recovery

Add function rs_setup_recovery() to allow for defined setup of RAID set
recovery in the constructor.

Will be called with dev_sectors={0, rdev->sectors, MaxSectors} to
recover a new or enforced sync, grown or not to be synhronized RAID set
respectively.

Prevents recovery on raid0, which doesn't support it.

Enforces recovery on raid6 to ensure properly defined Syndromes
mandatory for that MD personality are being created.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c