diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-11-10 20:34:54 -0800 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-02-01 11:20:40 -0500 |
commit | a22e7f16d0f4b894e8408cf21990c89b12064a25 (patch) | |
tree | ace1fc7d794b80581eed506ca8d69c0a4f08388a /misc | |
parent | af37d677e507a97f4ade39b247cf7ff26d9e0624 (diff) | |
download | e2fsprogs-a22e7f16d0f4b894e8408cf21990c89b12064a25.tar.gz |
Add option to enable/disable largefile support
fallocate can be used to have 64bit off_t provided its compiled with
_FILE_OFFSET_BITS=64 which will be added automatically when
--enable-largefile is used.
[ Run autoreconf to update configure and config.h.in -- TYT ]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/e4defrag.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 99bc2cd7..e3011d7c 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -195,10 +195,6 @@ static struct frag_statistic_ino frag_rank[SHOW_FRAG_FILES]; #error posix_fadvise not available! #endif -#ifndef HAVE_FALLOCATE64 -#error fallocate64 not available! -#endif /* ! HAVE_FALLOCATE64 */ - /* * get_mount_point() - Get device's mount point. * @@ -1559,7 +1555,7 @@ static int file_defrag(const char *file, const struct stat64 *buf, /* Allocate space for donor inode */ orig_group_tmp = orig_group_head; do { - ret = fallocate64(donor_fd, 0, + ret = fallocate(donor_fd, 0, (ext2_loff_t)orig_group_tmp->start->data.logical * block_size, (ext2_loff_t)orig_group_tmp->len * block_size); if (ret < 0) { |