dm raid: fix activation of existing raid4/10 devices
commit5a805cd29284a4fe36add86965754fc1691db1b7
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 17 Oct 2016 19:20:07 +0000 (17 21:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 15:38:52 +0000 (10 16:38 +0100)
treefaff2bc49b07a1c143490e89e05450ff65dd8969
parent6e5456768ba1ee581f8e43c8f90296ead4c30b98
dm raid: fix activation of existing raid4/10 devices

commit b052b07c39d593c9954a84d5bbe1563999483f38 upstream.

dm-raid 1.9.0 fails to activate existing RAID4/10 devices that have the
old superblock format (which does not have takeover/reshaping support
that was added via commit 33e53f06850f).

Fix validation path for old superblocks by reverting to the old raid4
layout and basing checks on mddev->new_{level,layout,...} members in
super_init_validation().

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/device-mapper/dm-raid.txt
drivers/md/dm-raid.c