Messages in this thread | | | Date | Tue, 7 Jul 1998 11:37:35 +0200 | From | "Stephen R. van den Berg" <> | Subject | Re: 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
| |