Subject: Re: new kpi proposal, sysdisk(9)
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 12/28/2006 16:45:52
YAMAMOTO Takashi wrote:
>> do you have idea on how to achieve the same
>> (for mounts, swap devices, raidframe, and potentially other subsystems;
>> that's the tricky part ;) with struct specinfo or struct disk?
>>
>> -e.
> 
> for example, add a flag to VOP_OPEN and VOP_CLOSE (and corresponding
> device driver entries) to say "it's open for mount" (or swap, etc)
> so that the info can be maintained in a similar way to openmasks.
> 
> YAMAMOTO Takashi

other than the obvious issue of this being not as extensible as
sysdisk(9), the VOP interface is something I'd rather not touch. :)

(not only because this specific extension may be an ugly hack,
and again, I'm not sure possible for all users of the proposed
interface, but because I think VOP is messy as it is.)

-e.