lwNBD

A Lightweight NBD server library

View on GitHub

lwNBD-NBD-server(1) – A NBD server

TARGETS : ALL

STATUS : DONE

Tested clients

Although this server is not yet complete in respect of the minimal requirements defined by the NBD protocol, it is nevertheless usable with certain clients. In a RERO spirit i publish this “AS-IS”.

Known supported clients :

piconbd

The NBD protocol itself is implemented in this 2 files :

‘piconbd’ is a name code for this files. Except from endianess operations, they are free from transport layer, we could use it on another transport than TCP? think UDP or local IPC. They still rely on context method, but it could be easily factored to be a separate library, letting people using it without all the mechanism of lwnbd. I’ll fork lwnbd and let only this files to provide protocol implementation only.

TODO

NBD proto doesn’t support streams, we need to discuss it @ https://lists.debian.org/nbd/ is the central mailing list for the NBD protocol On stream, exportsize doesn’t matter … stream_get_size()