X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=Build.c;h=4338e190d9270ee0e990ad6b20aa53ca9255f817;hb=08ca2adffffeb3bfda3cafababfc26706a60463b;hp=cb9f01e33264376e63be43c2efd8da1672c96461;hpb=88b496c2697ed531ffecf2f8ced76f437297e5fe;p=thirdparty%2Fmdadm.git diff --git a/Build.c b/Build.c index cb9f01e3..4338e190 100644 --- 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, ¶m)) { 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 {