summaryrefslogtreecommitdiff
path: root/ReadMe.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-23 16:27:15 +1100
committerNeilBrown <neilb@suse.de>2012-10-23 16:27:15 +1100
commit70c55e36b73827579fcb2dadbb6359ef605191ff (patch)
treeaf568358a6d2ab5c760820177fe121ab3ca4d0fa /ReadMe.c
parent1dc837e4edc805819a1ff40add3d0beecfeecdbb (diff)
Add support for --replace and --with
--replace can be used to replace a device without completely failing it. Once the replacement completes the device will be failed. --with can indicate which of several spares to use. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'ReadMe.c')
-rw-r--r--ReadMe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ReadMe.c b/ReadMe.c
index 2fde2ac5..0aa8cbd7 100644
--- a/ReadMe.c
+++ b/ReadMe.c
@@ -146,6 +146,8 @@ struct option long_options[] = {
{"remove", 0, 0, Remove},
{"fail", 0, 0, Fail},
{"set-faulty",0, 0, Fail},
+ {"replace", 0, 0, Replace},
+ {"with", 0, 0, With},
{"run", 0, 0, 'R'},
{"stop", 0, 0, 'S'},
{"readonly", 0, 0, 'o'},
@@ -309,6 +311,7 @@ char OptionHelp[] =
" --remove -r : remove subsequent devices\n"
" --fail -f : mark subsequent devices as faulty\n"
" --set-faulty : same as --fail\n"
+" --replace : mark a device for replacement\n"
" --run -R : start a partially built array\n"
" --stop -S : deactivate array, releasing all resources\n"
" --readonly -o : mark array as readonly\n"
@@ -462,6 +465,10 @@ char Help_manage[] =
" --remove -r : remove subsequent devices, which must not be active\n"
" --fail -f : mark subsequent devices a faulty\n"
" --set-faulty : same as --fail\n"
+" --replace : mark device(s) to be replaced by spares. Once\n"
+" : replacement completes, device will be marked faulty\n"
+" --with : Indicate which spare a previous '--replace' should\n"
+" : prefer to use\n"
" --run -R : start a partially built array\n"
" --stop -S : deactivate array, releasing all resources\n"
" --readonly -o : mark array as readonly\n"