]> xenbits.xensource.com Git - xenclient/kernel.git/commit
Add the CDROM_GET_CAPABILITY ioctl to blkfront.
authorChristian Limpach <Christian.Limpach@xensource.com>
Tue, 11 Sep 2007 15:38:13 +0000 (16:38 +0100)
committerChristian Limpach <Christian.Limpach@xensource.com>
Tue, 11 Sep 2007 15:38:13 +0000 (16:38 +0100)
commit803965dcdf1b9a4189bf27dfb153d36f373da3fe
treedd73042c59ec9c4473dc3de6074daa27ce589baa
parenta2ef754d8d17aded93f31c96c4ff181dcf2ca6d4
Add the CDROM_GET_CAPABILITY ioctl to blkfront.
Return 0 instead of -EINVAL if the blkfront device is a cdrom,
i.e. had the VDISK_CDROM attribute.  This allows udev's cdrom_id
to correctly detect the device as a cdrom device.
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
drivers/xen/blkfront/blkfront.c