Subject: Re: The demise of DEV_BSIZE
To: Chuck Silvers <chuq@chuq.com>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: tech-kern
Date: 10/12/1999 10:13:06
On Tue, 12 Oct 1999, Chuck Silvers wrote:

> oh, I was confused, you're talking about VFS_VGET() returning a device node...
> hmm.  it's starting to sound like checkalias() is the wrong place to be
> dealing with the sector size, it's really more of an open-time thing rather
> than vget-time.  how about just requiring that d_open() deal with it
> for disk devices?  but d_open() doesn't have the right pointer for that.

?? It'd be calling its own ioctl routine. :-)

I am starting to think that spec_open() is a better place to do things.

> it seems like it might be better to pass around a pointer to something
> in many of the places where we currently pass around dev_t's, then we
> can just get at the bsize via that pointer instead of needing to call
> a function for it.

This value will get shoved into the device's vnode's struct specinfo. From
my hacking on the code, that's usually enough. :-)

Take care,

Bill