]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - msg.c
mdadm: Fix Segmentation fault.
[thirdparty/mdadm.git] / msg.c
diff --git a/msg.c b/msg.c
index dc780b3ed4bf6fde03a0e660f89f7c99c1584031..44aad1f60f75a18860eef2d96fcb6c361a57341a 100644 (file)
--- a/msg.c
+++ b/msg.c
@@ -487,3 +487,13 @@ int ping_manager(char *devname)
        close(sfd);
        return err;
 }
+
+/* using takeover operation for grow purposes, mdadm has to be sure
+ * that mdmon processes all updates, and if necessary it will be closed
+ * at takeover to raid0 operation
+  */
+void flush_mdmon(char *container)
+{
+       ping_manager(container);
+       ping_monitor(container);
+}