]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
The sys_name array in the mdinfo structure is 20 bytes of storage.
authorNikhil Kshirsagar <nkshirsa@redhat.com>
Fri, 10 Jun 2016 03:20:10 +0000 (08:50 +0530)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 14 Jun 2016 17:38:19 +0000 (13:38 -0400)
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>
mdadm.h

diff --git a/mdadm.h b/mdadm.h
index 3d6c638eb3dd219dabc42c17d0364ab8c8246161..1fd38a37a982b2f8062a7ec175f7faf82e2b1611 100755 (executable)
--- a/mdadm.h
+++ b/mdadm.h
@@ -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;