summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 7cab81a5..71aaa60c 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -531,6 +531,13 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
mddev, strerror(errno));
return 1;
}
+ if (ident->bitmap_fd) {
+ if (ioctl(mdfd, SET_BITMAP_FILE, ident->bitmap_fd) != 0) {
+ fprintf(stderr, Name ": SET_BITMAP_FILE failed.\n");
+ return 1;
+ }
+ }
+
/* First, add the raid disks, but add the chosen one last */
for (i=0; i<= bestcnt; i++) {
int j;