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:
vh249@arcadians.cl.cam.ac.uk committed 2005-06-01 14:57:45 +00:00
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));
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.