Convert to using cstruct

Incremental commit

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Update obuild with new dependencies

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Conversion of lwt code to use bigarrays now typechecks

The plain old unix library and test has been disabled for now.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Start adding a CLI ('nbd-tool') for testing purposes

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add missing file; result.ml

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add some ChangeLog entries for the next release

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Add NBD server and CLI subcommand 'serve'

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Update ChangeLog to add NBD server support

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
cli: add debug printing to 'serve' subcommand

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Fix the META file

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Switch interfaces to Cstruct.t from Lwt_bytes.t (ie raw bigarrays)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
cli: respond with 'ok' to all NBD requests

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
lwt: can now use a 'channel' rather than raw file descriptors

This will allow us to use Lwt_ssl-wrapped file descriptors instead.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Update to 0.9.1

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
lwt: fix a race in the rpc function

We must add the request id to the table before transmitting, in
case the reply comes back very quickly.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
lwt: treat an unexpected packet as an error

If an unexpected packet comes back then we shouldn't assume the
data is intact.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #3 from mcclurmc/cstruct

Update to latest version, which uses cstruct