[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: getting wedge information (esp. size) in kenrel ?
On Sun, Feb 24, 2008 at 02:18:41PM -0800, John Nemeth wrote:
> On Jul 17, 2:10pm, Manuel Bouyer wrote:
> } right now, the Xen block device backend gets the size information
> } of the backing device with
> } VOP_IOCTL(xbdi->xbdi_vp, DIOCGPART, &dpart, FREAD, 0);
> } but with this the size information is trucated to 32bits. If xbdi_vp points
> } to a wedge device, is there a way to get its 64bit size (and how do I
> } know it's a wedge in the first place) ?
> Maybe try getting the device properties dictionary and looking at
> it? See sys/kern/kern_drvctl.c:drvctl_command_get_properties().
thanks for the reply.
It looks like DIOCGWEDGEINFO does what I need, and it easier to
use than the device property :)
Manuel Bouyer, LIP6, Universite Paris VI.
NetBSD: 26 ans d'experience feront toujours la difference
Main Index |
Thread Index |