]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow.c: Block any level migration with chunk size change
authorMariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Thu, 25 Jan 2018 14:12:50 +0000 (15:12 +0100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 25 Jan 2018 19:31:47 +0000 (14:31 -0500)
commita3b831c9e167d1b7fd4f1ec371dc1b95ccf54a5d
treec496186ee5346703aa6e0cf7805e45c7dac633b5
parent31b6f0cdc1f36d92bb233344bbe4a4a01739d37a
Grow.c: Block any level migration with chunk size change

Mixing level and chunk changes in one grow operation is not supported.
Mdadm performs level migration correctly and ignores new chunk, but
after migration it tries to write this chunk to sysfs properties.
This is dangerous and can cause unexpected behaviours.

Block it before level migration starts.

Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Grow.c