dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/mdadm-3.4-The-sys_name-array-in-the-mdinfo-structure-is-20-byt.patch

7bdf8f
From 6e6e98746dba7e900f23e92bbb0da01fe7a169da Mon Sep 17 00:00:00 2001
7bdf8f
From: Nikhil Kshirsagar <nkshirsa@redhat.com>
7bdf8f
Date: Fri, 10 Jun 2016 08:50:10 +0530
7bdf8f
Subject: [PATCH] The sys_name array in the mdinfo structure is 20 bytes of
7bdf8f
 storage.
7bdf8f
7bdf8f
Increasing the size of this array to 32 bytes to handle cases with
7bdf8f
longer device names.
7bdf8f
7bdf8f
Signed-off-by: Nikhil Kshirsagar <nkshirsa@redhat.com>
7bdf8f
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
7bdf8f
---
7bdf8f
 mdadm.h | 2 +-
7bdf8f
 1 file changed, 1 insertion(+), 1 deletion(-)
7bdf8f
7bdf8f
diff --git a/mdadm.h b/mdadm.h
7bdf8f
index 3d6c638..1fd38a3 100755
7bdf8f
--- a/mdadm.h
7bdf8f
+++ b/mdadm.h
7bdf8f
@@ -289,7 +289,7 @@ struct mdinfo {
7bdf8f
 	int container_enough; /* flag external handlers can set to
7bdf8f
 			       * indicate that subarrays have not enough (-1),
7bdf8f
 			       * enough to start (0), or all expected disks (1) */
7bdf8f
-	char		sys_name[20];
7bdf8f
+	char		sys_name[32];
7bdf8f
 	struct mdinfo *devs;
7bdf8f
 	struct mdinfo *next;
7bdf8f
 
7bdf8f
-- 
7bdf8f
2.5.5
7bdf8f