[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disk naming (Was Re: [Xen-devel] [PATCH] Guest boot loadersupport [1/2])



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.