]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: load migration record from right disk
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Mon, 24 Oct 2016 10:00:17 +0000 (12:00 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 26 Oct 2016 16:00:46 +0000 (12:00 -0400)
commit12fe93e9133aefce2f18a622e1910fac3f774923
tree48e22069e4977b548caa44b0bf78f8dc4c9996bc
parente9eb82adb811af0d07d4d4675151e9a97b2724b9
imsm: load migration record from right disk

Migration record is only stored on disks in first and second metadata
slot. The function to load the record incorrectly passes disk slot as
disk index. If rebuilt has taken place for a container, disk slot
doesn't match disk index so it causes migration record to be read from a
disk it has not been written to. As a result reshape operation fails.

Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super-intel.c