diff options
author | Benjamin Marzinski <bmarzins@redhat.com> | 2010-05-17 14:04:27 -0500 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2010-05-20 06:49:38 +0200 |
commit | 69cb2d84466042ae5021740c04703c2cb92f6c1b (patch) | |
tree | e2ac0b2e79b6ef7ac54aaca2a092d5fc4fcf0046 /multipathd/cli.h | |
parent | 8d63b33d0996e141a2451df552b062b908db15bc (diff) | |
download | multipath-tools-69cb2d84466042ae5021740c04703c2cb92f6c1b.tar.gz multipath-tools-69cb2d84466042ae5021740c04703c2cb92f6c1b.tar.bz2 multipath-tools-69cb2d84466042ae5021740c04703c2cb92f6c1b.zip |
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>
Diffstat (limited to 'multipathd/cli.h')
-rw-r--r-- | multipathd/cli.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/multipathd/cli.h b/multipathd/cli.h index f22d459..05de4e3 100644 --- a/multipathd/cli.h +++ b/multipathd/cli.h @@ -23,6 +23,7 @@ enum { __BLACKLIST, __DEVICES, __FMT, + __COUNT, __WILDCARDS, __QUIT, }; @@ -51,6 +52,7 @@ enum { #define BLACKLIST (1 << __BLACKLIST) #define DEVICES (1 << __DEVICES) #define FMT (1 << __FMT) +#define COUNT (1 << __COUNT) #define WILDCARDS (1 << __WILDCARDS) #define QUIT (1 << __QUIT) |