diff options
Diffstat (limited to 'mdopen.c')
-rw-r--r-- | mdopen.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -166,8 +166,10 @@ int open_mddev(char *dev, int autof) } if (ioctl(mdfd, GET_ARRAY_INFO, &array)==0) { /* already active */ - must_remove = 1; close(mdfd); + fprintf(sterr, Name ": %s is alreadyt active.\n", + dev); + return -1; } else { if (major != MD_MAJOR && parts > 0) make_parts(dev, parts); |