Skip to contentSkip to conversation

imsm: Correct minimal device size.

PATCH Applied Blazej Kucman 2 participants 2 messages Mar 11, 2020 – Mar 12, 2020 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imsm: Correct minimal device size.

Check if given size of member drive is not less than 1 MibiByte.

---
 super-intel.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
super-intel.c +4 -1
index c9a1af5b..6680df29 100644
@@ -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,
Signature · 1 line
2.16.4
Applied
#1 lore raw
Quoted 6 lines · Blazej Kucman

Check if given size of member drive is not less than 1 MibiByte.

---
 super-intel.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Applied!

Thanks,
Jes