1 Index: linux-2.6.27.21-0.1/fs/ext4/super.c
2 ===================================================================
3 --- linux-2.6.27.21-0.1.orig/fs/ext4/super.c 2009-07-07 15:00:32.000000000 +0530
4 +++ linux-2.6.27.21-0.1/fs/ext4/super.c 2009-07-07 15:01:30.000000000 +0530
7 struct proc_dir_entry *ext4_proc_root;
9 +static int force_over_8tb;
11 static int ext4_load_journal(struct super_block *, struct ext4_super_block *,
12 unsigned long journal_devnum);
13 static int ext4_create_journal(struct super_block *, struct ext4_super_block *,
15 Opt_jqfmt_vfsold, Opt_jqfmt_vfsv0, Opt_quota, Opt_noquota,
16 Opt_ignore, Opt_barrier, Opt_err, Opt_resize, Opt_usrquota,
17 Opt_grpquota, Opt_extents, Opt_noextents, Opt_i_version,
19 + Opt_mballoc, Opt_force_over_8tb,
20 Opt_stripe, Opt_delalloc, Opt_nodelalloc,
21 Opt_inode_readahead_blks, Opt_bigendian_extents,
22 Opt_iopen, Opt_noiopen, Opt_iopen_nopriv,
24 {Opt_stripe, "stripe=%u"},
25 {Opt_resize, "resize"},
26 {Opt_mballoc, "mballoc"},
27 + {Opt_force_over_8tb, "force_over_8tb"},
28 {Opt_delalloc, "delalloc"},
29 {Opt_nodelalloc, "nodelalloc"},
30 {Opt_inode_readahead_blks, "inode_readahead_blks=%u"},
35 + case Opt_force_over_8tb:
40 "EXT4-fs: Unrecognized mount option \"%s\" "
41 @@ -2634,6 +2640,17 @@
45 + if (ext4_blocks_count(es) >
46 + ((0x80000000000ULL >> sb->s_blocksize_bits) - 1)) {
47 + if (force_over_8tb == 0) {
48 + printk(KERN_ERR "EXT4-fs does not support filesystems "
49 + "greater than 8TB and can cause data corruption."
50 + "Use \"force_over_8tb\" mount option to override."
56 if (EXT4_BLOCKS_PER_GROUP(sb) == 0)