ia64/xen-unstable

changeset 898:db4b686bbf64

bitkeeper revision 1.566 (3fa9179e50emTfPyuQMw53twIxyaxA)

ide-xeno.c:
tweak
author smh22@labyrinth.cl.cam.ac.uk
date Wed Nov 05 15:30:38 2003 +0000 (2003-11-05)
parents 38ad3cea577f
children 2157fc1812d8
files xen/drivers/ide/ide-xeno.c
line diff
     1.1 --- a/xen/drivers/ide/ide-xeno.c	Wed Nov 05 15:26:33 2003 +0000
     1.2 +++ b/xen/drivers/ide/ide-xeno.c	Wed Nov 05 15:30:38 2003 +0000
     1.3 @@ -56,6 +56,10 @@ void ide_probe_devices(xen_disk_info_t* 
     1.4  
     1.5              xdi->disks[xdi->count].device   = device; 
     1.6              xdi->disks[xdi->count].info     = type; 
     1.7 +
     1.8 +	    if(type == XD_TYPE_CDROM) 
     1.9 +		xdi->disks[xdi->count].info |= XD_FLAG_RO; 
    1.10 +
    1.11              xdi->disks[xdi->count].capacity = capacity;
    1.12              xdi->count++;
    1.13