Received: from eggs.gnu.org ([2001:4830:134:3::10]:43267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpweB-0006X0-1P for qemu-devel@nongnu.org; Fri, 30 Sep 2016 08:10:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpwe9-00067H-3t for qemu-devel@nongnu.org; Fri, 30 Sep 2016 08:10:33 -0400 From: Fam Zheng Date: Fri, 30 Sep 2016 20:09:32 +0800 Message-Id: <1475237406-26917-3-git-send-email-famz@redhat.com> In-Reply-To: <1475237406-26917-1-git-send-email-famz@redhat.com> References: <1475237406-26917-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v8 02/36] qapi: Add ImageLockMode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: berrange@redhat.com, John Snow , qemu-block@nongnu.org, Kevin Wolf , rjones@redhat.com, Jeff Cody , Max Reitz , Markus Armbruster , stefanha@redhat.com, den@openvz.org, pbonzini@redhat.com, eblake@redhat.com Signed-off-by: Fam Zheng --- qapi/block-core.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/qapi/block-core.json b/qapi/block-core.json index 92193ab..22e8d04 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -2754,3 +2754,21 @@ 'data' : { 'parent': 'str', '*child': 'str', '*node': 'str' } } + +## +# @ImageLockMode: +# +# @auto: defer to the block driver to use the least strict mode, based on +# the nature of format and read-only flag, and the supported locking +# operations of the protocol. +# +# @exclusive: always exclusively lock the image. +# +# @shared: use a shared lock mode. +# +# @nolock: don't lock the image. +# +# Since: 2.8 +## +{ 'enum': 'ImageLockMode', + 'data': ['auto', 'exclusive', 'shared', 'nolock'] } -- 2.7.4