]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: fix tests that set LARGE_FILE
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 11 Dec 2013 01:18:27 +0000 (17:18 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Dec 2013 17:08:48 +0000 (12:08 -0500)
commit3b6c0938ec5aa401c7ae6c95e94e5ad30a7b8562
treeae68065e1c38d8f6d8e7e158cf27d096c13f60d5
parent341bc5e368f7a768482f041971fb3c4b156d6ed9
libext2fs: fix tests that set LARGE_FILE

For each site where we test for a large file (> 2GB) and set the
LARGE_FILE feature, use a helper function to make the size test
consistent with the test that's in e2fsck.  This fixes the fsck
complaints when we try to create a 2GB journal (not so hard with 64k
block size) and fixes the incorrect test in fileio.c.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/pass2.c
lib/ext2fs/ext2fs.h
lib/ext2fs/fileio.c
lib/ext2fs/mkjournal.c