summaryrefslogtreecommitdiff
path: root/mdmon.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-02-04 17:34:06 +1100
committerNeilBrown <neilb@suse.de>2010-02-04 17:34:06 +1100
commita9596b79a316404bbb4e3792c97b3d0a597ec885 (patch)
treee158d7fc98c982462292f637a5d5a6f68d64cf1b /mdmon.c
parent5d4d1b26d3da8b489ed7e2f5a38f7d90b7f4008f (diff)
mdmon: recognise --all in place of /proc/mdstat
It seems more meaningful. Keep the old option as well for back compatibility. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdmon.c')
-rw-r--r--mdmon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdmon.c b/mdmon.c
index fa49706b..37474603 100644
--- a/mdmon.c
+++ b/mdmon.c
@@ -274,7 +274,8 @@ int main(int argc, char *argv[])
usage();
}
- if (strcmp(container_name, "/proc/mdstat") == 0) {
+ if (strcmp(container_name, "/proc/mdstat") == 0 ||
+ strcmp(container_name, "--all") == 0) {
struct mdstat_ent *mdstat, *e;
/* launch an mdmon instance for each container found */