Skip to content

vmdk: Misc fixes

Max Reitz qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 2 repliesIn review
  2. v17 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Patch 2: Don’t treat extent filenames with protocol prefixes as absolute filenames – this may be the right thing to do, but:
(1) path_combine() doesn’t (it just ignores whether the supposed relative filename has a potential protocol prefix), so this is how we handled it so far,
(2) It would break other cases (when a filename contains a colon for no particular reason), as seen in iotest 126.
That means you cannot have an extent file e.g. on an http server while the descriptor is on a local filesystem, but I hope nobody would ever want to do that.

- Patch 3: Fix paste-o [John]

- Patch 7: twoGbMaxExtentSparse works now with the change to patch 2, so we no longer have to mark it unsupported [Thanks for the insistent inquiry, John :-)]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7iotests: Fix _filter_img_create()tests/qemu-iotests/059.out tests/qemu-iotests/common.filter+10 -100 replies
2/7vmdk: Use bdrv_dirname() for relative extent pathsblock/vmdk.c tests/qemu-iotests/059 tests/qemu-iotests/059.out+42 -230 replies
3/7iotests: Keep testing broken relative extent pathstests/qemu-iotests/059 tests/qemu-iotests/059.out+31 -00 replies
4/7vmdk: Reject invalid compressed writesblock/vmdk.c+10 -00 replies
5/7iotests: Disable broken streamOptimized teststests/qemu-iotests/002 tests/qemu-iotests/003 tests/qemu-iotests/005 +18 more+30 -90 replies
6/7iotests: Disable 110 for vmdk.twoGbMaxExtentSparsetests/qemu-iotests/110+2 -10 replies
7/7iotests: Disable 126 for flat vmdk subformatstests/qemu-iotests/126+2 -00 replies

Reviews trailers per patch

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

PatchJohn Snow
SeriesR-b
1/7R-b
2/7
3/7R-b
4/7R-b
5/7
6/7R-b
7/7

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] vmdk: Misc fixes

I made the mistake of trying to run the iotests with all non-default subformats our vmdk driver has to offer:
- monolithicFlat
- twoGbMaxExtentSparse
- twoGbMaxExtentFlat
- streamOptimized

Many things broke, so this series fixes what I found. It’s mostly just iotest fixes, but there are actually two real fixes in here.

v2:
- Patch 2: Don’t treat extent filenames with protocol prefixes as absolute filenames – this may be the right thing to do, but:
(1) path_combine() doesn’t (it just ignores whether the supposed relative filename has a potential protocol prefix), so this is how we handled it so far,
(2) It would break other cases (when a filename contains a colon for no particular reason), as seen in iotest 126.
That means you cannot have an extent file e.g. on an http server while the descriptor is on a local filesystem, but I hope nobody would ever want to do that.

- Patch 3: Fix paste-o [John]

- Patch 7: twoGbMaxExtentSparse works now with the change to patch 2, so we no longer have to mark it unsupported [Thanks for the insistent inquiry, John :-)]

git-backport-diff against v1:

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/7:[----] [--] 'iotests: Fix _filter_img_create()' 002/7:[0002] [FC] 'vmdk: Use bdrv_dirname() for relative extent paths' 003/7:[0002] [FC] 'iotests: Keep testing broken relative extent paths' 004/7:[----] [--] 'vmdk: Reject invalid compressed writes' 005/7:[----] [--] 'iotests: Disable broken streamOptimized tests' 006/7:[----] [--] 'iotests: Disable 110 for vmdk.twoGbMaxExtentSparse' 007/7:[0006] [FC] 'iotests: Disable 126 for some vmdk subformats'

Max Reitz (7):
iotests: Fix _filter_img_create()
vmdk: Use bdrv_dirname() for relative extent paths
iotests: Keep testing broken relative extent paths
vmdk: Reject invalid compressed writes
iotests: Disable broken streamOptimized tests
iotests: Disable 110 for vmdk.twoGbMaxExtentSparse
iotests: Disable 126 for flat vmdk subformats

 block/vmdk.c                     | 64 ++++++++++++++++++++++----------
 tests/qemu-iotests/002           |  1 +
 tests/qemu-iotests/003           |  1 +
 tests/qemu-iotests/005           |  3 +-
 tests/qemu-iotests/009           |  1 +
 tests/qemu-iotests/010           |  1 +
 tests/qemu-iotests/011           |  1 +
 tests/qemu-iotests/017           |  3 +-
 tests/qemu-iotests/018           |  3 +-
 tests/qemu-iotests/019           |  3 +-
 tests/qemu-iotests/020           |  3 +-
 tests/qemu-iotests/027           |  1 +
 tests/qemu-iotests/032           |  1 +
 tests/qemu-iotests/033           |  1 +
 tests/qemu-iotests/034           |  3 +-
 tests/qemu-iotests/037           |  3 +-
 tests/qemu-iotests/059           | 34 ++++++++++++++++-
 tests/qemu-iotests/059.out       | 24 +++++++-----
 tests/qemu-iotests/063           |  3 +-
 tests/qemu-iotests/072           |  1 +
 tests/qemu-iotests/105           |  3 +-
 tests/qemu-iotests/110           |  3 +-
 tests/qemu-iotests/126           |  2 +
 tests/qemu-iotests/197           |  1 +
 tests/qemu-iotests/215           |  1 +
 tests/qemu-iotests/251           |  1 +
 tests/qemu-iotests/common.filter |  4 +-
 27 files changed, 127 insertions(+), 43 deletions(-)
Signature · 1 line
2.21.0