OSDN Git Service

e2fsck: Fix i_size checking for large extent-based files
authorEric Sandeen <sandeen@redhat.com>
Mon, 7 Jul 2008 04:02:47 +0000 (23:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Jul 2008 15:01:36 +0000 (11:01 -0400)
commit7c1e090ce129e093c88403087ed03509d6d07d6a
tree37083f6019ea4d26e5dece4cc235e6a66670edee
parentfbcb3a850494a499b6b65c853e09eb0f51d7a4da
e2fsck: Fix i_size checking for large extent-based files

This:

Truncating bigfile to 14680064000000
Pass 1: Checking inodes, blocks, and sizes
Inode 49154, i_size is 14680064000000, should be 0.  Fix<y>?

is a bit unexpected.  It's because the size is being checked against
the max sizes for bitmap files, not extent-based files.

Nick saw this with his 14TB file.

Patch below applies different size limits to the different file
formats.

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