Skip to content

bdrv_open() cleanups, part 1

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 Latest9 patches 10 repliesApplied
  2. v19 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Rebased on current git master
- Patch 1: Removed redundant if condition [Benoît] Replaced redundant error check with assertion [Eric]
- Patch 2: Fixed leak in error path [Benoît]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9block: Create bdrv_fill_options()block.c+69 -431 reply
2/9block: Move bdrv_fill_options() call to bdrv_open()block.c+15 -101 reply
3/9block: Move json: parsing to bdrv_fill_options()block.c+45 -430 replies
4/9block: Always pass driver name through options QDictblock.c tests/qemu-iotests/051 tests/qemu-iotests/051.out+45 -370 replies
5/9block: Use common driver selection code for bdrv_open_file()block.c+30 -370 replies
6/9block: Inline bdrv_file_open()block.c+11 -401 reply
7/9block: Remove second bdrv_open() recursionblock.c+25 -251 reply
8/9block: Catch backing files assigned to non-COW driversblock.c block/cow.c block/qcow.c +6 more+29 -01 reply
9/9block: Remove a special case for protocolsblock.c+2 -161 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchEric BlakeBenoit Canet
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b R-b
6/9R-b R-b
7/9R-b
8/9R-b
9/9R-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/9] bdrv_open() cleanups, part 1

This is the first part of an attempt for disentangling bdrv_open(). At the end of this series, bdrv_open() code is somewhat easier to read, but the real changes (including some bug fixes and changes of behaviour) haven't happened yet.

Just sending out the first part now to get this merged early and avoid conflicts.

v2:
- Rebased on current git master
- Patch 1: Removed redundant if condition [Benoît] Replaced redundant error check with assertion [Eric]
- Patch 2: Fixed leak in error path [Benoît]

Kevin Wolf (9):
block: Create bdrv_fill_options()
block: Move bdrv_fill_options() call to bdrv_open()
block: Move json: parsing to bdrv_fill_options()
block: Always pass driver name through options QDict
block: Use common driver selection code for bdrv_open_file()
block: Inline bdrv_file_open()
block: Remove second bdrv_open() recursion
block: Catch backing files assigned to non-COW drivers
block: Remove a special case for protocols

 block.c                    | 280 ++++++++++++++++++++++-----------------------
 block/cow.c                |   1 +
 block/qcow.c               |   1 +
 block/qcow2.c              |   1 +
 block/qed.c                |   1 +
 block/vmdk.c               |   1 +
 include/block/block_int.h  |   3 +
 tests/qemu-iotests/051     |   6 +
 tests/qemu-iotests/051.out |  14 ++-
 9 files changed, 164 insertions(+), 144 deletions(-)
Signature · 1 line
1.8.3.1