[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] BLOCK APIs
Hi,
On Sat, Oct 17, 2015 at 11:58 AM, Rupert Horlick <rh572@xxxxxxxxx> wrote:
No reason at all that I can see or think of. We should probably use `V1_LWT.BLOCK` to simplify things (a little). Â
Ah, this is on purpose. IIRC there are 2 reasons: 1. we wanted to allow implementations to use types other than strings We could have used something like a URI and parsed it in `connect`, but since we're doing as much as we can statically it seems nicer to be able to use types like records. 2. we wanted to "hide" the raw connection creation functions as much as possible, so we could be sure that code that operated over a `BLOCK` (say formatting a disk partition) didn't re-`connect` and start writing to an unexpected part of the disk. Cheers, Dave
Dave Scott
_______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |