 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] [ANN] tjr_btree 0.1.0 (initial release)
 Yes it is very easy. Please see the disk_ops type in the API.  (** Disk operations: read, write, and sync *) type 't disk_ops = {   block_size: BLK.sz;   read: BLK.r -> (BLK.t,'t) m;   write: BLK.r -> BLK.t -> (unit,'t) m;   disk_sync: unit -> (unit,'t) m; } Also the disk_to_store function, and store_to_map. So if you have a disk_ops (or store_ops) you can get a map_ops. But really this is a B-tree library. More work needs to be done to get an efficient KV store, or filesystem or whatever. But yes, it is already done - I looked at the Mirage block interface a while ago and it seems reasonable and close to what disk_ops assumes (which isn't much).  BTW what was confusing about the structure? Did you read the overview?  Thanks for your interest! T On 5 May 2017 3:50 pm, "Mindy" <mindy@xxxxxxxxxxxxxxxxxxx> wrote: 
 _______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |