From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auxwG-0007TS-28 for qemu-devel@nongnu.org; Tue, 26 Apr 2016 04:01:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auxwA-00068q-GR for qemu-devel@nongnu.org; Tue, 26 Apr 2016 04:01:43 -0400 Date: Tue, 26 Apr 2016 16:01:34 +0800 From: Fam Zheng Message-ID: <20160426080134.GC834@ad.usersys.redhat.com> References: <1460690887-32751-1-git-send-email-famz@redhat.com> <1460690887-32751-3-git-send-email-famz@redhat.com> <57121896.7080600@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57121896.7080600@openvz.org> Subject: Re: [Qemu-devel] [PATCH for-2.7 v2 02/17] qapi: Add lock-image in blockdev-add options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: qemu-devel@nongnu.org, Kevin Wolf , Max Reitz , Jeff Cody , Markus Armbruster , Eric Blake , John Snow , qemu-block@nongnu.org, berrange@redhat.com, pbonzini@redhat.com On Sat, 04/16 13:48, Denis V. Lunev wrote: > On 04/15/2016 06:27 AM, Fam Zheng wrote: > > To allow overriding the default locking behavior when opening the image. > > > > Signed-off-by: Fam Zheng > > --- > > qapi/block-core.json | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/qapi/block-core.json b/qapi/block-core.json > > index 1d09079..2913f3e 100644 > > --- a/qapi/block-core.json > > +++ b/qapi/block-core.json > > @@ -2065,6 +2065,9 @@ > > # @detect-zeroes: #optional detect and optimize zero writes (Since 2.1) > > # (default: off) > > # > > +# @lock-image: #optional whether to lock the image (default: true) > > +# (Since 2.7) > > +# > > # Remaining options are determined by the block driver. > > # > > # Since: 1.7 > > @@ -2082,7 +2085,8 @@ > > '*stats-account-invalid': 'bool', > > '*stats-account-failed': 'bool', > > '*stats-intervals': ['int'], > > - '*detect-zeroes': 'BlockdevDetectZeroesOptions' }, > > + '*detect-zeroes': 'BlockdevDetectZeroesOptions', > > + '*lock-image': 'bool' }, > > 'discriminator': 'driver', > > 'data': { > > 'archipelago':'BlockdevOptionsArchipelago', > should we touch qmp-command.hx? These fields have no documentation there. Fam