lkml.org 
[lkml]   [2014]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Update of file offset on write() etc. is non-atomic with I/O
From
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


\
 
 \ /
  Last update: 2014-03-04 01:21    [W:0.092 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site