dm raid: fix activation of existing raid4/10 devices
authorHeinz Mauelshagen <heinzm@redhat.com>
Mon, 17 Oct 2016 19:20:07 +0000 (21:20 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 17 Oct 2016 20:41:31 +0000 (16:41 -0400)
commitb052b07c39d593c9954a84d5bbe1563999483f38
tree8846cbd53b679e7edae513880c0c4e3c7ad8638e
parent12a7cf5ba6c776a2621d8972c7d42e8d3d959d20
dm raid: fix activation of existing raid4/10 devices

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().

Cc: stable@vger.kernel.org # 4.8
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/dm-raid.txt
drivers/md/dm-raid.c