]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Increase buffer for sysfs disk state
authorTomasz Majchrzak <tomasz.majchrzak@intel.com>
Thu, 27 Oct 2016 09:34:16 +0000 (11:34 +0200)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 17 Nov 2016 14:46:42 +0000 (09:46 -0500)
commitcf52eff58ab9d08e3d016c4f22da8adfc295d7e0
treec9702f2ab1392ea108d6fdcafe85998dbbe4db1b
parentbbb52f2b1dd049a15323d7bccde50e5818abd175
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 <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Grow.c
monitor.c
super-intel.c