mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
bitkeeper revision 1.1629 (429dcce9xCwGMwnshlCHuyiV7vxpFA)
Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk into arcadians.cl.cam.ac.uk:/local/scratch-2/vh249/xen-unstable.bk
This commit is contained in:
commit
0a461095da
1 file changed
+2
-3
@@ -275,15 +275,14 @@ struct gendisk *xlvbd_alloc_gendisk(
|
||||
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));
|
||||
|
||||