]> git.ipfire.org Git - thirdparty/mdadm.git/commit - monitor.c
mdmon: pass symbolic name to mdmon instead of device name.
authorNeilBrown <neilb@suse.de>
Thu, 20 Nov 2008 03:51:42 +0000 (14:51 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 20 Nov 2008 03:51:42 +0000 (14:51 +1100)
commite8a70c89585ddca2bcb4160808f64506c64df13b
tree056c7f8aa0eb9bc1b4b76132d419226c12095030
parentbf68e9d9ab185121b6004fc81b531bce8348726d
mdmon: pass symbolic name to mdmon instead of device name.

Now that names in /dev are usually created (eventually) by udev,
it isn't really safe to rely in finding a name in /dev to pass to
mdmon to identify which array to monitor.
And it isn't really necessary to have a name in /dev.
So just pass the symbolic name, e.g. md127 or md123.

Change util.c to pass that name, and change mdmon to process the
name sensibly.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.h
mdmon.c
monitor.c
util.c