in reply to Re^2: imitation block device in linux
in thread imitation block device in linux
There is little documentation about the NBD protocol, you will have to read the C source code for the nbd-server program. It is a very simple protocol. After some simple handshaking, there are only two kind of messages you have to support: read and write.
Another option would be to write a custom nbd-client able to fork and run the server through an anonymous socket (think socketpair).
|
|---|