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>
This commit is contained in:
parent
5d4d1b26d3
commit
a9596b79a3
6
mdmon.8
6
mdmon.8
|
@ -129,7 +129,9 @@ CONTAINER
|
||||||
The
|
The
|
||||||
.B container
|
.B container
|
||||||
device to monitor. It can be a full path like /dev/md/container, a simple md
|
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
|
.I mdmon
|
||||||
to scan for containers and launch an
|
to scan for containers and launch an
|
||||||
.I mdmon
|
.I mdmon
|
||||||
|
@ -200,7 +202,7 @@ root filesystem.
|
||||||
|
|
||||||
.SH EXMAPLES
|
.SH EXMAPLES
|
||||||
|
|
||||||
.B " mdmon /proc/mdstat /"
|
.B " mdmon --all /"
|
||||||
.br
|
.br
|
||||||
Any
|
Any
|
||||||
.I mdmon
|
.I mdmon
|
||||||
|
|
3
mdmon.c
3
mdmon.c
|
@ -274,7 +274,8 @@ int main(int argc, char *argv[])
|
||||||
usage();
|
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;
|
struct mdstat_ent *mdstat, *e;
|
||||||
|
|
||||||
/* launch an mdmon instance for each container found */
|
/* launch an mdmon instance for each container found */
|
||||||
|
|
Loading…
Reference in New Issue