* Question on virtual block device
@ 2011-10-27 16:14 Daniel Castro
2011-10-27 16:30 ` Ian Campbell
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Castro @ 2011-10-27 16:14 UTC (permalink / raw)
To: xen-devel, seabios
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?
Thanks,
Daniel
--
+-=====---------------------------+
| +---------------------------------+ | This space intentionally blank
for notetaking.
| | | Daniel Castro, |
| | | Consultant/Programmer.|
| | | U Andes |
+-------------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question on virtual block device
2011-10-27 16:14 Question on virtual block device Daniel Castro
@ 2011-10-27 16:30 ` Ian Campbell
0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2011-10-27 16:30 UTC (permalink / raw)
To: Daniel Castro; +Cc: xen-devel, seabios
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-27 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-27 16:14 Question on virtual block device Daniel Castro
2011-10-27 16:30 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.