]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Build.c
Add --offroot argument to mdadm
[thirdparty/mdadm.git] / Build.c
diff --git a/Build.c b/Build.c
index cb9f01e33264376e63be43c2efd8da1672c96461..4338e190d9270ee0e990ad6b20aa53ca9255f817 100644 (file)
--- a/Build.c
+++ b/Build.c
@@ -254,6 +254,10 @@ int Build(char *mddev, int chunk, int level, int layout,
                if (ioctl(mdfd, RUN_ARRAY, &param)) {
                        fprintf(stderr, Name ": RUN_ARRAY failed: %s\n",
                                strerror(errno));
+                       if (chunk & (chunk-1)) {
+                               fprintf(stderr, "     : Problem may be that chunk size"
+                                       " is not a power of 2\n");
+                       }
                        goto abort;
                }
        } else {