ia64/xen-unstable

changeset 3924:73625446964d

bitkeeper revision 1.1159.258.13 (421e7cfaHXBVrm-2XYB50x2aleoG0A)

From: Jari Ruusu via Pasi K?rkk?inen [pasik@iki.fi]

Small fix to 2.4 blkfront such that the capacity is reported correctly.
Does 2.6 need a similar fix?

Signed-off-by: ian@xensource.com
author iap10@tetris.cl.cam.ac.uk
date Fri Feb 25 01:18:50 2005 +0000 (2005-02-25)
parents 6b2ff04c12cf
children 71098e86c2a4 0dc6a70c0a02
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:10:33 2005 +0000
     1.2 +++ b/linux-2.4.29-xen-sparse/arch/xen/drivers/blkif/frontend/vbd.c	Fri Feb 25 01:18:50 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      }