Fix bug with adding to 0.90 array

commit 7ccc4cc4fc
    Manage: remove call to validate_geometry.

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

Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
NeilBrown 2013-08-14 15:20:02 +10:00
parent 5daa35ac1a
commit 632dc30ccf
1 changed files with 1 additions and 1 deletions

View File

@ -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 "