]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Monitor.c
Extend --wait-clean to checkpoint resync
[thirdparty/mdadm.git] / Monitor.c
index 8d8939cef7ad190def2619e6d3f6acb4f51512f2..a0803909b7608c884e0ea2b1b6af642d44208e3a 100644 (file)
--- a/Monitor.c
+++ b/Monitor.c
@@ -686,6 +686,9 @@ int WaitClean(char *dev)
                tm.tv_sec = 5;
                tm.tv_usec = 0;
 
+               /* give mdmon a chance to checkpoint resync */
+               sysfs_set_str(mdi, NULL, "sync_action", "idle");
+
                FD_ZERO(&fds);
 
                /* wait for array_state to be clean */