blockjob: correct backup cluster size for backups
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
- v4 Latest3 patches 2 repliesApplied
- v33 patches 5 repliesSuperseded
- v23 patches 5 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 5 replies | Superseded |
Changes in v4 from the cover letter
===
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | block/backup: make backup cluster size configurableblock/ | +36 | 0 replies | |
| 2/3 | block/backup: avoid copying less than full target clustersblock/ | +22 | 1 reply | |
| 3/3 | iotests/124: Add cluster_size mismatch testtests/ tests/ | +55 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Fam Zheng |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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