summaryrefslogtreecommitdiffstats
path: root/ReadMe.c
diff options
context:
space:
mode:
authorZdenek Behan <rain@matfyz.cz>2009-10-19 13:13:58 +1100
committerNeilBrown <neilb@suse.de>2009-10-19 13:13:58 +1100
commit9a36a9b713a6c789f268251a81de67bb8fd9c7f8 (patch)
tree1591bd243d1267838e6cbe405533dac6348b0f1b /ReadMe.c
parent1373b07d758213b643f72a09384b840e4f08057a (diff)
downloadmdadm-9a36a9b713a6c789f268251a81de67bb8fd9c7f8.tar.gz
mdadm-9a36a9b713a6c789f268251a81de67bb8fd9c7f8.tar.xz
mdadm-9a36a9b713a6c789f268251a81de67bb8fd9c7f8.zip
Monitor: add option to specify rebuild increments
ie. the percent increments after which RebuildNN event is generated This is particulary useful when using --program option, rather than (only) syslog for alerts. Signed-off-by: Zdenek Behan <rain@matfyz.cz> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'ReadMe.c')
-rw-r--r--ReadMe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ReadMe.c b/ReadMe.c
index 90b4daf..3e53e57 100644
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -176,6 +176,7 @@ struct option long_options[] = {
{"mail", 1, 0, 'm'},
{"program", 1, 0, 'p'},
{"alert", 1, 0, 'p'},
+ {"increment", 1, 0, 'r'},
{"delay", 1, 0, 'd'},
{"daemonise", 0, 0, 'f'},
{"daemonize", 0, 0, 'f'},
@@ -495,6 +496,7 @@ char Help_monitor[] =
" --mail= -m : Address to mail alerts of failure to\n"
" --program= -p : Program to run when an event is detected\n"
" --alert= : same as --program\n"
+" --increment= -r : Report RebuildNN events in the given increment. default=20\n"
" --delay= -d : seconds of delay between polling state. default=60\n"
" --config= -c : specify a different config file\n"
" --scan -s : find mail-address/program in config file\n"