Skip to contentSkip to conversation

LFS Support for Sendfile

DISCUSSION Dan Maas 2 participants 2 messages Mar 3, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dan Maas

author
#1 lore raw
Quoted 5 lines

[sendfile(2)] as defined does not support LFS.

I wonder does it really need to? I mean, a loop calling sendfile for 2GB (or whatever) at a time is almost as good, if not better in some ways.

The 'count' parameter is not the problem, it's the 'offset'. You can't send any data beyond 2GB from the beginning of the file...

And in fact just two days ago I was in a situation where this would have been desirable - I was sending parts of a captured DV video stream (the file was 6GB)...

Regards,
Dan

#2 lore raw
In reply to a message not in the archive
Quoted 7 lines · Dan Maas
Quoted 6 lines

[sendfile(2)] as defined does not support LFS.

I wonder does it really need to? I mean, a loop calling sendfile for 2GB (or whatever) at a time is almost as good, if not better in some ways.

Quoted 7 lines

The 'count' parameter is not the problem, it's the 'offset'. You can't send any data beyond 2GB from the beginning of the file...

And in fact just two days ago I was in a situation where this would have been desirable - I was sending parts of a captured DV video stream (the file was 6GB)...

We need a sendfile64() system call. It's really simple, but nobody did it.

-