qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 2/2] nbd: add all possible transmission flags suppor


From: Denis V. Lunev
Subject: [Qemu-devel] [PATCH 2/2] nbd: add all possible transmission flags supported by NBD
Date: Thu, 4 Oct 2018 16:17:39 +0300

This is done to avoid silly mistakes like one with wrong value of
NBD_FLAG_SEND_CACHE flag.

Signed-off-by: Denis V. Lunev <address@hidden>
CC: Vladimir Sementsov-Ogievskiy <address@hidden>
CC: Eric Blake <address@hidden>
CC: Paolo Bonzini <address@hidden>
---
 include/block/nbd.h | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]