mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
nbd: Handle NBD_OPT_LIST option.
Signed-off-by: Hani Benhabiles <kroosec@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f5076b5a75
commit
32d7d2e068
2 changed files with 68 additions and 0 deletions
|
@ -52,7 +52,10 @@ struct nbd_reply {
|
|||
#define NBD_FLAG_C_FIXED_NEWSTYLE (1 << 0) /* Fixed newstyle protocol. */
|
||||
|
||||
/* Reply types. */
|
||||
#define NBD_REP_ACK (1) /* Data sending finished. */
|
||||
#define NBD_REP_SERVER (2) /* Export description. */
|
||||
#define NBD_REP_ERR_UNSUP ((1 << 31) | 1) /* Unknown option. */
|
||||
#define NBD_REP_ERR_INVALID ((1 << 31) | 3) /* Invalid length. */
|
||||
|
||||
#define NBD_CMD_MASK_COMMAND 0x0000ffff
|
||||
#define NBD_CMD_FLAG_FUA (1 << 16)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue