Date: Tue, 22 Mar 2016 20:18:29 -0700 From: Conrad Meyer <cem@FreeBSD.org> To: Benjamin Kaduk <bjkfbsd@gmail.com> Cc: Bryan Drewery <bdrewery@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r297201 - in head: share/man/man4 sys/dev/filemon Message-ID: <CAG6CVpUMAHN8S_wjz57BGHfJ0OTHdboLt2Wz2gvxD%2BSmwEAqGA@mail.gmail.com> In-Reply-To: <CAJ5_RoD1J_LOvN5hzSF_DsUHd_mtn=XZDYcZU5xOBiyRSVjVDg@mail.gmail.com> References: <201603222241.u2MMf7ub090070@repo.freebsd.org> <CAG6CVpUxC6Nov7ocy5eEpcQFLd%2BQdXUxZWs49kTesWZo_VqncQ@mail.gmail.com> <D2476F6F-8C58-489D-9654-DFF2AEB9941F@FreeBSD.org> <CAJ5_RoD1J_LOvN5hzSF_DsUHd_mtn=XZDYcZU5xOBiyRSVjVDg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 22, 2016 at 7:46 PM, Benjamin Kaduk <bjkfbsd@gmail.com> wrote: > On Tue, Mar 22, 2016 at 9:11 PM, Bryan Drewery <bdrewery@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpUMAHN8S_wjz57BGHfJ0OTHdboLt2Wz2gvxD%2BSmwEAqGA>