summaryrefslogtreecommitdiff
path: root/Assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'Assemble.c')
-rw-r--r--Assemble.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Assemble.c b/Assemble.c
index 480c512..2dca21d 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -568,6 +568,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
* that was moved aside due to the reshape overwriting live data
* The code of doing this lives in Grow.c
*/
+#ifndef MDASSEMBLE
if (info.reshape_active) {
int err = 0;
int *fdlist = malloc(sizeof(int)* bestcnt);
@@ -595,6 +596,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
return err;
}
}
+#endif
/* count number of in-sync devices according to the superblock.
* We must have this number to start the array without -s or -R
*/