Subject: re: access to device fails after update
To: Noriyuki Soda <soda@sra.co.jp>
From: matthew green <mrg@eterna.com.au>
List: current-users
Date: 06/21/2004 16:57:16
> Well, I guess what you really meant to do is the following:
> gzip -dc image.gz | dd of=/dev/rwd0d obs=16k conv=osync
Oops, I missed the following part of your mail:
>>>>> On Sun, 20 Jun 2004 18:55:19 +0200,
Jukka Salmi <jukka-netbsd@2004.salmi.ch> said:
> Yes, but the file I'm trying to write to /dev/rwd0d is 5242880
> (== 16k * 320 == 10240 * 512) bytes
In that case, "conv=osync" is not needed, and the following command
should work:
gzip -dc image.gz | dd of=/dev/rwd0d obs=16k
> Although I'm not sure why the gzip binary from 1.6.2 works.
And, hmm, I guess GNU gzip is doing buffering at output side,
but gzip in -current does not.
Matt,
Isn't it better to do the buffering for compatibility with GNU gzip?
hmmm. gnu gzip appears to write in 32k blocks, mrg gzip does it
in 64k blocks. soda, do you think i should change this to 32k?
jukka, if you change gzip.c #define BUFLEN to (32 * 1024) can
you see if that helps?
.mrg.