[PATCH 0/3] backup: discard-source parameter

Vladimir Sementsov-Ogievskiy posted 3 patches 3 years, 10 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220331195701.220690-1-vsementsov@openvz.org
Maintainers: John Snow <jsnow@redhat.com>, Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Wen Congyang <wencongyang2@huawei.com>, Xie Changlong <xiechanglong.d@gmail.com>, Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>
There is a newer version of this series
block/backup.c                                |   5 +-
block/block-copy.c                            |  13 +-
block/copy-before-write.c                     |   4 +-
block/replication.c                           |   4 +-
blockdev.c                                    |   2 +-
include/block/block-copy.h                    |   3 +-
include/block/block_int-global-state.h        |   2 +-
qapi/block-core.json                          |   4 +
tests/qemu-iotests/257.out                    | 112 ++++++-------
.../qemu-iotests/tests/backup-discard-source  | 154 ++++++++++++++++++
.../tests/backup-discard-source.out           |   5 +
11 files changed, 240 insertions(+), 68 deletions(-)
create mode 100755 tests/qemu-iotests/tests/backup-discard-source
create mode 100644 tests/qemu-iotests/tests/backup-discard-source.out
[PATCH 0/3] backup: discard-source parameter
Posted by Vladimir Sementsov-Ogievskiy 3 years, 10 months ago
Hi all!

Here is a new option for backup, that brings two things into
push-backup-with-fleecing scheme:

 - discard copied region in temporary image to save disk space
 - avoid extra copy-before-write operation in the region that is already
   copied

This is based on
"[PATCH v5 00/45] Transactional block-graph modifying API"
Based-on: <20220330212902.590099-1-vsementsov@openvz.org>

Vladimir Sementsov-Ogievskiy (3):
  block/copy-before-write: create block_copy bitmap in filter node
  qapi: blockdev-backup: add discard-source parameter
  iotests: add backup-discard-source

 block/backup.c                                |   5 +-
 block/block-copy.c                            |  13 +-
 block/copy-before-write.c                     |   4 +-
 block/replication.c                           |   4 +-
 blockdev.c                                    |   2 +-
 include/block/block-copy.h                    |   3 +-
 include/block/block_int-global-state.h        |   2 +-
 qapi/block-core.json                          |   4 +
 tests/qemu-iotests/257.out                    | 112 ++++++-------
 .../qemu-iotests/tests/backup-discard-source  | 154 ++++++++++++++++++
 .../tests/backup-discard-source.out           |   5 +
 11 files changed, 240 insertions(+), 68 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/backup-discard-source
 create mode 100644 tests/qemu-iotests/tests/backup-discard-source.out

-- 
2.35.1