Re: NFS write() calls lead to read() calls?

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Wed, 28 Mar 2007 20:20:58 +0100 (BST)
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
Received on Wed Mar 28 2007 - 17:21:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC