Subject: Re: NFS root problems [Was: Re: Kernel cross build problems]
To: Ian Fry <Ian.Fry@sophos.com>
From: Ben Harris <bjh21@netbsd.org>
List: port-arm26
Date: 11/13/2001 21:16:46
On Tue, 13 Nov 2001, Ian Fry wrote:

> Yes, I did some tests last night using the following script (and some slight
> variations with different block sizes to make sure that that wasn't a
> factor):

Block size is a factor, it seems:
dd if=/dev/zero of=/root/thing bs=32k count=1 # => 32k
dd if=/dev/zero of=/root/thing bs=16k count=1 # => 16k
dd if=/dev/zero of=/root/thing bs=16k count=2 # => 16k
dd if=/dev/zero of=/root/thing bs=8k  count=1 # => 8k
dd if=/dev/zero of=/root/thing bs=8k  count=2 # => 8k
dd if=/dev/zero of=/root/thing bs=8k  count=4 # => 8k
dd if=/dev/zero of=/root/thing bs=4k  count=1 # => 0k
dd if=/dev/zero of=/root/thing bs=4k  count=2 # => 8k
dd if=/dev/zero of=/root/thing bs=4k  count=4 # => 8k
dd if=/dev/zero of=/root/thing bs=4k  count=8 # => 8k

> So, of these, only an 8k file produces an 8k file! Anything less than 8k
> produces a zero size file, and anything above 32k (including 32k) produces a
> file 24k too short. Hmmm...

Hmm indeed.  Maybe I should stop playing with this bug and start tracking
it down...

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>