]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Support fixing of byte-swapped superblocks.
[thirdparty/mdadm.git] / Assemble.c
index 20183ae12c3bdbe3653f0c1f2494e0c74dc49a2f..739db51203f316f5164e85d83b4ff819a1f3b033 100644 (file)
@@ -334,6 +334,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
                free(super);
        super = NULL;
 
+       if (update && strcmp(update, "byteorder")==0)
+               st->minor_version = 90;
+
        if (devcnt == 0) {
                fprintf(stderr, Name ": no devices found for %s\n",
                        mddev);