Skip to content

block: add differential backup support

John Snow qemu-devel 1 version Applied

Status from this message: Thanks, applied this single patch to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9qapi: Rename 'dirty-bitmap' mode to 'incremental'block/backup.c block/mirror.c docs/bitmaps.md +4 more+24 -242 replies
2/9hbitmap: add hbitmap_copyinclude/qemu/hbitmap.h util/hbitmap.c+26 -01 reply
3/9block: add bdrv_copy_dirty_bitmapblock.c include/block/block.h+30 -01 reply
4/9qapi: add Copy data type for bitmapsqapi/block-core.json+14 -01 reply
5/9qmp: add qmp cmd block-dirty-bitmap-copyblockdev.c qapi/block-core.json qmp-commands.hx+68 -01 reply
6/9qmp: add block-dirty-bitmap-copy transactionblockdev.c qapi-schema.json+42 -10 replies
7/9block: add differential backup modeblock.c block/backup.c block/mirror.c +2 more+30 -120 replies
8/9iotests: 124: support differential backupstests/qemu-iotests/124+43 -260 replies
9/9iotests: add differential backup testtests/qemu-iotests/124 tests/qemu-iotests/124.out+12 -60 replies

Reviews trailers per patch

5 of 9 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9
7/9
8/9
9/9

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/9] block: add differential backup support

Requires: [email protected]
[0/10] block: incremental backup transactions

It's entirely possible to use the incremental backup primitives to achieve a differential backup mechanism, but in the interest of ease of use, I am proposing the explicit addition of the mechanism because it does not particularly complicate the code, add new edge cases, or present itself as difficult to test.

This series actually adds two ease of use features:

(1) Add a copy primitive for bitmaps to add flexibility to the backup system in case users would like to later run multiple backup chains (weekly vs. monthly or perhaps incremental vs. differential)

(2) Add a 'differential' backup mode that does what the name says on the tin.

==
For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch differential-backup
https://github.com/jnsnow/qemu/tree/differential-backup

This version is tagged differential-backup-v1:
https://github.com/jnsnow/qemu/releases/tag/differential-backup-v1
==

John Snow (9):
qapi: Rename 'dirty-bitmap' mode to 'incremental'
hbitmap: add hbitmap_copy
block: add bdrv_copy_dirty_bitmap
qapi: add Copy data type for bitmaps
qmp: add qmp cmd block-dirty-bitmap-copy
qmp: add block-dirty-bitmap-copy transaction
block: add differential backup mode
iotests: 124: support differential backups
iotests: add differential backup test

 block.c                    | 35 +++++++++++++++++-
 block/backup.c             | 19 ++++++----
 block/mirror.c             |  9 ++++-
 blockdev.c                 | 61 +++++++++++++++++++++++++++++++
 docs/bitmaps.md            |  8 ++--
 include/block/block.h      |  5 +++
 include/block/block_int.h  |  2 +-
 include/qemu/hbitmap.h     |  9 +++++
 qapi-schema.json           |  4 +-
 qapi/block-core.json       | 40 ++++++++++++++++++--
 qmp-commands.hx            | 36 ++++++++++++++++--
 tests/qemu-iotests/124     | 91 +++++++++++++++++++++++++++++-----------------
 tests/qemu-iotests/124.out |  4 +-
 util/hbitmap.c             | 17 +++++++++
 14 files changed, 280 insertions(+), 60 deletions(-)
Signature · 1 line
2.1.0