multipath: Update multipath device on show topology
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 27 Jan 2012 20:41:49 +0000 (14:41 -0600)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Sun, 29 Jan 2012 22:38:32 +0000 (23:38 +0100)
commit4dfdaf2ba8a312960c1fccfc3c0f8fada2465c8b
treee0a868a9fdb8f1fff541a11a229120c3d399d44b
parent52c811039cc9d62ec3bee0359253f0b3dc4e647d
multipath: Update multipath device on show topology

when multipathd's show_map_topology or show_maps_topology commands are
called, multipathd doesn't update its device state from the kernel.  So,
if you do something like call disablequeueing first, show_map_topology won't
register the change. This patche makes multipathd update the device before
printing the topology. This also requires a change to setup_multipath, to
allow it to just read the kernel state, and not update anything.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/structs_vec.c
libmultipath/structs_vec.h
libmultipath/waiter.c
multipathd/cli_handlers.c