]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: allocate buffer to support maximum sector size
authorAlexey Obitotskiy <aleksey.obitotskiy@intel.com>
Tue, 9 May 2017 10:25:44 +0000 (12:25 +0200)
committerJes Sorensen <jsorensen@fb.com>
Tue, 9 May 2017 18:18:33 +0000 (14:18 -0400)
commit853375734edcfd70ba64b444b9e69f7e336a30b7
treee73dfdbee90c6b52f9fd0b1027a7bc1b9d1c0bf6
parent5c5ea85b4deedf5e7491a905bbb4f4a3bc284f2c
imsm: allocate buffer to support maximum sector size

Allocate migration record buffer to support maximum sector size. Disk with
non-matching sector size is not going to be included in the array, however
some preparation/cleanup actions still take place on it and they would
cause a crash. Clear migration record using sector size of the disk (not
array) as they might not match.

Signed-off-by: Alexey Obitotskiy <aleksey.obitotskiy@intel.com>
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c