|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
Re: [Xen-devel] [PATCH 1 of 2] blkfront: sector size > 512 
| Stefano Stabellini, le Thu 21 May 2009 12:40:52 +0100, a écrit :
> The first and last sector as well as the sector number of the request is
> expressed in 512 bytes units, independently from the real sector size.
>      req->id = (uintptr_t) aiocbp;
> -    req->sector_number = aiocbp->aio_offset / dev->info.sector_size;
> +    req->sector_number = aiocbp->aio_offset / 512;
>  
Oh?!
That needs to be better documented in xen/include/public/io/blkif.h,
then.  I'm however wondering whether this shouldn't actually be fixed in
the blkback/cdrom interface instead.
Samuel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 |  | 
  
    |  |  |