Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Nbd.Protocol
SourceTypes representing NBD protocol requests and responses.
Once a connection has been established, the client can submit commands.
Every disk (or 'export') has a number of associated flags. This will be returned from the server when the negotiation is complete.
During the protocol negotiation there are some defined flags used to choose protocol variants. These flags are sent by the server.
During the protocol negotiation there are some defined flags used to choose protocol variants. These flags are sent by the client.
In the 'newstyle' negotiation there is an opportunity for the client to negotiate options with the server. These are the known options.
When the client sends an option request, the server must reply.
The server sends an initial greeting when the connectino is opened. It can be of two main types: the original V1
and a 'newstyle' V2
.
The client's initial response to the server's greeting
Every option the client requests has the same header.
An ExportName option payload
Details about the export chosen by the client, sent in response to an ExportName
option.
The server sends a response to every option request sent by the client (except ExportName
which is followed by a DiskInfo
. This is the header of the response.
In response to a List
option, the server sends a number of Server
responses and then finally an Ack
After the negotation phase, clients send I/O requests to the server.