ext4: reject too-large filesystems on 32-bit kernels
authorEric Sandeen <sandeen@redhat.com>
Tue, 18 Aug 2009 03:48:51 +0000 (23:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Aug 2009 03:48:51 +0000 (23:48 -0400)
ext4 will happily mount a > 16T filesystem on a 32-bit box, but
this is not safe; writes to the block device will wrap past 16T
and the page cache can't index past 16T (232 index * 4k pages).

Adding another test to the existing "too many sectors" test
should do the trick.

Add a comment, a relevant return value, and fix the reference
to the CONFIG_LBD(AF) option as well.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>

No differences found