summaryrefslogtreecommitdiff
path: root/mdadm.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-23 15:48:48 +1000
committerNeilBrown <neilb@suse.de>2013-05-28 16:44:23 +1000
commit199f1a1fadcd0fb5efba656ad92a44c51f8cc8ea (patch)
tree5f85a1db5fb927b5a33643c621ff64f60ffb4c3f /mdadm.c
parentafa368f49ac0a12185f243eeedfa8242f2c7a036 (diff)
Assemble: allow --update=revert-reshape
This will cause a reshape to start going backwards.
Diffstat (limited to 'mdadm.c')
-rw-r--r--mdadm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index 83f1caa9..928d880b 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -757,6 +757,8 @@ int main(int argc, char *argv[])
continue;
if (strcmp(c.update, "metadata") == 0)
continue;
+ if (strcmp(c.update, "revert-reshape") == 0)
+ continue;
if (strcmp(c.update, "byteorder")==0) {
if (ss) {
pr_err("must not set metadata"
@@ -787,7 +789,7 @@ int main(int argc, char *argv[])
fprintf(outf, "Valid --update options are:\n"
" 'sparc2.2', 'super-minor', 'uuid', 'name', 'resync',\n"
" 'summaries', 'homehost', 'byteorder', 'devicesize',\n"
- " 'no-bitmap', 'metadata'\n");
+ " 'no-bitmap', 'metadata', 'revert-reshape'\n");
exit(outf == stdout ? 0 : 2);
case O(MANAGE,'U'):