Received: from eggs.gnu.org ([2001:4830:134:3::10]:39633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJNm8-00034B-Fy for qemu-devel@nongnu.org; Sat, 02 Jul 2016 12:28:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJNm6-0003hd-Ef for qemu-devel@nongnu.org; Sat, 02 Jul 2016 12:28:11 -0400 References: <1467296007-12252-1-git-send-email-kwolf@redhat.com> <1467296007-12252-7-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <03cbee92-9305-d709-b1a9-05de42c06648@redhat.com> Date: Sat, 2 Jul 2016 18:28:00 +0200 MIME-Version: 1.0 In-Reply-To: <1467296007-12252-7-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xrM6WRNDiUekvN1psWFbxxnS5kbqpmL0Q" Subject: Re: [Qemu-devel] [PATCH v2 6/6] block: Remove BB options from blockdev-add List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xrM6WRNDiUekvN1psWFbxxnS5kbqpmL0Q From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org Message-ID: <03cbee92-9305-d709-b1a9-05de42c06648@redhat.com> Subject: Re: [PATCH v2 6/6] block: Remove BB options from blockdev-add References: <1467296007-12252-1-git-send-email-kwolf@redhat.com> <1467296007-12252-7-git-send-email-kwolf@redhat.com> In-Reply-To: <1467296007-12252-7-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 30.06.2016 16:13, Kevin Wolf wrote: > werror/rerror are now available as qdev options. The stats-* options ar= e > removed without an existing replacement; they should probably be > configurable with a separate QMP command like I/O throttling settings. I'm not sure I agree with removing the stats-* options without a replacement. If we'd get rid of @id in the process, fine. But we won't get a pure blockdev-add before 2.7 anyway, so I'm not sure removing stats-* now is necessary. Max >=20 > Removing id is left for another day because this involves updating > qemu-iotests cases to use node-name for everything. Before we can do > that, however, all QMP commands must support node-name. >=20 > Signed-off-by: Kevin Wolf > --- > qapi/block-core.json | 18 +----------------- > 1 file changed, 1 insertion(+), 17 deletions(-) >=20 > diff --git a/qapi/block-core.json b/qapi/block-core.json > index 6008986..88b78a7 100644 > --- a/qapi/block-core.json > +++ b/qapi/block-core.json > @@ -2051,20 +2051,8 @@ > # @discard: #optional discard-related options (default: ignore) > # @cache: #optional cache-related options > # @aio: #optional AIO backend (default: threads) > -# @rerror: #optional how to handle read errors on the device > -# (default: report) > -# @werror: #optional how to handle write errors on the device > -# (default: enospc) > # @read-only: #optional whether the block device should be read-on= ly > # (default: false) > -# @stats-account-invalid: #optional whether to include invalid > -# operations when computing last access statis= tics > -# (default: true) (Since 2.5) > -# @stats-account-failed: #optional whether to include failed > -# operations when computing latency and last > -# access statistics (default: true) (Since 2.5= ) > -# @stats-intervals: #optional list of intervals for collecting I/O > -# statistics, in seconds (default: none) (Since 2.5)= > # @detect-zeroes: #optional detect and optimize zero writes (Since 2.1= ) > # (default: off) > # > @@ -2074,17 +2062,13 @@ > ## > { 'union': 'BlockdevOptions', > 'base': { 'driver': 'BlockdevDriver', > +# TODO 'id' is a BB-level option, remove it > '*id': 'str', > '*node-name': 'str', > '*discard': 'BlockdevDiscardOptions', > '*cache': 'BlockdevCacheOptions', > '*aio': 'BlockdevAioOptions', > - '*rerror': 'BlockdevOnError', > - '*werror': 'BlockdevOnError', > '*read-only': 'bool', > - '*stats-account-invalid': 'bool', > - '*stats-account-failed': 'bool', > - '*stats-intervals': ['int'], > '*detect-zeroes': 'BlockdevDetectZeroesOptions' }, > 'discriminator': 'driver', > 'data': { >=20 --xrM6WRNDiUekvN1psWFbxxnS5kbqpmL0Q 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 iQEvBAEBCAAZBQJXd+uREhxtcmVpdHpAcmVkaGF0LmNvbQAKCRA7sUIC6DisrVN+ CACTZJ9IHhziChTc50GrWTSJzbdlZTQR9CIvioryKD16XsqTxf2WE9GVNaJIalYf uspIxaxv3//VqvPC/MtY/UQ3S8YbyCvqKpHTh912qJcdzUItTWOVq/aCEJP7OXqg 7ATtghBTngL4HzSHFZyX+SoidpanWdUFzPpz+FkfZAsJcyl2xecPLZXj/7MhUMML z4T2+iPb6x1N3SAg5NWLcUK27fdgxY+oYJvpgCHfHW4KUPOA9wnPtiQEwoxDku8B gbg2wRqK81wkDlKKQ3PN0dIzWMEvc3llqk8nqjcrFJyOGmyzizUabpkitHE56HtS iSPhxc+zDk4w2oYrTWgynIpr =ii3k -----END PGP SIGNATURE----- --xrM6WRNDiUekvN1psWFbxxnS5kbqpmL0Q--