Received: from eggs.gnu.org ([2001:4830:134:3::10]:43225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUTXt-0005v8-DM for qemu-devel@nongnu.org; Fri, 20 Jan 2017 02:23:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUTXs-0008RY-MV for qemu-devel@nongnu.org; Fri, 20 Jan 2017 02:23:37 -0500 From: Fam Zheng Date: Fri, 20 Jan 2017 15:22:56 +0800 Message-Id: <20170120072310.8009-3-famz@redhat.com> In-Reply-To: <20170120072310.8009-1-famz@redhat.com> References: <20170120072310.8009-1-famz@redhat.com> Subject: [Qemu-devel] [PATCH v11 02/16] block: Define BDRV_O_SHARE_RW List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Kevin Wolf , rjones@redhat.com, Max Reitz , "Daniel P. Berrange" , eblake@redhat.com Signed-off-by: Fam Zheng --- include/block/block.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/block/block.h b/include/block/block.h index 8b0dcda..243839d 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -97,6 +97,8 @@ typedef struct HDGeometry { select an appropriate protocol driver, ignoring the format layer */ #define BDRV_O_NO_IO 0x10000 /* don't initialize for I/O */ +#define BDRV_O_SHARE_RW 0x20000 /* accept shared read-write from other users + of the image */ #define BDRV_O_CACHE_MASK (BDRV_O_NOCACHE | BDRV_O_NO_FLUSH) -- 2.9.3