Don't display the state of the newly added map during addition in the daemon
authorKonrad Rzeszutek <konrad@virtualiron.com>
Tue, 24 Mar 2009 18:14:37 +0000 (19:14 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Tue, 24 Mar 2009 18:14:37 +0000 (19:14 +0100)
commitf46ffaf4e0a079180d4e11b4b2fb8425bda4d065
tree10e58fc878471c6c95795d8ccb5317b9f1ab9dca
parent1423379594997d08e28fba0bd3aab9089f4ba669
Don't display the state of the newly added map during addition in the daemon
and don't switch groups.

A previous commit mass-changed #ifdef DAEMON to check for 'mpp->waiter'.
Unfortunatly when the 'domap' function is called with ACT_CREATE in the daemon,
the mpp->waiter is not set, hence the multipath client mode logic is choosen.
Fixing this triggers another issues which is that newly added path via
ACT_CREATE won't have their waitevent thread created as the caller checks
mpp->action (which changed to ACT_NOTHING) and won't start the thread.
libmultipath/config.h
libmultipath/configure.c
multipath/main.c
multipathd/main.c
multipathd/main.h