diff options
author | Eric Sandeen <sandeen@redhat.com> | 2009-08-17 23:48:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-14 08:06:13 -0800 |
commit | 74ba8fe3abdfcd3f58e01ebb15b1fe9d2db86053 (patch) | |
tree | 50ac1353ec615d9ee8ff1d1f2e65e1acda6fa139 /fs/libfs.c | |
parent | e2177295902d4849d61ad677e51e2d84eae617e5 (diff) |
ext4: reject too-large filesystems on 32-bit kernels
(cherry picked from commit bf43d84b185e2ff54598f8c58a5a8e63148b6e90)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/libfs.c')
0 files changed, 0 insertions, 0 deletions