imsm: More precise message when spanned raid is created

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>
This commit is contained in:
Michal Zylowski 2017-11-08 15:43:41 +01:00 committed by Jes Sorensen
parent 5339f99606
commit cca672081e
1 changed files with 1 additions and 2 deletions

View 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;
}