diff options
author | Eric Sandeen <sandeen@redhat.com> | 2009-08-18 05:48:51 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-08-18 05:48:51 +0200 |
commit | bf43d84b185e2ff54598f8c58a5a8e63148b6e90 (patch) | |
tree | 1e7a7ca7e5d328c41ef6757ea33d709d8e47fcfb /fs/ext4/balloc.c | |
parent | jbd2: bitfields should be unsigned (diff) | |
download | linux-bf43d84b185e2ff54598f8c58a5a8e63148b6e90.tar.xz linux-bf43d84b185e2ff54598f8c58a5a8e63148b6e90.zip |
ext4: reject too-large filesystems on 32-bit kernels
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>
Diffstat (limited to 'fs/ext4/balloc.c')
0 files changed, 0 insertions, 0 deletions