]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.c
Assemble: allow --update=revert-reshape
[thirdparty/mdadm.git] / mdadm.c
diff --git a/mdadm.c b/mdadm.c
index 83f1caa90f83fe4dee8cbed00124045378772487..928d880bab64777a06e6af46d9afacf2bfd9b819 100644 (file)
--- 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'):