Subject: Re: vn drives incompatible with 1.4.x ?
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: David Brownlee <abs@netbsd.org>
List: port-vax
Date: 04/04/2000 11:19:16
On Mon, 3 Apr 2000, der Mouse wrote:

> > evax# vnconfig /dev/vnd0c boot.fs
> > vnconfig: /dev/vnd0c: VNDIOCSET: Invalid argument
> 
> Looking over the code for returns of EINVAL, I note that you didn't
> specify a geometry.  This causes the vnd driver (sys/dev/vnd.c) to use
> a standard fictitious geometry, and the code says
> 
>                         /*
>                          * Size must be at least 2048 DEV_BSIZE blocks
>                          * (1M) in order to use this geometry.
>                          */
>                         if (vnd->sc_size < (32 * 64)) {
>                                 vndunlock(vnd);
>                                 return (EINVAL);
>                         }
> 
> Is boot.fs at least a megabyte?  The output from "file" implies the
> filesystem is smaller than that ("number of blocks 2000"), so boot.fs
> itself likely is too.
> 
	This seems a somewhat arbitrary limit - maybe vnd.c should tweak
	the geometry if the size if smaller?

		David/absolute