X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=mdadm.c;fp=mdadm.c;h=256a97ef07f51752dba7c31242f7119286c5fffb;hp=e438f9c864da8efee3ea72d79bfa58d997dcabe1;hb=027c099fd1a31fb3815e592de75d0791a22353b4;hpb=329dfc28debb58ffe7bd1967cea00fc583139aca diff --git a/mdadm.c b/mdadm.c index e438f9c8..256a97ef 100644 --- a/mdadm.c +++ b/mdadm.c @@ -795,6 +795,9 @@ int main(int argc, char *argv[]) continue; if (strcmp(c.update, "revert-reshape") == 0) continue; + if (strcmp(c.update, "layout-original") == 0 || + strcmp(c.update, "layout-alternate") == 0) + continue; if (strcmp(c.update, "byteorder") == 0) { if (ss) { pr_err("must not set metadata type with --update=byteorder.\n"); @@ -825,6 +828,7 @@ int main(int argc, char *argv[]) " 'summaries', 'homehost', 'home-cluster', 'byteorder', 'devicesize',\n" " 'no-bitmap', 'metadata', 'revert-reshape'\n" " 'bbl', 'no-bbl', 'force-no-bbl', 'ppl', 'no-ppl'\n" + " 'layout-original', 'layout-alternate'\n" ); exit(outf == stdout ? 0 : 2);