From owner-freebsd-standards@FreeBSD.ORG Wed Apr 20 17:39:00 2005 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B3BA16A4CE for ; Wed, 20 Apr 2005 17:39:00 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2052D43D39 for ; Wed, 20 Apr 2005 17:39:00 +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 440C31F096; Wed, 20 Apr 2005 19:38:59 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 26A776583; Wed, 20 Apr 2005 19:38:59 +0200 (CEST) Date: Wed, 20 Apr 2005 19:38:59 +0200 From: Marc Olzheim To: freebsd-standards@freebsd.org Message-ID: <20050420173859.GA99695@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> <16998.36437.809896.936800@khavrinen.csail.mit.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <16998.36437.809896.936800@khavrinen.csail.mit.edu> 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: Garrett Wollman Subject: Re: NFS client/buffer cache deadlock X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 17:39:00 -0000 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 20, 2005 at 01:16:05PM -0400, Garrett Wollman wrote: > < sai= d: >=20 > > Btw.: I'm not sure write(),writev() and pwrite() are allowed to do short > > writes on regular files... ? >=20 > 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. >=20 > As a quality-of-implementation matter, for writes to regular files not > to be atomic would be considered surprising. >=20 > -GAWollman Could someone from standards comment here ? I believe Garrett is right... (thread is on -hackers and -current) Marc --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCZpOzezjnobFOgrERAnLDAJ9Vaq4bpJkVoUOC/npsG07DllHd2gCgwDmn 8mEJcwidDAFtEadBZvuiPWQ= =sN7A -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--