diff options
author | NeilBrown <neilb@suse.de> | 2010-02-04 07:34:06 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-02-04 07:34:06 +0100 |
commit | a9596b79a316404bbb4e3792c97b3d0a597ec885 (patch) | |
tree | e158d7fc98c982462292f637a5d5a6f68d64cf1b | |
parent | mdmon: allow pid to be stored in different directory. (diff) | |
download | mdadm-a9596b79a316404bbb4e3792c97b3d0a597ec885.tar.xz mdadm-a9596b79a316404bbb4e3792c97b3d0a597ec885.zip |
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>
-rw-r--r-- | mdmon.8 | 6 | ||||
-rw-r--r-- | mdmon.c | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -129,7 +129,9 @@ CONTAINER The .B container device to monitor. It can be a full path like /dev/md/container, a simple md -device name like md127, or /proc/mdstat which tells +device name like md127, or +.I \-\-all + which tells .I mdmon to scan for containers and launch an .I mdmon @@ -200,7 +202,7 @@ root filesystem. .SH EXMAPLES -.B " mdmon /proc/mdstat /" +.B " mdmon --all /" .br Any .I mdmon @@ -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 */ |