[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v2 00/11] block: incremental backup transactions
From: |
John Snow |
Subject: |
[Qemu-block] [PATCH v2 00/11] block: incremental backup transactions |
Date: |
Fri, 27 Mar 2015 15:19:54 -0400 |
requires: address@hidden
"[PATCH v4 00/20] block: transactionless incremental backup series"
This series adds support for incremental backup primitives in QMP
transactions. It requires my transactionless incremental backup series,
currently at v4.
Patch 1 adds basic support for add and clear transactions.
Patch 2 tests this basic support.
Patches 3-4 refactor transactions a little bit, to add clarity.
Patch 5 adds the framework for error scenarios where only
some jobs that were launched by a transaction complete successfully,
and we need to perform context-sensitive cleanup after the transaction
itself has already completed.
Patches 6-7 add necessary bookkeeping information to backup job
data structures to take advantage of this new feature.
Patch 8 just moves code.
Patch 9 modifies qmp_drive_backup to support the new feature.
Patch 10 implements the new feature for drive_backup transaction actions.
Patch 11 tests the new feature.
Lingering questions:
- Is it worth it to add a post-transaction completion event to QMP that
signifies all jobs launched by the transaction have completed? This
would be of primary interest to libvirt, in particular, but only as
a convenience feature.
Thank you,
--John Snow
v2:
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/11:[0009] [FC] 'qapi: Add transaction support to block-dirty-bitmap
operations'
002/11:[0036] [FC] 'iotests: add transactional incremental backup test'
003/11:[down] 'blockdev: rename BlkTransactionState and BdrvActionOps'
004/11:[down] 'block: re-add BlkTransactionState'
005/11:[0274] [FC] 'block: add transactional callbacks feature'
006/11:[0004] [FC] 'block: add refcount to Job object'
007/11:[0048] [FC] 'block: add delayed bitmap successor cleanup'
008/11:[down] 'block: move transactions beneath qmp interfaces'
009/11:[0084] [FC] 'qmp: Add an implementation wrapper for qmp_drive_backup'
010/11:[0050] [FC] 'block: drive_backup transaction callback support'
011/11:[0004] [FC] 'iotests: 124 - transactional failure test'
01: Fixed indentation.
Fixed QMP commands to behave with new bitmap_lookup from
transactionless-v4.
2.3 --> 2.4.
02: Folded in improvements to qemu-iotest 124 from transactional-v1.
03: NEW
04: NEW
05: A lot:
Don't delete the comma in the transaction actions config
use g_new0 instead of g_malloc0
Phrasing: "retcode" --> "Return code"
Use GCC attributes to mark functions as unused until future patches.
Added some data structure documentation.
Many structure and function renames, hopefully to improve readability.
Use just one list for all Actions instead of two separate lists.
Remove ActionState from the list upon deletion/decref
And many other small tweaks.
06: Comment phrasing.
07: Removed errp parameter from all functions introduced by this commit.
bdrv_dirty_bitmap_decref --> bdrv_frozen_bitmap_decref
08: NEW
09: _drive_backup --> do_drive_backup()
Forward declarations removed.
10: Rebased on top of drastically modified #05.
Phrasing: "BackupBlockJob" instead of "BackupJob" in comments.
11: Removed extra parameters to wait_incremental() in
test_transaction_failure()
John Snow (11):
qapi: Add transaction support to block-dirty-bitmap operations
iotests: add transactional incremental backup test
block: rename BlkTransactionState and BdrvActionOps
block: re-add BlkTransactionState
block: add transactional callbacks feature
block: add refcount to Job object
block: add delayed bitmap successor cleanup
block: move transactions beneath qmp interfaces
qmp: Add an implementation wrapper for qmp_drive_backup
block: drive_backup transaction callback support
iotests: 124 - transactional failure test
block.c | 65 +-
block/backup.c | 29 +-
blockdev.c | 1599 ++++++++++++++++++++++++++++----------------
blockjob.c | 18 +-
include/block/block.h | 10 +-
include/block/block_int.h | 8 +
include/block/blockjob.h | 21 +
qapi-schema.json | 6 +-
tests/qemu-iotests/124 | 170 +++++
tests/qemu-iotests/124.out | 4 +-
10 files changed, 1313 insertions(+), 617 deletions(-)
--
2.1.0
- [Qemu-block] [PATCH v2 00/11] block: incremental backup transactions,
John Snow <=
- [Qemu-block] [PATCH v2 02/11] iotests: add transactional incremental backup test, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 07/11] block: add delayed bitmap successor cleanup, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 09/11] qmp: Add an implementation wrapper for qmp_drive_backup, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 11/11] iotests: 124 - transactional failure test, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 05/11] block: add transactional callbacks feature, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 10/11] block: drive_backup transaction callback support, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 03/11] block: rename BlkTransactionState and BdrvActionOps, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 04/11] block: re-add BlkTransactionState, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 06/11] block: add refcount to Job object, John Snow, 2015/03/27
- [Qemu-block] [PATCH v2 01/11] qapi: Add transaction support to block-dirty-bitmap operations, John Snow, 2015/03/27