We are on the way to implement internal-backup with fleecing scheme,
which includes backup job copying from fleecing block driver node
(which is target of copy-before-write filter) to final target of
backup. This job doesn't need own filter, as fleecing block driver node
is a kind of snapshot, it's immutable from reader point of view.
Let's add a parameter for backup to not insert filter but instead
unshare writes on source. This way backup job becomes a simple copying
process.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
qapi/block-core.json | 11 ++++++-
include/block/block_int.h | 1 +
block/backup.c | 61 +++++++++++++++++++++++++++++++++++----
block/replication.c | 2 +-
blockdev.c | 1 +
5 files changed, 69 insertions(+), 7 deletions(-)