diff options
author | Blazej Kucman <blazej.kucman@intel.com> | 2020-03-11 15:40:13 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2020-03-12 15:30:31 +0100 |
commit | 06a6101c0a4d2658798dc42f461ace8e6900f840 (patch) | |
tree | 098646fae768648fc17f517d48a67de2d2f9b5b5 /super-intel.c | |
parent | imsm: Remove --dump/--restore implementation (diff) | |
download | mdadm-06a6101c0a4d2658798dc42f461ace8e6900f840.tar.xz mdadm-06a6101c0a4d2658798dc42f461ace8e6900f840.zip |
imsm: Correct minimal device size.
Check if given size of member drive is not less than 1 MibiByte.
Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to '')
-rw-r--r-- | super-intel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index c9a1af5b..6680df29 100644 --- a/super-intel.c +++ b/super-intel.c @@ -7425,7 +7425,10 @@ static int validate_geometry_imsm(struct supertype *st, int level, int layout, verbose); } - if (size && (size < 1024)) { + /* + * Size is given in sectors. + */ + if (size && (size < 2048)) { pr_err("Given size must be greater than 1M.\n"); /* Depends on algorithm in Create.c : * if container was given (dev == NULL) return -1, |