NFS client/buffer cache deadlock
Marc Olzheim
marcolz at stack.nl
Wed Apr 20 10:39:00 PDT 2005
On Wed, Apr 20, 2005 at 01:16:05PM -0400, Garrett Wollman wrote:
> <<On Wed, 20 Apr 2005 16:38:42 +0200, Marc Olzheim <marcolz at stack.nl> said:
>
> > Btw.: I'm not sure write(),writev() and pwrite() are allowed to do short
> > writes on regular files... ?
>
> I believe it is the intent of the Standard to prohibit this (a
> paragraph in the rationale says that short writes can only happen if
> O_NONBLOCK is set, but this is clearly wrong because the normative
> text says end-of-medium also results in a short write) but there does
> not appear to be any language which requires atomic behavior for
> descriptors other than pipes and FIFOs.
>
> As a quality-of-implementation matter, for writes to regular files not
> to be atomic would be considered surprising.
>
> -GAWollman
Could someone from standards comment here ? I believe Garrett is
right...
(thread is on -hackers and -current)
Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-standards/attachments/20050420/d069f1fb/attachment.bin
More information about the freebsd-standards
mailing list