]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Manage.c
Add ping_monitor() to mdadm --wait
[thirdparty/mdadm.git] / Manage.c
index 56bc2c3188af1dec8ebcbf6bb866d5584be201f5..76447edacd2be231229cee95ff7d061d1af769dd 100644 (file)
--- a/Manage.c
+++ b/Manage.c
@@ -167,8 +167,6 @@ int Manage_runstop(char *devname, int fd, int runstop, int quiet)
                if (mdi &&
                    mdi->array.level > 0 &&
                    is_subarray(mdi->text_version)) {
-                       char *cp;
-
                        /* This is mdmon managed. */
                        close(fd);
                        if (sysfs_set_str(mdi, NULL,
@@ -181,10 +179,7 @@ int Manage_runstop(char *devname, int fd, int runstop, int quiet)
                        }
 
                        /* Give monitor a chance to act */
-                       cp = strchr(mdi->text_version+1, '/');
-                       if (*cp)
-                               *cp = 0;
-                       ping_monitor(mdi->text_version+1);
+                       ping_monitor(mdi->text_version);
 
                        fd = open(devname, O_RDONLY);
                } else if (mdi &&