From cf52eff58ab9d08e3d016c4f22da8adfc295d7e0 Mon Sep 17 00:00:00 2001 From: Tomasz Majchrzak Date: Thu, 27 Oct 2016 11:34:16 +0200 Subject: [PATCH] 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 --- Grow.c | 6 ++++-- monitor.c | 4 ++-- super-intel.c | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) 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<