Whamcloud - gitweb
e2fsck: fix the max size calculation for non-extent file
authorKazuya Mio <k-mio@sx.jp.nec.com>
Sat, 26 Nov 2011 02:31:09 +0000 (21:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 26 Nov 2011 02:31:09 +0000 (21:31 -0500)
commit66df14687d6a905aa111ec7327357a3ae1ad3236
treee758b9cff1c6a99547dd56793866b37ba6e0a84a
parent5fff8636e54f762fcfe7312ec7c0428924ff7292
e2fsck: fix the max size calculation for non-extent file

When I create a non-extent file with the maximum size in ext4,
e2fsck detects the following error:

Pass 1: Checking inodes, blocks, and sizes
Inode 12, i_size is 4402345721856, should be 4402345721856. Fix?

As we know, e2fsck checks the size field of the inode in pass 1.
However, in case of the ext4 with the feature of ^extent and huge_file,
the maximum file size calculated in e2fsck is less than the real one.
The patch fixes this problem.

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c