On Wed, Nov 02, 2005 at 01:13:41PM +0000, Colm MacCarthaigh wrote:
> On Wed, Nov 02, 2005 at 11:49:15AM +0000, Colm MacCarthaigh wrote:
> > On Wed, Nov 02, 2005 at 11:38:17AM +0000, Joe Orton wrote:
> > > > and it's the latter branch that gets trigged on IA64
> > > 
> > > How have you managed to get SIZEOF_OFF_T == 4 as true on IA64?  
> > 
> > Hmmm, no, it's 8. As is size_t. I'm going back to scratch at looking at
> > what's up with gdb.
> 
> O.k., it seems sendfile() is buggy and really doesn't support files >2Gb
> on Linux on IA64, at least with my kernel (2.6.12.1). 
> 
>    sendfile(10, 11, [0], 4686706688)     = -1 EINVAL (Invalid argument)
> 
> Messing with defines sufficiently that APR uses sendfile64() is no help,
> and ends up back at the same system call anyway. 
>
> Anyone else got an IA64 Linux box they can confirm this on?

Seems to work OK for me with RHEL4/IA64 (2.6.9-22.0.1.EL) with my normal 
sendfile test app over loopback.

open("6G.sparse", O_RDONLY)             = 3
fstat(3, {st_mode=S_IFREG|0664, st_size=6442450945, ...}) = 0
sendfile(1, 3, [0], 6442450945)         = 6442450945

joe

Reply via email to