]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow: fix that preventing resize of array to 32bit size.
authorNeilBrown <neilb@suse.de>
Mon, 21 Jul 2014 06:51:53 +0000 (16:51 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 21 Jul 2014 06:51:53 +0000 (16:51 +1000)
commit4e9a3dd16d656b269f5602624ac4f7109a571368
tree4c25d113353d17ddc61ca73a6a7828f00e00d7f4
parentd31ad6439e2746d6d16d2e6eac771b138e5428c9
Grow: fix that preventing resize of array to 32bit size.

If the request --size to --grow an array to is 32bits
(i.e. msb in bit 32) then mdadm make wrong choice and
uses ioctl instead of setting component_size via sysfs
and the change is ignored.

This is fixed by using correct casts.

Reported-and-tested-by: Killian De Volder <killian.de.volder@megasoft.be>
Signed-off-by: NeilBrown <neilb@suse.de>
Grow.c