diff options
Diffstat (limited to 'mdadm.c')
-rw-r--r-- | mdadm.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -547,6 +547,20 @@ int main(int argc, char *argv[]) continue; if (strcmp(update, "resync")==0) continue; + if (strcmp(update, "byteorder")==0) { + if (ss) { + fprintf(stderr, Name ": must not set metadata type with --update=byteorder.\n"); + exit(2); + } + for(i=0; !ss && superlist[i]; i++) + ss = superlist[i]->match_metadata_desc("0.swap"); + if (!ss) { + fprintf(stderr, Name ": INTERNAL ERROR cannot find 0.swap\n"); + exit(2); + } + + continue; + } fprintf(stderr, Name ": '--update %s' invalid. Only 'sparc2.2', 'super-minor', 'resync' or 'summaries' supported\n",update); exit(2); |