commit | 30c0529d27edca148a6e5e52bcdd7b38d6cb28b2 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Thu Dec 16 22:53:34 2010 -0500 |
committer | Theodore Ts'o <tytso@mit.edu> | Thu Dec 16 22:53:34 2010 -0500 |
tree | c6cb426e5e0d2b3b3f7f9d9337ffbbf30c426276 | |
parent | 77e72e2b8e9b17e6cac15b15a6786de14505ead8 [diff] |
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>