From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnHg0-0007gX-LI for qemu-devel@nongnu.org; Fri, 23 Sep 2016 00:01:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnHfy-0001tP-R5 for qemu-devel@nongnu.org; Fri, 23 Sep 2016 00:01:27 -0400 Date: Fri, 23 Sep 2016 12:01:17 +0800 From: Fam Zheng Message-ID: <20160923040117.GB8832@lemon> References: <1470662013-19785-1-git-send-email-famz@redhat.com> <1470662013-19785-3-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v7 02/20] qapi: Add lock-mode in blockdev-add options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Kevin Wolf , qemu-block@nongnu.org, Jeff Cody , rjones@redhat.com, Markus Armbruster , stefanha@redhat.com, pbonzini@redhat.com, den@openvz.org, Max Reitz , John Snow On Thu, 09/22 09:58, Eric Blake wrote: > On 08/08/2016 08:13 AM, Fam Zheng wrote: > > To allow overriding the default locking behavior when opening the image. > > > > Signed-off-by: Fam Zheng > > --- > > qapi/block-core.json | 19 ++++++++++++++++++- > > 1 file changed, 18 insertions(+), 1 deletion(-) > > > > diff --git a/qapi/block-core.json b/qapi/block-core.json > > index 5e2d7d7..d1eb197 100644 > > --- a/qapi/block-core.json > > +++ b/qapi/block-core.json > > @@ -2151,6 +2151,20 @@ > > '*debug-level': 'int' } } > > > > ## > > +# @BlockdevLockMode > > +# > > +# Describes how QEMU should lock the image. > > +# > > +# @off: Disabled > > +# @shared: Use shared lock for both RO and RW images. > > +# @auto: Use exclusive lock for RW images, and shared lock for RO images. > > +# > > +# Since: 2.7 > > Just a reminder to update this to 2.8 (probably throughout the series). Good point, thanks! > > > @@ -2185,7 +2201,8 @@ > > '*cache': 'BlockdevCacheOptions', > > '*aio': 'BlockdevAioOptions', > > '*read-only': 'bool', > > - '*detect-zeroes': 'BlockdevDetectZeroesOptions' }, > > + '*detect-zeroes': 'BlockdevDetectZeroesOptions', > > + '*lock-mode': 'BlockdevLockMode' }, > > 'discriminator': 'driver', > > 'data': { > > 'archipelago':'BlockdevOptionsArchipelago', > > > > Will this need (yet another) rebase on top of Kevin's blockdev-add work? Yes, I think so.. Fam