Skip to main content

Module nbd

Module nbd 

Source
Expand description

Network Block Device server. Rust owns the fixed newstyle handshake, option haggling and transmission; the handler describes each export once per connection and Rust serves every read from that description. Exports are read-only.

Modules§

actions
wire
NBD constants (the fixed newstyle handshake, options, transmission) and the read-only export a handler describes: a size, data extents, fill extents and error regions; everything else reads as zeroes.

Constants§

HANDSHAKE_DEADLINE
The whole handshake, and the rest of any message once its first byte has arrived.
MAX_DESCRIPTORS
Block status descriptors in one reply.
MAX_OPTIONS
MESSAGE_DEADLINE

Functions§

spawn