diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-10-13 17:37:02 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-10-13 17:41:58 -0700 |
commit | 9f1da8242161ba684f2867f211eb7e9d4baa84bb (patch) | |
tree | e396bffdec4ef5915f4eb138f343809431042dc0 /mdadm.c | |
parent | b928b5a0384e7181425a282a0586cbbb3c85fbc3 (diff) | |
download | mdadm-9f1da8242161ba684f2867f211eb7e9d4baa84bb.tar.gz |
mdmon: preserve socket over chroot
Connect to the monitor in the old namespace and use that connection for
WaitClean requests when stopping the victim mdmon instance. This allows
ping_monitor() to work post chroot().
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1276,7 +1276,7 @@ int main(int argc, char *argv[]) export, test, homehost); else - rv |= WaitClean(name, v); + rv |= WaitClean(name, -1, v); put_md_name(name); } free_mdstat(ms); @@ -1337,7 +1337,7 @@ int main(int argc, char *argv[]) case 'W': rv |= Wait(dv->devname); continue; case Waitclean: - rv |= WaitClean(dv->devname, verbose-quiet); continue; + rv |= WaitClean(dv->devname, -1, verbose-quiet); continue; } mdfd = open_mddev(dv->devname, 1); if (mdfd>=0) { |