]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
When updating uuid, update the bitmap as well - external bitmaps
[thirdparty/mdadm.git] / Assemble.c
index a856456cee8041ecc81d7f00854fce32cfef49c5..897c33f0261762c81fcd7dae133118debd92ff16 100644 (file)
@@ -308,6 +308,10 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
                                        devname);
                        if (dfd >= 0)
                                close(dfd);
+
+                       if (strcmp(update, "uuid")==0 &&
+                           ident->bitmap_fd)
+                               bitmap_update_uuid(ident->bitmap_fd, info.uuid);
                }
 
                if (verbose > 0)