diff options
author | Dan Williams <dan.j.williams@intel.com> | 2008-09-28 12:12:06 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2008-10-15 14:15:51 -0700 |
commit | 7146ec6a1efbd36087c406d0fe63480ec49da599 (patch) | |
tree | e9e221084e3849858b81887aeb8b18c33582e5c6 /Monitor.c | |
parent | 0dd3ba30aa1fbab2d7e62fca5169789ceb62b3f1 (diff) | |
download | mdadm-7146ec6a1efbd36087c406d0fe63480ec49da599.tar.gz |
Extend --wait-clean to checkpoint resync
Root file systems backed by external metadata arrays need to be
explicitly checkpointed near the time the rootfs is marked readonly as
userspace will not have an opportunity to react to the final shutdown of
the array.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'Monitor.c')
-rw-r--r-- | Monitor.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |