bitkeeper revision 1.1159.223.57 (42009aa1vckOCJ3XiCz8SXnP4BQsFw)

Small hack to make CROMMULTISESSION ioctl return success rather than enosys, like we did on Xen 1.2.
From: Anthony Liguori aliguori@us.ibm.com 
Signed-off-by: ian.pratt@cl.cam.ac.uk
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2005-02-02 09:17:21 +00:00
1 parent 2eb8f64d4a
commit a3eea3d441
1 file changed
+7
@@ -223,6 +223,7 @@ int blkif_release(struct inode *inode, struct file *filep)
int blkif_ioctl(struct inode *inode, struct file *filep,
unsigned command, unsigned long argument)
{
int i;
/* struct gendisk *gd = inode->i_bdev->bd_disk; */
DPRINTK_IOCTL("command: 0x%x, argument: 0x%lx, dev: 0x%04x\n",
@@ -234,6 +235,12 @@ int blkif_ioctl(struct inode *inode, struct file *filep,
/* return ENOSYS to use defaults */
return -ENOSYS;
case CDROMMULTISESSION:
DPRINTK("FIXME: support multisession CDs later\n");
for ( i = 0; i < sizeof(struct cdrom_multisession); i++ )
if ( put_user(0, (byte *)(argument + i)) ) return -EFAULT;
return 0;
default:
printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n",
command);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.