diff options
author | Neil Brown <neilb@suse.de> | 2006-05-26 04:32:15 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-26 04:32:15 +0200 |
commit | 2e2642f2c530369ff4f905932860681a48ca4d22 (patch) | |
tree | 919857a8d65818b1779d7de81dd1d95cf59e0f7f | |
parent | Improve names reported by --examine --brief (diff) | |
download | mdadm-2e2642f2c530369ff4f905932860681a48ca4d22.tar.xz mdadm-2e2642f2c530369ff4f905932860681a48ca4d22.zip |
Never remove device nodes of active devices.
This is just too risky.
Signed-off-by: Neil Brown <neilb@suse.de>
-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); |