lkml.org 
[lkml]   [1998]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Turning sendfile into copyfd
Pavel Machek wrote:
>I should probably provide some way to specify 'copy until EOF'
>(count==0?).

Please keep count==0 to specify zero bytes. Use something like count==-1
for copy till EOF.

> Also, if I end up copying more than 4G of data, what
>value should I return? This needs to be solved.

Copy 2GB-PAGE_SIZE, then return, set errno to EAGAIN or something.
If we're copying more than 2GB, then the overhead of putting a loop
on it in userspace is negligible.
--
Sincerely, srb@cuci.nl
Stephen R. van den Berg (AKA BuGless).
"I don't like this word bomb. It is not a bomb, it is a device,
which explodes." French Ambassador about the atomic tests.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.024 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site