]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Assorted Fixes for multiple bugs.
[thirdparty/mdadm.git] / Assemble.c
index 89086e38a6dba3ba6c98225a0db48a723b1426e4..20183ae12c3bdbe3653f0c1f2494e0c74dc49a2f 100644 (file)
@@ -219,7 +219,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
                }
 
                if (ident->uuid_set &&
-                   (!super || same_uuid(info.uuid, ident->uuid)==0)) {
+                   (!super || same_uuid(info.uuid, ident->uuid, tst->ss->swapuuid)==0)) {
                        if (inargv || verbose)
                                fprintf(stderr, Name ": %s has wrong uuid.\n",
                                        devname);