From owner-freebsd-current@FreeBSD.ORG Wed Mar 28 19:21:01 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 E4B1416A403 for ; Wed, 28 Mar 2007 19:21:01 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 96D9113C4C8 for ; Wed, 28 Mar 2007 19:21:01 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 063924787B; Wed, 28 Mar 2007 14:20:59 -0500 (EST) Date: Wed, 28 Mar 2007 20:20:58 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Ivan Voras In-Reply-To: <460AAED3.9030903@fer.hr> Message-ID: <20070328202038.V1185@fledge.watson.org> References: <7ad7ddd90703280238r5dd3f30ftc1641926ecdf44a8@mail.gmail.com> <7ad7ddd90703280611p5c0ca4e1y600315551391a813@mail.gmail.com> <20070328185815.I1185@fledge.watson.org> <460AAED3.9030903@fer.hr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@FreeBSD.org 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 19:21:02 -0000 On Wed, 28 Mar 2007, Ivan Voras wrote: > Robert Watson wrote: >> On Wed, 28 Mar 2007, Ivan Voras wrote: >> >>> Ulrich Spoerlein wrote: >>> >>>> What kind of C program or script did you have in mind? My C-foo is very >>>> weak ... >>> >>> If you have python installed, this is a simple way: >> >> Also good is dd between the file system and /dev/null. Something worth >> remembering is that some tools (cp(1) in particular) use memory-mapped I/O, >> which may behave differently than raw I/O operations. > > You mean /dev/zero and dd with notrunc option? Yes, I didn't know about > notrunc until now :) Yes, precisely what you said. :-) Robert N M Watson Computer Laboratory University of Cambridge