Skip to content

Allow changing bs->file on reopen

Alberto Garcia qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 16 repliesIn review
  2. v36 patches 1 replySuperseded
  3. v2 RFC4 patches 19 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC2 patches9 repliesSuperseded

Changes in v4 from the cover letter

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6block: Add bdrv_reopen_queue_free()block.c include/block/block.h+13 -41 reply
2/6block: Allow changing bs->file on reopenblock.c include/block/block.h tests/qemu-iotests/245+81 -487 replies
3/6iotests: Test replacing files with x-blockdev-reopentests/qemu-iotests/245 tests/qemu-iotests/245.out+117 -31 reply
4/6block: Support multiple reopening with x-blockdev-reopenblockdev.c qapi/block-core.json tests/qemu-iotests/155 +6 more+92 -613 replies
5/6iotests: Test reopening multiple devices at the same timetests/qemu-iotests/245 tests/qemu-iotests/245.out+43 -20 replies
6/6block: Make blockdev-reopen stable APIblockdev.c qapi/block-core.json tests/qemu-iotests/155 +6 more+15 -150 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchVladimir Sementsov-Ogievskiy
1/6R-b
2/6
3/6
4/6
5/6
6/6

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

Read the v4 thread

Cover letter [PATCH v4 0/6] Allow changing bs->file on reopen

Based-on: <[email protected]>

Hello,

this is the same as v3, but rebased on top of Vladimir's "block:
update graph permissions update v3", which you can get here:

git: https://src.openvz.org/scm/~vsementsov/qemu.git
tag: up-block-topologic-perm-v3

Tip: you may find it easier to review patch 4 if you use 'git diff -w' since a big part of the changes that you see in qmp_x_blockdev_reopen() are just indentation changes.

Berto

v4:
- Rebase on top of version 3 of Vladimir's branch
v3: https://lists.gnu.org/archive/html/qemu-block/2021-03/msg00553.html
v2: https://lists.gnu.org/archive/html/qemu-block/2021-02/msg00623.html
v1: https://lists.gnu.org/archive/html/qemu-block/2021-01/msg00437.html

Output of git backport-diff against v3:

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/6:[----] [--] 'block: Add bdrv_reopen_queue_free()' 002/6:[0018] [FC] 'block: Allow changing bs->file on reopen' 003/6:[----] [--] 'iotests: Test replacing files with x-blockdev-reopen' 004/6:[0071] [FC] 'block: Support multiple reopening with x-blockdev-reopen' 005/6:[----] [--] 'iotests: Test reopening multiple devices at the same time' 006/6:[----] [-C] 'block: Make blockdev-reopen stable API'

Alberto Garcia (6):
block: Add bdrv_reopen_queue_free()
block: Allow changing bs->file on reopen
iotests: Test replacing files with x-blockdev-reopen
block: Support multiple reopening with x-blockdev-reopen
iotests: Test reopening multiple devices at the same time
block: Make blockdev-reopen stable API

 qapi/block-core.json       |  24 ++---
 include/block/block.h      |   2 +
 block.c                    | 135 ++++++++++++++++----------
 blockdev.c                 |  78 +++++++++------
 tests/qemu-iotests/155     |   9 +-
 tests/qemu-iotests/165     |   4 +-
 tests/qemu-iotests/245     | 190 +++++++++++++++++++++++++++++++++----
 tests/qemu-iotests/245.out |  11 ++-
 tests/qemu-iotests/248     |   4 +-
 tests/qemu-iotests/248.out |   2 +-
 tests/qemu-iotests/296     |  11 ++-
 tests/qemu-iotests/298     |   4 +-
 12 files changed, 351 insertions(+), 123 deletions(-)
Signature · 1 line
2.20.1