]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Grow_reshape: set only component_size for size grow
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>
Fri, 26 Apr 2024 06:33:00 +0000 (08:33 +0200)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 6 Aug 2024 12:40:49 +0000 (14:40 +0200)
commitc653054b322a03e8912ac05accc87b6a1ba8daab
tree2b11bcdbcb3c15d53b1b981935549deb1ecf5268
parent18f6abca8d689206807c03469d6f53621507b263
Grow_reshape: set only component_size for size grow

Component_size couldn't be set using ioctl when new drive size is big
(e.g. 5TB). Command value is bigger than 32 bits and error is reported
- it is known ioctl limitation. Remove updating array properties using
ioctl, use sysfs instead. Sysfs was introduced in 3.10, so now it is old
enough to be safely used. Array_size in sysfs should be set for every
size change for external metadata, when grow is performed without
errors.

Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
Grow.c