svn commit: r297201 - in head: share/man/man4 sys/dev/filemon
Benjamin Kaduk
bjkfbsd at gmail.com
Wed Mar 23 02:46:28 UTC 2016
On Tue, Mar 22, 2016 at 9:11 PM, Bryan Drewery <bdrewery at 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. I have a review open to resolve a similar
> issue in alq(9) as well since all of the writes are asynchronous and
> there's no API to retrieve any error from.
>
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(). Of course, very few softwares actually check the
return value of close, so this can cause trouble sometimes...
-Ben
More information about the svn-src-all
mailing list