[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] remove assertion that REMOVABLE/CDROM devices have no partition.
ChangeSet 1.1627.1.1, 2005/06/01 15:57:08+01:00, vh249@xxxxxxxxxxxxxxxxxxxxxx remove assertion that REMOVABLE/CDROM devices have no partition. Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx> vbd.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -Nru a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c --- a/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c 2005-06-01 12:02:09 -04:00 +++ b/linux-2.6.11-xen-sparse/drivers/xen/blkfront/vbd.c 2005-06-01 12:02:09 -04:00 @@ -275,15 +275,14 @@ di->mi = mi; di->xd_device = disk->device; - if (((disk->info & (VDISK_CDROM|VDISK_REMOVABLE)) == 0) && - ((minor & ((1 << mi->type->partn_shift) - 1)) == 0)) + if ((minor & ((1 << mi->type->partn_shift) - 1)) == 0) nr_minors = 1 << mi->type->partn_shift; gd = alloc_disk(nr_minors); if (gd == NULL) goto out; - if (((disk->info & (VDISK_CDROM|VDISK_REMOVABLE)) != 0) || (nr_minors > 1)) + if (nr_minors > 1) sprintf(gd->disk_name, "%s%c", mi->type->diskname, 'a' + mi->index * mi->type->disks_per_major + (minor >> mi->type->partn_shift)); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |