Commit de572770 authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] ext3: fix max file size

ext3 is only permitting files of up to 32G.  It should be allowing files to
be up to 2TB.

This is because it is running ext3_max_size(1024) before the filesystem's
blocksize has been determined.
parent bd12cbc7
......@@ -1207,8 +1207,6 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
goto failed_mount;
}
sb->s_maxbytes = ext3_max_size(sb->s_blocksize_bits);
hblock = bdev_hardsect_size(sb->s_bdev);
if (sb->s_blocksize != blocksize) {
/*
......@@ -1240,6 +1238,8 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
}
}
sb->s_maxbytes = ext3_max_size(sb->s_blocksize_bits);
if (le32_to_cpu(es->s_rev_level) == EXT3_GOOD_OLD_REV) {
sbi->s_inode_size = EXT3_GOOD_OLD_INODE_SIZE;
sbi->s_first_ino = EXT3_GOOD_OLD_FIRST_INO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment