Pat Campbell
2008-Jul-29 13:48 UTC
[Xen-devel][PATCH]linux/blkfront: Add "media" file to vbd sysfs directory
Patch adds "media" file to the vbd sysfs directory. File contains a string, cdrom or disk. Currently all PV vbd devices are seen by HAL as "disk". Applications that query HAL info.capabilities attribute to determine a block devices capabilities fail to see a PV cdrom as having CDROM capabilities. With the attached patch and a small corresponding patch to HAL, applications that query HAL for the storage type of the block device will see it as a disk or a cdrom. Standard Linux IDE devices use this same mechanism. lshal of vbd without patches: info.capabilities = {''storage'', ''block''} (string list) lshal of vbd with patches: info.capabilities = {''storage'', ''block'', ''storage.cdrom''} (string list) Please apply to tip of linux-2.6.18-xen.hg Signed-off-by: Pat Campbell <plc@novell.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel