OSDN Git Service

e4defrag: Fix the overflow in e4defrag with > 2GB files
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Dec 2010 03:53:34 +0000 (22:53 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Dec 2010 03:53:34 +0000 (22:53 -0500)
commit30c0529d27edca148a6e5e52bcdd7b38d6cb28b2
treec6cb426e5e0d2b3b3f7f9d9337ffbbf30c426276
parent77e72e2b8e9b17e6cac15b15a6786de14505ead8
e4defrag: Fix the overflow in e4defrag with > 2GB files

The fallocate() interface on 32-bit machines is defined to use off_t,
not loff_t (even though the system call interface is 64-bit clean).
This causes e4defrag to fail on files greater than 2GB.  Fix this by
trying to use fallocate64(), and using the hard-coded syscall if it
does not exist.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
configure
configure.in
misc/e4defrag.c