Skip to content

Allow changing bs->file on reopen

Vladimir Sementsov-Ogievskiy qemu-devel 2 versions – Applied

Status from this message: Thanks, applied with the dependencies to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest9 patches 1 replyApplied
  2. v59 patches 1 replySuperseded

v5 from the cover letter

1-7: new
8: changed a lot
9: unchanged

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/9block: introduce bdrv_remove_file_or_backing_child()block.c+17 -70 replies
2/9block: introduce bdrv_set_file_or_backing_noperm()block.c+63 -200 replies
3/9block: bdrv_reopen_parse_backing(): don't check aio contextblock.c+0 -330 replies
4/9block: bdrv_reopen_parse_backing(): don't check frozen childblock.c tests/qemu-iotests/245+5 -170 replies
5/9block: bdrv_reopen_parse_backing(): simplify handling implicit filtersblock.c+16 -370 replies
6/9block: move supports_backing check to bdrv_set_file_or_backing_noperm()block.c tests/unit/test-bdrv-drain.c tests/unit/test-bdrv-graph-mod.c+17 -140 replies
7/9block: BDRVReopenState: drop replace_backing_bs fieldblock.c include/block/block.h+4 -70 replies
8/9block: Allow changing bs->file on reopenblock.c include/block/block.h tests/qemu-iotests/245+67 -350 replies
9/9iotests: Test replacing files with x-blockdev-reopentests/qemu-iotests/245 tests/qemu-iotests/245.out+117 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/9] Allow changing bs->file on reopen

Note that this is only "subject" part of original Alberto's "[PATCH v4 0/6] Allow changing bs->file on reopen" which also included multiple reopen and dropping x- prefix of reopen together with some refactoring.

v6: rebased
08: changed error message in test
09: somehow, now '.' are spread in test output

Now, v6 based on two first simple patches of
"[PATCH v5 00/35] block: publish backup-top filter"
Based-on: <[email protected]>

So, if this goes first, just take first two patches of "[PATCH v5 00/35] block: publish backup-top filter" which are already reviewed by Max.

v5:
1-7: new
8: changed a lot
9: unchanged

Alberto Garcia (2):
block: Allow changing bs->file on reopen
iotests: Test replacing files with x-blockdev-reopen

Vladimir Sementsov-Ogievskiy (7):
block: introduce bdrv_remove_file_or_backing_child()
block: introduce bdrv_set_file_or_backing_noperm()
block: bdrv_reopen_parse_backing(): don't check aio context
block: bdrv_reopen_parse_backing(): don't check frozen child
block: bdrv_reopen_parse_backing(): simplify handling implicit filters
block: move supports_backing check to
bdrv_set_file_or_backing_noperm()
block: BDRVReopenState: drop replace_backing_bs field

 include/block/block.h            |   2 +-
 block.c                          | 286 ++++++++++++++++---------------
 tests/unit/test-bdrv-drain.c     |   1 +
 tests/unit/test-bdrv-graph-mod.c |   1 +
 tests/qemu-iotests/245           | 140 +++++++++++++--
 tests/qemu-iotests/245.out       |  11 +-
 6 files changed, 287 insertions(+), 154 deletions(-)
Signature · 1 line
2.29.2