debuggers.hg
diff linux-2.6.10-xen-sparse/drivers/xen/blkfront/blkfront.c @ 3646:17e50d7ed675
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
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
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Wed Feb 02 09:17:21 2005 +0000 (2005-02-02) |
parents | 515888a1b568 |
children | d49c0626928e |
line diff
1.1 --- a/linux-2.6.10-xen-sparse/drivers/xen/blkfront/blkfront.c Tue Feb 01 21:59:12 2005 +0000 1.2 +++ b/linux-2.6.10-xen-sparse/drivers/xen/blkfront/blkfront.c Wed Feb 02 09:17:21 2005 +0000 1.3 @@ -223,6 +223,7 @@ int blkif_release(struct inode *inode, s 1.4 int blkif_ioctl(struct inode *inode, struct file *filep, 1.5 unsigned command, unsigned long argument) 1.6 { 1.7 + int i; 1.8 /* struct gendisk *gd = inode->i_bdev->bd_disk; */ 1.9 1.10 DPRINTK_IOCTL("command: 0x%x, argument: 0x%lx, dev: 0x%04x\n", 1.11 @@ -234,6 +235,12 @@ int blkif_ioctl(struct inode *inode, str 1.12 /* return ENOSYS to use defaults */ 1.13 return -ENOSYS; 1.14 1.15 + case CDROMMULTISESSION: 1.16 + DPRINTK("FIXME: support multisession CDs later\n"); 1.17 + for ( i = 0; i < sizeof(struct cdrom_multisession); i++ ) 1.18 + if ( put_user(0, (byte *)(argument + i)) ) return -EFAULT; 1.19 + return 0; 1.20 + 1.21 default: 1.22 printk(KERN_ALERT "ioctl %08x not supported by Xen blkdev\n", 1.23 command);