tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: getting wedge information (esp. size) in kenrel ?
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().
}-- End of excerpt from Manuel Bouyer
Home |
Main Index |
Thread Index |
Old Index