]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix bug with adding to 0.90 array
authorNeilBrown <neilb@suse.de>
Wed, 14 Aug 2013 05:20:02 +0000 (15:20 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 14 Aug 2013 05:20:02 +0000 (15:20 +1000)
commit 7ccc4cc4fc6889680bbe4ec673cab3f6aa49aad3
    Manage: remove call to validate_geometry.

used entirely the wrong number for "4TB" !!

Signed-off-by: NeilBrown <neilb@suse.de>
Manage.c

index 0b0b78571330a4484aef3c8300f8693d1e695dbc..b107289ebbcceafff5bc5531670bed7f283dffb6 100644 (file)
--- 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 "