]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
Create: Block rounding size to max
[thirdparty/mdadm.git] / super-intel.c
index 5a7c9f8062e020e84ef10e6eab3ff660912a284d..2ba045aa3c396f9316f5f2a1bc8ac9b5ca71dde2 100644 (file)
@@ -7455,9 +7455,8 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout,
                                                        verbose);
        }
 
-       if (size && ((size < 1024) || (*chunk != UnSet &&
-           size < (unsigned long long) *chunk))) {
-               pr_err("Given size must be greater than 1M and chunk size.\n");
+       if (size && (size < 1024)) {
+               pr_err("Given size must be greater than 1M.\n");
                /* Depends on algorithm in Create.c :
                 * if container was given (dev == NULL) return -1,
                 * if block device was given ( dev != NULL) return 0.