File 0203-imsm-More-precise-message-when-spanned-raid-is-creat.patch of Package mdadm.7989

From cca672081e7f03d2763fdc7915379d37d581ad8b Mon Sep 17 00:00:00 2001
From: Michal Zylowski <michal.zylowski@intel.com>
Date: Wed, 8 Nov 2017 15:43:41 +0100
Subject: [PATCH] imsm: More precise message when spanned raid is created
Git-commit: cca672081e7f03d2763fdc7915379d37d581ad8b
Patch-mainline: mdadm-4.0+
References: bsc#1069165, bsc#1069167, bsc#1068030

When RAID is created between VMD and SATA disks, printed message is
"Mixing devices attached to different VMD domains is not allowed". This message
is unclear and misleading because creating spanned containers between different
VMD domains is allowed. Set error message to more precise text.

Signed-off-by: Michal Zylowski <michal.zylowski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Signed-off-by: Coly Li <colyli@suse.de>

---
 super-intel.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index b561fe2..2f912f2 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -4500,8 +4500,7 @@ static int find_intel_hba_capability(int fd, struct intel_super *super, char *de
 				hba = hba->next;
 			}
 			fprintf(stderr, ").\n"
-				"    Mixing devices attached to different %s is not allowed.\n",
-				hba_name->type == SYS_DEV_VMD ? "VMD domains" : "controllers");
+				"    Mixing devices attached to different controllers is not allowed.\n");
 		}
 		return 2;
 	}
-- 
2.13.6
openSUSE Build Service is sponsored by