Subject: Re: Vinum in NetBSD: status and questions
To: Greg 'groggy' Lehey <>
From: Jason Thorpe <>
List: current-users
Date: 04/08/2003 09:14:18
On Tuesday, April 8, 2003, at 03:05  AM, Greg 'groggy' Lehey wrote:

> Understood.  That works fine.  But it's a question of how I talk to
> it.  In classical UNIX, I'd write
>   	(*bdevsw[major(rqe->b.b_dev)]->d_strategy) (&rqe->b);
> That doesn't seem to work in 1.6Q, and I was asking for what the Right
> Thing To Do is.  It could be a missing header file, but comparing what
> RAIDFrame does, I get the feeling that there has been a conscious
> decision to deprecate this style.  An obvious reason would be that if
> the major number isn't allocated, you'll make a real mess of the
> system.

The right thing to do (ever since BSD has had them) would be to use 
vnodes.  The ccd driver is probably the easiest to read in order to see 
how this should be done.

         -- Jason R. Thorpe <>