]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Assemble.c
Compile fixes for mdassemble
[thirdparty/mdadm.git] / Assemble.c
index 8423a8182bbb5fe2e35ed694e04057e6a5640b6a..28de83e0a0bc8203b81d9ba8a908129ca759458f 100644 (file)
@@ -1104,10 +1104,12 @@ int Assemble(struct supertype *st, char *mddev,
                         * it read-only and let the grow code make it writable.
                         */
                        int rv;
+#ifndef MDASSEMBLE
                        if (content->reshape_active &&
                            content->delta_disks <= 0)
                                rv = Grow_continue(mdfd, st, content, backup_file);
                        else
+#endif
                                rv = ioctl(mdfd, RUN_ARRAY, NULL);
                        if (rv == 0) {
                                if (verbose >= 0) {