From: NeilBrown Date: Wed, 14 Aug 2013 05:20:02 +0000 (+1000) Subject: Fix bug with adding to 0.90 array X-Git-Tag: mdadm-3.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=632dc30ccf2a76f06833d269617c65350c2f5b3b;p=thirdparty%2Fmdadm.git Fix bug with adding to 0.90 array commit 7ccc4cc4fc6889680bbe4ec673cab3f6aa49aad3 Manage: remove call to validate_geometry. used entirely the wrong number for "4TB" !! Signed-off-by: NeilBrown --- diff --git a/Manage.c b/Manage.c index 0b0b7857..b107289e 100644 --- a/Manage.c +++ b/Manage.c @@ -718,7 +718,7 @@ int Manage_add(int fd, int tfd, struct mddev_dev *dv, return -1; } - if (tst->ss == &super0 && ldsize > 4ULL*1024*1024*2) { + if (tst->ss == &super0 && ldsize > 4ULL*1024*1024*1024*1024) { /* More than 4TB is wasted on v0.90 */ if (!force) { pr_err("%s is larger than %s can "