Received: from eggs.gnu.org ([2001:4830:134:3::10]:47674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bn5St-0007Sd-9T for qemu-devel@nongnu.org; Thu, 22 Sep 2016 10:59:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bn5Sp-0001bR-EP for qemu-devel@nongnu.org; Thu, 22 Sep 2016 10:59:07 -0400 References: <1470662013-19785-1-git-send-email-famz@redhat.com> <1470662013-19785-3-git-send-email-famz@redhat.com> From: Eric Blake Message-ID: Date: Thu, 22 Sep 2016 09:58:53 -0500 MIME-Version: 1.0 In-Reply-To: <1470662013-19785-3-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IU6WGrOUtkdACrJtWAnPjChHf2cJJw5DK" 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: Fam Zheng , qemu-devel@nongnu.org Cc: 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --IU6WGrOUtkdACrJtWAnPjChHf2cJJw5DK From: Eric Blake To: Fam Zheng , qemu-devel@nongnu.org Cc: 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 Message-ID: Subject: Re: [Qemu-devel] [PATCH v7 02/20] qapi: Add lock-mode in blockdev-add options References: <1470662013-19785-1-git-send-email-famz@redhat.com> <1470662013-19785-3-git-send-email-famz@redhat.com> In-Reply-To: <1470662013-19785-3-git-send-email-famz@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/08/2016 08:13 AM, Fam Zheng wrote: > To allow overriding the default locking behavior when opening the image= =2E >=20 > Signed-off-by: Fam Zheng > --- > qapi/block-core.json | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) >=20 > 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' } } > =20 > ## > +# @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). > @@ -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', >=20 Will this need (yet another) rebase on top of Kevin's blockdev-add work? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --IU6WGrOUtkdACrJtWAnPjChHf2cJJw5DK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX4/GtAAoJEKeha0olJ0NqPTkH/jXNZP6ur2DHEQKChc73OP5G 1b0QsblXZxmbUm1+0149MZkeZVZh5vhITqiJZ7JNQ6q37wx2Shhec+wE725TW82T tYWnUjOysZH3Zhgc63tehvOIxodLORCxTQbmpZm7STUxLHzzfmgMRCWI1v4lG5A2 t9sV5ltnqyyt2ye+WX0zrC3r5Xikwfs5bu5zbeE8akKBhDBk5pTdWNutES3O4kDN d/la/F8zNn7tauYEgt19PKAtX0qMS9ec83l/VPiL+Hw/2gnZHlBLOXD9P0AfPvcd ECjFAXKPGEoTD5GQ5p5oD1/G9+umEfv/hRdusyqj81DOpl/yy6MBqIc6o387b3w= =c5Ww -----END PGP SIGNATURE----- --IU6WGrOUtkdACrJtWAnPjChHf2cJJw5DK--