Messages in this thread | | | Date | Mon, 3 Mar 2014 15:54:29 -0800 | Subject | Re: Update of file offset on write() etc. is non-atomic with I/O | From | Linus Torvalds <> |
| |
On Mon, Mar 3, 2014 at 3:39 PM, Al Viro <viro@zeniv.linux.org.uk> wrote: > > do_sendfile() is also there and this one is even more unpleasant ;-/ > We probably can ignore that one (until POSIX learns of its existence), > thouhg...
Yeah, I saw the do_sendfile one and decided we don't care. Not only is is out of POSIX spec (so if you break it you get to keep both pieces), the whole sendfile() thing is a bit of a hack.
But we could take the f_pos_lock explicitly in do_sendfile for the !ppos case if we decide we care. The error handling is the main annoyance.
Linus
| |