ia64/xen-unstable

changeset 5257:cb48c33361cd

bitkeeper revision 1.1627.1.1 (429dccc4mVL3VaR3aEhZK7D4ZhqHfA)

remove assertion that REMOVABLE/CDROM devices have no partition.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
author vh249@arcadians.cl.cam.ac.uk
date Wed Jun 01 14:57:08 2005 +0000 (2005-06-01)
parents f16ac5cfa153
children f3d83aed87fa
files linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c	Wed Jun 01 12:36:40 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c	Wed Jun 01 14:57:08 2005 +0000
     1.3 @@ -275,15 +275,14 @@ struct gendisk *xlvbd_alloc_gendisk(
     1.4      di->mi = mi;
     1.5      di->xd_device = disk->device;
     1.6  
     1.7 -    if (((disk->info & (VDISK_CDROM|VDISK_REMOVABLE)) == 0) &&
     1.8 -        ((minor & ((1 << mi->type->partn_shift) - 1)) == 0))
     1.9 +    if ((minor & ((1 << mi->type->partn_shift) - 1)) == 0)
    1.10          nr_minors = 1 << mi->type->partn_shift;
    1.11  
    1.12      gd = alloc_disk(nr_minors);
    1.13      if (gd == NULL)
    1.14          goto out;
    1.15  
    1.16 -    if (((disk->info & (VDISK_CDROM|VDISK_REMOVABLE)) != 0) || (nr_minors > 1))
    1.17 +    if (nr_minors > 1)
    1.18          sprintf(gd->disk_name, "%s%c", mi->type->diskname,
    1.19                  'a' + mi->index * mi->type->disks_per_major +
    1.20                      (minor >> mi->type->partn_shift));