From owner-freebsd-current@FreeBSD.ORG Wed Mar 28 16:04:03 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3790016A407 for ; Wed, 28 Mar 2007 16:04:03 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E60EE13C458 for ; Wed, 28 Mar 2007 16:04:02 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HWacs-0002W7-2k for freebsd-current@freebsd.org; Wed, 28 Mar 2007 18:03:54 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Mar 2007 18:03:54 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Mar 2007 18:03:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Ivan Voras Date: Wed, 28 Mar 2007 18:03:35 +0200 Lines: 49 Message-ID: References: <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com> <7ad7ddd90703280611p5c0ca4e1y600315551391a813@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD4440D018218B49FB64200F8" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.10 (X11/20060911) In-Reply-To: <7ad7ddd90703280611p5c0ca4e1y600315551391a813@mail.gmail.com> X-Enigmail-Version: 0.94.2.0 Sender: news Subject: Re: NFS write() calls lead to read() calls? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 28 Mar 2007 16:04:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD4440D018218B49FB64200F8 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Ulrich Spoerlein wrote: > What kind of C program or script did you have in mind? My C-foo is very= =20 > weak ... If you have python installed, this is a simple way: ---- print "writing" f =3D file("a_file", "w") for x in xrange(1024): # write 1024 MB f.write(' '*1024*1024) f.close() raw_input("press enter to rewrite") print "rewriting" f =3D file("a_file", "r+") for x in xrange(1024): # write 1024 MB again f.write(' '*1024*1024) f.close() ---- save it to a file, run the file with python interpreter. If you don't=20 observe the weird read-before-write effect, then it's not a problem in=20 FreeBSD / NFS. --------------enigD4440D018218B49FB64200F8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGCpHeldnAQVacBcgRAhMOAKCSJeFj5s91ez30c8a9to0AWOLiKgCgpv/6 qq8onPrO+FCXNTWY9zSJrpM= =FEUB -----END PGP SIGNATURE----- --------------enigD4440D018218B49FB64200F8--