]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: fix reshape for >2TB drives
authorPawel Baldysiak <pawel.baldysiak@intel.com>
Mon, 28 Jan 2019 16:10:41 +0000 (17:10 +0100)
committerJes Sorensen <jsorensen@fb.com>
Mon, 11 Feb 2019 19:41:25 +0000 (14:41 -0500)
commit9f4218274cd4a1e1f356a1617f9a1d09960cf255
treebe75ac74487b99ab7b6c3c5833e8492d27dea3c0
parenta4e96fd8f3f0b5416783237c1cb6ee87e7eff23d
imsm: fix reshape for >2TB drives

If reshape is performed on drives larger then 2 TB,
migration checkpoint area that is calculated exeeds 32-bit value.
This checkpoint area is a reserved space threated as backup
during reshape - at the end of the drive, right before metadata.
As a result - wrong space is used and the data that may exists there
is overwritten.

Adding additional field to migration record to track high order 32-bits
of pba of this area. Three other fields that may exceed 32-bit value
for large drives are added as well.

Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c