On 14 Jan 2013, at 20:38, Andreas Klauer wrote: > And I'm an idiot, because I missed the obvious (doc/proto.txt). > > In my defense, for some reason this file appears to be missing > from the official nbd-3.2.tar.bz2 download, and did not come up > in my Google searches either. I found it browsing the source tree > on SourceForge,
FWIW, I've implemented nbd compatible servers pretty simply. The tricky part is the negotiation, which is not particularly well defined and neither the existing client code nor the server code are especially readable due in the main to the support for lots of old protocol versions. Once you've connected, understanding the protocol is easy. Determining what you are and aren't permitted to do is marginally harder, though the answer is basically 'whatever a linux block device can do' - this is particularly relevant if you have more than one outstanding command and want to complete them out of sequence. -- Alex Bligh ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
