package nbd
Module Nbd.ClientSource
An NBD client which allows you to connect to remote disks and perform I/O.
include S.CLIENT
include Mirage_block.S
with type error =
[ Mirage_block.error | `Protocol_error of Nbd.Protocol.Error.t ]
and type write_error =
[ Mirage_block.write_error | `Protocol_error of Nbd.Protocol.Error.t ]
Source
type write_error = [ | `Disconnected| `Is_read_only| `Protocol_error of Protocol.Error.t| `Unimplemented
]The size of a remote disk
list channel returns a list of exports known by the server. `Error `Policy means the server has this function disabled deliberately. `Error `Unsupported means the server is old and does not support the query function.
negotiate channel export takes an already-connected channel, performs the initial protocol negotiation and connects to the named export. Returns disk * remote disk size * flags