[2/2] nbd: add all possible transmission flags supported by NBD
diff mbox series

Message ID 20181004131739.11053-1-den@openvz.org
State New
Headers show
Series
  • Untitled series #26699
Related show

Commit Message

Denis V. Lunev Oct. 4, 2018, 1:17 p.m. UTC
This is done to avoid silly mistakes like one with wrong value of
NBD_FLAG_SEND_CACHE flag.

Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
CC: Eric Blake <eblake@redhat.com>
CC: Paolo Bonzini <pbonzini@redhat.com>
---
 include/block/nbd.h | 3 +++
 1 file changed, 3 insertions(+)

Patch
diff mbox series

diff --git a/include/block/nbd.h b/include/block/nbd.h
index 4377fa502c..ea8e792de0 100644
--- a/include/block/nbd.h
+++ b/include/block/nbd.h
@@ -135,6 +135,9 @@  typedef struct NBDExtent {
 #define NBD_FLAG_SEND_TRIM         (1 << 5) /* Send TRIM (discard) */
 #define NBD_FLAG_SEND_WRITE_ZEROES (1 << 6) /* Send WRITE_ZEROES */
 #define NBD_FLAG_SEND_DF           (1 << 7) /* Send DF (Do not Fragment) */
+#define NBD_FLAG_CAN_MULTI_CONN    (1 << 8) /* Shared cache over multiple
+                                               connections per export */
+#define NBD_FLAG_SEND_RESIZE       (1 << 9)  /* Support RESIZE extension */
 #define NBD_FLAG_SEND_CACHE        (1 << 10) /* Send CACHE (prefetch) */
 
 /* New-style handshake (global) flags, sent from server to client, and