tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

getting wedge information (esp. size) in kenrel ?



Hi,
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) ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index