From: Tomasz Majchrzak Date: Thu, 27 Oct 2016 09:34:16 +0000 (+0200) Subject: Increase buffer for sysfs disk state X-Git-Tag: mdadm-4.0~31 X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=commitdiff_plain;h=cf52eff58ab9d08e3d016c4f22da8adfc295d7e0 Increase buffer for sysfs disk state Bad block support has incremented sysfs disk state reported by kernel ("external_bbl") so it became longer than 20 bytes. It causes reshape to fail as it reads truncated entry from sysfs. Increase buffer so it can accommodate the string including all state values currently implemented in kernel at the same time. Signed-off-by: Tomasz Majchrzak Signed-off-by: Jes Sorensen --- diff --git a/Grow.c b/Grow.c index a8f62432..455c5f90 100755 --- a/Grow.c +++ b/Grow.c @@ -4048,8 +4048,10 @@ static int grow_backup(struct mdinfo *sra, if (sd->disk.state & (1<disk.state & (1<disk.state & (1<disk.state & (1<