Subject: Re: Reading file causes process to hang on getblk
To: None <current-users@NetBSD.ORG>
From: Dave Huang <khym@bga.com>
List: current-users
Date: 07/06/1997 20:34:13
Dave Huang wrote:
> My /etc/ccd.conf is:
> ccd0		32	2	/dev/sd0e /dev/sd1e
> 
> Doing "dd if=/dev/rsd0e of=/dev/null bs=1043968" and "dd if=/dev/rsd1e
> of=/dev/null bs=1043968" work just fine.
> 
> rsd0e is:
> #        size   offset    fstype   [fsize bsize   cpg]
>   e:  1553718  1091560    4.2BSD     1024  8192    16   # (Cyl. 1082*- 2624*)
> 
> rsd1e is:
> #        size   offset    fstype   [fsize bsize   cpg]
>   e:  1553718  1190168    4.2BSD     1024  8192    16   # (Cyl. 1062*- 2449*)
> 
> and ccd0d is:
> #        size   offset    fstype   [fsize bsize   cpg]
>   d:  3107436        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 1517*)
> 
> Is the problem that my ccd interleave size isn't a factor of the
> partition size?

Okay, it looks like that is the problem, or at least partly the
problem... ccdconfig -v with the interleave of 32 told me that the ccd
was 3107392 blocks long. I disklabeled it for 3107436 blocks though,
so I guess ccd wasn't happy trying to read past the end of the ccd or
something. It'd be nice if it returned some sort of error instead of
just hanging, preventing a clean shutdown though.

I changed the interleave to 127, ccdconfig -v says the ccd is 3107436
blocks long, and things seem to be working fine now...

Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 21 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++