On Tue, Mar 22, 2016 at 7:46 PM, Benjamin Kaduk <bjkf...@gmail.com> wrote:
> On Tue, Mar 22, 2016 at 9:11 PM, Bryan Drewery <bdrew...@freebsd.org> wrote:
>>
>> The manpage for close(2) does document some errors, one being ENOSPC.  The
>> close(2) behavior of returning write(2), really VOP_WRITE(9), errors though
>> is specific to filemon since all of the writes are hidden and this is the
>> only place to return an error.
>> ...
>
> filemon is not unique in this regard; the AFS filesystem buffers writes
> locally and in some cases errors writing to the remote server can be delayed
> until close().

Right.  filemon is not the only case.  Another example would be TCP
socket fds, e.g., when the connection is RST after write(2) queues
data on the outgoing sockbuf but before it is transmitted.

Best,
Conrad
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to