summaryrefslogtreecommitdiffstats
path: root/mdopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdopen.c')
-rw-r--r--mdopen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdopen.c b/mdopen.c
index 5cca179..d76ebf9 100644
--- a/mdopen.c
+++ b/mdopen.c
@@ -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);