ia64/xen-unstable

changeset 412:eaaeabbe61cb

bitkeeper revision 1.199 (3eb13d7aaFLvrWm2Gy0oHRZ0KyIWNw)

xl_block.c:
Fix xenolinux blkdev ioctl handling. Handle multisession probing in a simple manner (always say NOT multisession :-).
author kaf24@scramble.cl.cam.ac.uk
date Thu May 01 15:30:02 2003 +0000 (2003-05-01)
parents 040b2a93aca3
children 7fb2646bf479
files xenolinux-2.4.21-pre4-sparse/arch/xeno/drivers/block/xl_block.c
line diff
     1.1 --- a/xenolinux-2.4.21-pre4-sparse/arch/xeno/drivers/block/xl_block.c	Thu May 01 00:18:20 2003 +0000
     1.2 +++ b/xenolinux-2.4.21-pre4-sparse/arch/xeno/drivers/block/xl_block.c	Thu May 01 15:30:02 2003 +0000
     1.3 @@ -7,6 +7,7 @@
     1.4  
     1.5  #include "xl_block.h"
     1.6  #include <linux/blk.h>
     1.7 +#include <linux/cdrom.h>
     1.8  
     1.9  typedef unsigned char byte; /* from linux/ide.h */
    1.10  
    1.11 @@ -223,9 +224,15 @@ int xenolinux_block_ioctl(struct inode *
    1.12  	if (put_user(0x106, (unsigned int *) &geo->cylinders)) return -EFAULT;
    1.13  	return 0;
    1.14  
    1.15 +    case CDROMMULTISESSION:
    1.16 +        printk("FIXME: support multisession CDs later\n");
    1.17 +        memset((struct cdrom_multisession *)argument, 0, 
    1.18 +               sizeof(struct cdrom_multisession));
    1.19 +        return 0;
    1.20 +
    1.21      default:
    1.22 -        DPRINTK_IOCTL("   eh? unknown ioctl\n");
    1.23 -	break;
    1.24 +        printk("ioctl %08x not supported by xl_block\n", command);
    1.25 +	return -ENOSYS;
    1.26      }
    1.27      
    1.28      return 0;