multipath: add "count paths" multipathd command
authorBenjamin Marzinski <bmarzins@redhat.com>
Mon, 17 May 2010 19:04:27 +0000 (14:04 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Thu, 20 May 2010 04:49:38 +0000 (06:49 +0200)
commit69cb2d84466042ae5021740c04703c2cb92f6c1b
treee2ac0b2e79b6ef7ac54aaca2a092d5fc4fcf0046
parent8d63b33d0996e141a2451df552b062b908db15bc
multipath: add "count paths" multipathd command

This adds a new multipathd command, "count paths". which returns information in
the format

Paths: <nr_of_paths>
Busy: <True|False>

where "Paths" is the number of monitored paths, and "Busy" is set when
multipathd is currently handling uevents.  With this, it is possible to quickly
get the number of paths being monitored, as well as an idea if more paths may
be showing up shortly.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/uevent.c
libmultipath/uevent.h
multipathd/cli.c
multipathd/cli.h
multipathd/cli_handlers.c
multipathd/cli_handlers.h
multipathd/main.c
multipathd/multipathd.8