Improve the message when mdadm detects similar superblocks
If they are for a partition and a whole device (common case) they old message doesn't really cover the situation. So add the "overlap" option to the text. Also detect whether the device list was in mdadm.conf and act accordingly.
This commit is contained in:
parent
45c073c921
commit
d2df86e0a7
|
@ -531,9 +531,12 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
|
|||
" to have very similar superblocks.\n"
|
||||
" If they are really different, "
|
||||
"please --zero the superblock on one\n"
|
||||
" If they are the same, please remove "
|
||||
"one from the list.\n",
|
||||
devices[best[i]].devname, devname);
|
||||
" If they are the same or overlap,"
|
||||
" please remove one from %s.\n",
|
||||
devices[best[i]].devname, devname,
|
||||
inargv ? "the list" :
|
||||
"the\n DEVICE list in mdadm.conf"
|
||||
);
|
||||
if (must_close) close(mdfd);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue