From owner-freebsd-current@FreeBSD.ORG Wed Apr 20 15:35:30 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B83716A4CE; Wed, 20 Apr 2005 15:35:30 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3A6F43D45; Wed, 20 Apr 2005 15:35:29 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id E90991F1C7; Wed, 20 Apr 2005 17:35:28 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id CD0DD6583; Wed, 20 Apr 2005 17:35:28 +0200 (CEST) Date: Wed, 20 Apr 2005 17:35:28 +0200 From: Marc Olzheim To: Brian Fundakowski Feldman Message-ID: <20050420153528.GC77731@stack.nl> References: <20050419133227.GA11612@stack.nl> <20050419151800.GE1157@green.homeunix.org> <20050419160258.GA12287@stack.nl> <20050419160900.GB12287@stack.nl> <20050419161616.GF1157@green.homeunix.org> <20050419204723.GG1157@green.homeunix.org> <20050420140409.GA77731@stack.nl> <20050420142448.GH1157@green.homeunix.org> <20050420143842.GB77731@stack.nl> <20050420152038.GI1157@green.homeunix.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iFRdW5/EC4oqxDHL" Content-Disposition: inline In-Reply-To: <20050420152038.GI1157@green.homeunix.org> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i cc: Marc Olzheim cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: NFS client/buffer cache deadlock X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 15:35:30 -0000 --iFRdW5/EC4oqxDHL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 20, 2005 at 11:20:38AM -0400, Brian Fundakowski Feldman wrote: > Reads should be totally unaffected... The server was misbehaving. Fixed. :-) > > Btw.: I'm not sure write(),writev() and pwrite() are allowed to do short > > writes on regular files... ? >=20 > Our manpage is incorrect; POSIX states that they are (see earlier > e-mail). There really is no alternative -- we simply can't build > an NFS transaction larger than our buffer cache can accomodate. > Note that short wries won't happen for normal buffer sizes, only > excessively large ones. I really don't believe that writev() is meant > to be used so that you can write gigantic data structures in a single > transaction... Ah, I was reading the SUSv2 page: http://www.opengroup.org/onlinepubs/009695399/functions/write.html instead of the POSIX version. But in neither of those I can extrude the fact that it can return with result < nbyte, without it being a permanent condition. What phrase makes you conclude that it can ? Marc --iFRdW5/EC4oqxDHL Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCZnbAezjnobFOgrERAqYEAJ9a25uCceVtDReKpiAUkMsNi0h5fACeJvTc dpl7Dp6Sa4k3Bth3VKt/hR0= =qmxF -----END PGP SIGNATURE----- --iFRdW5/EC4oqxDHL--