summaryrefslogtreecommitdiff
path: root/Manage.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-08-14 15:20:02 +1000
committerNeilBrown <neilb@suse.de>2013-08-14 15:20:02 +1000
commit632dc30ccf2a76f06833d269617c65350c2f5b3b (patch)
tree4c3987d8c67fedde8b33e29318dc1e24cb4a6540 /Manage.c
parent5daa35ac1afd82db5c4ea1b157f2d112c833b3dd (diff)
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 <neilb@suse.de>
Diffstat (limited to 'Manage.c')
-rw-r--r--Manage.c2
1 files changed, 1 insertions, 1 deletions
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 "