ext4: store maxbytes for bitmapped files and return EFBIG as appropriate
authorEric Sandeen <sandeen@redhat.com>
Tue, 29 Jan 2008 04:58:27 +0000 (23:58 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jan 2008 04:58:27 +0000 (23:58 -0500)
commite2b4657453c0d5571bd3c7256585c486ed42d364
tree5b8ab501cdf5fa7427ef32440ace56eac72e9ecf
parent19295529db35381d46dbaf246f69b4e3b3393996
ext4: store maxbytes for bitmapped  files and return EFBIG as appropriate

Calculate & store the max offset for bitmapped files, and
catch too-large seeks, truncates, and writes in ext4, shortening
or rejecting as appropriate.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
fs/ext4/file.c
fs/ext4/inode.c
fs/ext4/super.c
include/linux/ext4_fs_sb.h