[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: mutable store on mirage?
Hi Chris.
On Wed, Oct 16, 2013 at 6:55 PM, Christopher Greenhalgh <Chris.Greenhalgh@xxxxxxxxxxxxxxxx> wrote: is there currently a sensible option for a mutable datastore in mirage? I made an attempt a while ago, back here: I didn't hook it up to blkif because the blkif wasn't very stable back then. It's worth another look now though.
I think blkif is stable enough to use now, although the interface will probably need to evolve a bit. TBH we'll only really know what the interface should be when we have a bunch of code trying to use it. I've got a branch of mirage-www which replaces the 'crunch' fs with data read from blkif in .tar format:
e) the mirage-unix OS has a skeleton blkif (over file) implementation but this is currently unimplemented; is it worth implementing and using this for posix or do we expect to use something like dave's ocaml xen-block-driver and xen-disk to emulate block devices from files instead even on posix targets? I'd like to see unix blkif implemented (without using the xen implementation). I've got some patches lying around which open files with O_DIRECT and perform unbuffered sector-aligned I/O. I was thinking of making a 'unix-block-driver' with this code in it, mirroring the xen implementation. It's mostly a thin veneer over Lwt_bytes, replacing Bigarray.t with Cstruct.t. In future I was thinking the mirage-platform repo could become the minimal 'boot' code plus module types for Blkif, Netif etc; and all the concrete implementations could be spun out into other repos.
What do people think? Cheers, Dave
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |