Re: sendfile(2) fails for devices?

2000-11-11 Thread Linus Torvalds
In article <[EMAIL PROTECTED]>, Jeff Garzik <[EMAIL PROTECTED]> wrote: >sendfile(2) fails with -EINVAL every time I try to read from a device >file. > >This sounds like a bug... is it? (the man page doesn't mention such a >restriction) sendfile() on purpose only works on things that use the

sendfile(2) fails for devices?

2000-11-11 Thread Jeff Garzik
sendfile(2) fails with -EINVAL every time I try to read from a device file. This sounds like a bug... is it? (the man page doesn't mention such a restriction) I am using kernel 2.4.0-test11-pre2. All other tests with sendfile(2) succeed: file->file, file->STDOUT, STDIN->file... -- Jeff

sendfile(2) fails for devices?

2000-11-11 Thread Jeff Garzik
sendfile(2) fails with -EINVAL every time I try to read from a device file. This sounds like a bug... is it? (the man page doesn't mention such a restriction) I am using kernel 2.4.0-test11-pre2. All other tests with sendfile(2) succeed: file-file, file-STDOUT, STDIN-file... -- Jeff Garzik

Re: sendfile(2) fails for devices?

2000-11-11 Thread Linus Torvalds
In article [EMAIL PROTECTED], Jeff Garzik [EMAIL PROTECTED] wrote: sendfile(2) fails with -EINVAL every time I try to read from a device file. This sounds like a bug... is it? (the man page doesn't mention such a restriction) sendfile() on purpose only works on things that use the page cache.