From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Majchrzak Subject: [PATCH] Increase buffer for sysfs disk state Date: Thu, 27 Oct 2016 11:34:16 +0200 Message-ID: <1477560856-17310-1-git-send-email-tomasz.majchrzak@intel.com> Return-path: Sender: linux-raid-owner@vger.kernel.org To: linux-raid@vger.kernel.org Cc: Jes.Sorensen@redhat.com, Tomasz Majchrzak List-Id: linux-raid.ids 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 --- 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 7402597..9f1570e 100755 --- a/Grow.c +++ b/Grow.c @@ -4017,8 +4017,10 @@ static int grow_backup(struct mdinfo *sra, if (sd->disk.state & (1<disk.state & (1<disk.state & (1<disk.state & (1<