summaryrefslogtreecommitdiffstats
path: root/Assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Assemble.c b/Assemble.c
index c01a66f..75da9a5 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -395,6 +395,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
char *devname = tmpdev->devname;
struct stat stb;
/* looks like a good enough match to update the super block if needed */
+#ifndef MDASSEMBLE
if (update) {
int dfd;
/* prepare useful information in info structures */
@@ -446,7 +447,9 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
if (strcmp(update, "uuid")==0 &&
ident->bitmap_fd)
bitmap_update_uuid(ident->bitmap_fd, info.uuid);
- } else {
+ } else
+#endif
+ {
int dfd;
dfd = dev_open(devname, O_RDWR|O_EXCL);