]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdmon: remove switch-root functionality.
authorNeilBrown <neilb@suse.de>
Mon, 8 Feb 2010 03:08:13 +0000 (14:08 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 8 Feb 2010 03:08:13 +0000 (14:08 +1100)
commitb5c727dc1a55323f02e5f60a50bcecb866dd51ea
tree85ef79c62ace2c5d548ff1430039faa234351482
parenta9596b79a316404bbb4e3792c97b3d0a597ec885
mdmon: remove switch-root functionality.

Using switch-root and then creating files in /var/run once
that location is writable is racing as most distro clean out
/var/run shortly after it is mounted.
This can cause the .pid and .sock files to be deleted shortly
after they are created.

This option doesn't seem to be used at all any, and the alternative
of communicating the pid etc in some preserved directory and then
restarting mdmon once all is settled seems simpler.

So remove the code for supporting switchroot and update man page
accordingly.

Signed-off-by: NeilBrown <neilb@suse.de>
mdmon.8
mdmon.c