[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simplified protocol?



On Tue, Oct 16, 2018 at 11:35:45AM +0100, Richard W.M. Jones wrote:
> On Mon, Oct 15, 2018 at 03:54:45PM -0500, Greg Gabelmann wrote:
> > Hello,
> > 
> > I'm interested in implementing a server for the NBD protocol (fixed
> > newstyle) as a learning exercise. I've been reading about the protocol on
> > NBD's github site and what I'm wondering is if there's a "simplified"
> > version that I could implement. For example, no parallel connections, no
> > TLS, etc. But the document is lengthy and I'm not sure which other features
> > I can ignore safely...
> 
> The basic newstyle protocol is quite simple, and you can definitely
> ignore both parallel connections and TLS.  Also all of the following
> can be *ignored* in an initial implementation: NBD_CMD_DISC,
> NBD_CMD_FLUSH, NBD_CMD_TRIM, NBD_CMD_WRITE_ZEROES, NBD_CMD_FLAG_*,
> NBD_OPT_STARTTLS, NBD_OPT_GO, Structured Replies, Block Status,
> Resize.

I've been thinking about adding a "baseline" to the spec that any basic
implementation should include. The above sounds like a good start,
indeed.

-- 
To the thief who stole my anti-depressants: I hope you're happy

  -- seen somewhere on the Internet on a photo of a billboard


Reply to: