Skip to content

blockjob: correct backup cluster size for backups

John Snow qemu-devel 4 versions – Applied

Status from this message: Thanks, applied to my block branch:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesApplied
  2. v33 patches 5 repliesSuperseded
  3. v23 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches5 repliesSuperseded

Changes in v4 from the cover letter

===

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3block/backup: make backup cluster size configurableblock/backup.c+36 -280 replies
2/3block/backup: avoid copying less than full target clustersblock/backup.c+22 -31 reply
3/3iotests/124: Add cluster_size mismatch testtests/qemu-iotests/124 tests/qemu-iotests/124.out+55 -70 replies

Reviews trailers per patch

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

PatchFam Zheng
1/3R-b
2/3R-b
3/3R-b

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/3] blockjob: correct backup cluster size for backups

Backups sometimes need a non-64KiB transfer cluster size. See patch #2 for the detailed justificaton.

===
v4:
===

02: Polished the error message.

===
v3:
===

01: +R-B
02: Added failure mode for bdrv_get_info, including critical failure for when
we don't have a backing file but couldn't retrieve the cluster_size info.

===
v2:
===

01: Removed "sectors_per_cluster" as a cached property of the Backup Block Job,
In favor of recomputing it with a small function where needed. (I like v1 more. Thoughts?)
02: Expand correction to all backup modes instead of just incremental.
Added credit: Thanks to Fam Z for noticing this problem!
03: Minor phrasing change in a comment.
Added r-b.

________________________________________________________________________________

For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch incremental-granularity-fix
https://github.com/jnsnow/qemu/tree/incremental-granularity-fix

This version is tagged incremental-granularity-fix-v4:
https://github.com/jnsnow/qemu/releases/tag/incremental-granularity-fix-v4

John Snow (3):
block/backup: make backup cluster size configurable block/backup: avoid copying less than full target clusters iotests/124: Add cluster_size mismatch test

 block/backup.c             | 87 ++++++++++++++++++++++++++++++----------------
 tests/qemu-iotests/124     | 58 ++++++++++++++++++++++++++++---
 tests/qemu-iotests/124.out |  4 +--
 3 files changed, 112 insertions(+), 37 deletions(-)
Signature · 1 line
2.4.3