commit | f00948ad1df100c7d616ef6fbf7609329a2e4001 | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Fri Aug 08 16:42:05 2014 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Fri Aug 08 16:42:05 2014 -0400 |
tree | 7a1a5ce79fc50afb8764ebb6965ee049192a164e | |
parent | b6edbf6b900d2dcc1fb0365c173cada8fa917db3 [diff] |
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>