]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super1.c
Add subarray field to supertype.
[thirdparty/mdadm.git] / super1.c
index ae6c8a371f315e72f0e3d9d8177f54869e0d67d9..a6a308a60a286a8eee5e88e6e799914bbd9d2487 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -1065,6 +1065,9 @@ static int load_super1(struct supertype *st, int fd, char *devname)
 
        free_super1(st);
 
+       if (st->subarray[0])
+               return 1;
+
        if (st->ss == NULL || st->minor_version == -1) {
                int bestvers = -1;
                struct supertype tst;