Whamcloud - gitweb
libext2fs: have UNIX IO manager use pread64/pwrite64
authorTheodore Ts'o <tytso@mit.edu>
Fri, 8 Aug 2014 20:42:05 +0000 (16:42 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Aug 2014 20:42:05 +0000 (16:42 -0400)
commitf00948ad1df100c7d616ef6fbf7609329a2e4001
tree7a1a5ce79fc50afb8764ebb6965ee049192a164e
parentb6edbf6b900d2dcc1fb0365c173cada8fa917db3
libext2fs: have UNIX IO manager use pread64/pwrite64

Commit baa3544609da3c ("libext2fs: have UNIX IO manager use
pread/pwrite) causes a breakage on 32-bit systems where off_t is
32-bits for file systems larger than 4GB.  Fix this by using
pread64/pwrite64 if possible, and if pread64/pwrite64 is not present,
using pread/pwrite only if the size of off_t is at least as big as
ext2_loff_t.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.in
lib/config.h.in
lib/ext2fs/unix_io.c