xen/blkfront: Add the CDROM_GET_CAPABILITY ioctl to blkfront.
authorChristian Limpach <Christian.Limpach@xensource.com>
Tue, 17 Jun 2008 08:47:08 +0000 (10:47 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Jul 2008 11:21:13 +0000 (13:21 +0200)
commit440a01a7f46742400c74d9d346118523e81d188b
tree7f79afef47dddad38b488c56e160d39ed034b0d5
parent1c91fe1a0d577f2e53475e789c9d63a0feb7d93c
xen/blkfront: 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.

[ Add blkif_ioctl, and CDROMMULTISESSION ]

[ linux-2.6.18-xen changeset d2bd9af846b5 ]

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/xen-blkfront.c