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: Disk naming (Was Re: [Xen-devel] [PATCH] Guest boot loadersupport [1

On Fri, 15 Apr 2005, Anthony Liguori wrote:

> Adam Heath wrote:
>
> >It does.  So, it's the blkback in dom0 that requires a device node.  How 
> >about
> >it the blkback were extended to support files in filesystems?
> >
> >
> I think the hardest thing to deal with is the fact that the control
> messages are limited to 60 bytes meaning that if you changed the
> be_vbd_create message to pass file names instead of device types you'd
> have to support continuations to suport filenames that are > ~40 bytes long.

Er, no.  The blkback allocates it's own id, which is passed around between
them.

The blkback them maps the id into a handle structure, which then has a void
*data(or a union, if you want) that maintains a pointer to a filename, or
reference to a block device, then a function dispatch table that knows how to
handle the requests.


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

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