Skip to content

block: Make more blockdev-add options work

Kevin Wolf qemu-devel 2 versions – Applied

Status from this message: Applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 9 repliesApplied
  2. v17 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Patch 3 ('block/qapi: Move 'aio' option to file driver') Use qapi_enum_parse() instead of parsing manually [Eric]

- 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]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7block: Drop aio/cache consistency check from qmp_blockdev_add()blockdev.c tests/qemu-iotests/087.out+1 -160 replies
2/7block/qapi: Use separate options type for curl driverqapi/block-core.json+18 -70 replies
3/7block/qapi: Move 'aio' option to file driverblock/raw-posix.c block/raw-win32.c qapi/block-core.json +1 more+83 -275 replies
4/7block: Parse 'detect-zeroes' in bdrv_open_common()block.c blockdev.c+34 -81 reply
5/7block: Use 'detect-zeroes' option for 'blockdev-change-medium'block/block-backend.c blockdev.c include/sysemu/block-backend.h+11 -90 replies
6/7block: Move 'discard' option to bdrv_open_common()block.c blockdev.c include/block/block.h+17 -260 replies
7/7block: Remove qemu_root_bds_optsblockdev.c+1 -530 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric BlakeMax Reitz
SeriesR-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/7] block: Make more blockdev-add options work

This series moves a few more options from flags to the appropriate place. This doesn't only result in cleaner code, but also allows using these options in nested node definitions.

After this series, bds_tree_init() is only a thin wrapper around bdrv_open() which sets the right defaults for cache modes and the BDRV_O_INACTIVE flag if necessary.

Depends on my block branch, specifically Berto's 'read-only' patches.

v2:
- Patch 3 ('block/qapi: Move 'aio' option to file driver') Use qapi_enum_parse() instead of parsing manually [Eric]

- 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]

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

 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(-)
Signature · 1 line
1.8.3.1