WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Question on virtual block device

On Thu, 2011-10-27 at 17:14 +0100, Daniel Castro wrote:
> Hello All,
> 
> I am connecting my front and back for a block device.
> I have collected from xenstore sectors, sector-size. But I also need:
>     u16 heads;      // # heads
>     u16 cylinders;  // # cylinders
>     u16 spt;        // # sectors / track
> I guess from the SeaBIOS perspective they are required, but from the
> xen perspective how can I get them? pure math/translation?

CHS is rather historical and has no real relevance to a virtual device.
You can basically just make them up to fit the underlying device size,
take a look at blkif_getgeo in Linux for example.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>