Received: from eggs.gnu.org ([2001:4830:134:3::10]:44449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boZQq-0006O1-LJ for qemu-devel@nongnu.org; Mon, 26 Sep 2016 13:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boZQo-00059C-Bz for qemu-devel@nongnu.org; Mon, 26 Sep 2016 13:11:07 -0400 References: <1474641161-10891-1-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: Date: Mon, 26 Sep 2016 19:10:56 +0200 MIME-Version: 1.0 In-Reply-To: <1474641161-10891-1-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LUEwc9TAeq7dmBq9bFbtnv2upXo53WL2W" Subject: Re: [Qemu-devel] [PATCH v2 0/7] block: Make more blockdev-add options work 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) --LUEwc9TAeq7dmBq9bFbtnv2upXo53WL2W From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org Message-ID: Subject: Re: [PATCH v2 0/7] block: Make more blockdev-add options work References: <1474641161-10891-1-git-send-email-kwolf@redhat.com> In-Reply-To: <1474641161-10891-1-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 23.09.2016 16:32, Kevin Wolf wrote: > This series moves a few more options from flags to the appropriate plac= e. This > doesn't only result in cleaner code, but also allows using these option= s in > nested node definitions. >=20 > After this series, bds_tree_init() is only a thin wrapper around bdrv_o= pen() > which sets the right defaults for cache modes and the BDRV_O_INACTIVE f= lag if > necessary. >=20 > Depends on my block branch, specifically Berto's 'read-only' patches. >=20 > v2: > - Patch 3 ('block/qapi: Move 'aio' option to file driver') > Use qapi_enum_parse() instead of parsing manually [Eric] >=20 > - Patch 4 ('block: Parse 'detect-zeroes' in bdrv_open_common()') > Fixed typo in commit message [Eric] > Reuse local detect_zeroes variable instead of querying QemuOpts [Eric= ] >=20 > Kevin Wolf (7): > block: Drop aio/cache consistency check from qmp_blockdev_add() > block/qapi: Use separate options type for curl driver > block/qapi: Move 'aio' option to file driver > block: Parse 'detect-zeroes' in bdrv_open_common() > block: Use 'detect-zeroes' option for 'blockdev-change-medium' > block: Move 'discard' option to bdrv_open_common() > block: Remove qemu_root_bds_opts >=20 > block.c | 50 ++++++++++++++++++- > block/block-backend.c | 9 ++-- > block/raw-posix.c | 44 ++++++++++------- > block/raw-win32.c | 56 +++++++++++++++++++-- > blockdev.c | 110 +++------------------------------= -------- > include/block/block.h | 1 + > include/sysemu/block-backend.h | 2 +- > qapi/block-core.json | 31 ++++++++---- > tests/qemu-iotests/087 | 4 +- > tests/qemu-iotests/087.out | 2 +- > 10 files changed, 164 insertions(+), 145 deletions(-) Reviewed-by: Max Reitz It's a bit funny now how blockdev_init() and extract_common_blockdev_options() are actually used by neither blockdev-add nor -blockdev, but only by drive_new() (which happily advertises blockdev_init() to be shared with blockev-add, though). Max --LUEwc9TAeq7dmBq9bFbtnv2upXo53WL2W Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEvBAEBCAAZBQJX6VagEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRD0B9sAYdXPQKNK B/4wyn/HzHaJ839bugXMBgSzEVjPZIYCB2k4zAJTFYhDWyF1TEdyt6o1JyqyijPU WGF0q+9ggsam+6GbT2RZpE0yRiMDYw7L2n+YVWHvNTGFETHV7UpTlo1idcaIu1cN dJnIFcVbGH1BIf5v6y3ZWtxC2C/b3aRUAW2aj4vjgXEF54RCv7HlkTlY8zR0Utmr tjoij6isqWl6OzBFd9zWf8/Qw3Wqqc0hGCBIgR/kJpOHpMpOdDG5qdteFz2KWK9j Q4b5Nt0CIb+AtfDmJOQa5p0kmhyym7LzknfvMg9naw211v9o6TKsVCAIjpTHpJ6i Co6B9RKqNXGt/fvuYXL9jryv =0MPW -----END PGP SIGNATURE----- --LUEwc9TAeq7dmBq9bFbtnv2upXo53WL2W--