[OpenAFS] Re: Large files with 1.6.0pre2

Ryan C. Underwood nemesis@icequake.net
Sat, 5 Mar 2011 20:05:52 -0600


On Sat, Mar 05, 2011 at 07:19:19PM -0600, Ryan C. Underwood wrote:
> 
> [pid  5360] open("/vicepa/AFSIDat/3=/3=++U/8/L3/Que++6C44", O_RDWR|O_LARGEFILE) = 52
> [pid  5360] fstat64(52, {st_mode=S_IFREG, st_size=2147483648, ...}) = 0
> [pid  5360] gettimeofday({1299373872, 738840}, NULL) = 0
> [pid  5360] ftruncate64(52, 2097152000 <unfinished ...>
> ....
> [pid  5266] pwritev(0x34, 0x989ecda0, 0x10, 0x80000000, 0xffffffff) = -1 EINVAL (Invalid argument)
> [pid  5266] fstat64(52, {st_mode=S_IFREG, st_size=2147483648, ...}) = 0
> 
> That pwritev() call sure looks interesting... why would the 32-bit
> version be used there?

More on pwritev().  Looks like there is not a 64-bit version of the call
per se.  But it sure looks like a wraparound issue of some sort.
http://lwn.net/Articles/311630/

-- 
Ryan C. Underwood, <nemesis@icequake.net>