ia64/xen-unstable
changeset 3925:71098e86c2a4
bitkeeper revision 1.1236.1.22 (421e7d0c-kyK5jZSZ0PDCrhEIXuXbg)
Merge tetris.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into tetris.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
Merge tetris.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into tetris.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
author | iap10@tetris.cl.cam.ac.uk |
---|---|
date | Fri Feb 25 01:19:08 2005 +0000 (2005-02-25) |
parents | c605437de872 73625446964d |
children | 826d1823c5b4 |
files | linux-2.4.29-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c |
line diff
1.1 --- a/linux-2.4.29-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c Fri Feb 25 01:11:12 2005 +0000 1.2 +++ b/linux-2.4.29-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c Fri Feb 25 01:19:08 2005 +0000 1.3 @@ -288,7 +288,7 @@ static int xlvbd_init_device(vdisk_t *xd 1.4 /* Need to skankily setup 'partition' information */ 1.5 gd->part[minor].start_sect = 0; 1.6 gd->part[minor].nr_sects = capacity; 1.7 - gd->sizes[minor] = capacity; 1.8 + gd->sizes[minor] = capacity >>(BLOCK_SIZE_BITS-9); 1.9 1.10 gd->flags[minor >> gd->minor_shift] |= GENHD_FL_VIRT_PARTNS; 1.11 }