]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
Fix an error when assembling arrays that are in the middle of a reshape.
[thirdparty/mdadm.git] / super0.c
index 7e814829f7eb4faa17378198574c7ec845b5ab2e..8e4c568e1e360ac2e8ab1146b1bc5b06578ad8fc 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -849,12 +849,15 @@ static struct supertype *match_metadata_desc0(char *arg)
        st->sb = NULL;
        if (strcmp(arg, "0") == 0 ||
            strcmp(arg, "0.90") == 0 ||
-           strcmp(arg, "0.91") == 0 ||
            strcmp(arg, "default") == 0 ||
            strcmp(arg, "") == 0 /* no metadata */
                )
                return st;
 
+       st->minor_version = 91; /* reshape in progress */
+       if (strcmp(arg, "0.91") == 0) /* For dup_super support */
+               return st;
+
        st->minor_version = 9; /* flag for 'byte-swapped' */
        if (strcmp(arg, "0.swap")==0 ||
            strcmp(arg, "0.9") == 0) /* For dup_super support */