The sys_name array in the mdinfo structure is 20 bytes of storage.

Increasing the size of this array to 32 bytes to handle cases with
longer device names.

Signed-off-by: Nikhil Kshirsagar <nkshirsa@redhat.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
This commit is contained in:
Nikhil Kshirsagar 2016-06-10 08:50:10 +05:30 committed by Jes Sorensen
parent 26c62b8e76
commit 6e6e98746d
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ struct mdinfo {
int container_enough; /* flag external handlers can set to
* indicate that subarrays have not enough (-1),
* enough to start (0), or all expected disks (1) */
char sys_name[20];
char sys_name[32];
struct mdinfo *devs;
struct mdinfo *next;