nbd: Expose and debug more NBD constants
The NBD protocol has several constants defined in various extensions that we are about to implement. Expose them to the code, along with an easy way to map various constants to strings during diagnostic messages. Signed-off-by:Eric Blake <eblake@redhat.com> Message-Id: <20170707203049.534-4-eblake@redhat.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- include/block/nbd.h 28 additions, 9 deletionsinclude/block/nbd.h
- nbd/client.c 34 additions, 18 deletionsnbd/client.c
- nbd/common.c 92 additions, 0 deletionsnbd/common.c
- nbd/nbd-internal.h 4 additions, 6 deletionsnbd/nbd-internal.h
- nbd/server.c 11 additions, 7 deletionsnbd/server.c
- nbd/trace-events 6 additions, 6 deletionsnbd/trace-events
Loading
Please register or sign in to comment