Fix positional I/O support for largefiles
authorRyan C. Underwood <nemesis@icequake.net>
Sun, 6 Mar 2011 10:40:53 +0000 (10:40 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 6 Mar 2011 18:07:05 +0000 (10:07 -0800)
commitbbf406da30428a22b4a6d28a7d36dbb786013cfa
tree0afa24d2cb96eed0a7b823f954a83ea97f625292
parent98a0c2f47b8641e3e31ed7d2f7d84c2eb484ef51
Fix positional I/O support for largefiles

Commit 335ccb40 introduced positional I/O support for the fileserver,
but didn't handle the largefile versions of preadv and pwritev. As a
result, the fileserver cannot handle files of more than 2Gb in size.

Fix this by using preadv64 and pwritev64 where O_LARGEFILE is defined,
in the same way as for all other I/O primitives.

Change-Id: Ia9f6411d0c8115176e1ec42dd9f72c96ba939bab
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-on: http://gerrit.openafs.org/4152
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/ihandle.h