]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: More precise message when spanned raid is created
authorMichal Zylowski <michal.zylowski@intel.com>
Wed, 8 Nov 2017 14:43:41 +0000 (15:43 +0100)
committerJes Sorensen <jsorensen@fb.com>
Thu, 9 Nov 2017 17:00:52 +0000 (12:00 -0500)
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>
super-intel.c

index b561fe20d0f284e06de3ce2f3436ef01d977380f..2f912f220919822258b974983924bd6b509c41a5 100644 (file)
@@ -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;
        }