diff options
| author | Fam Zheng | 2017-05-02 18:35:53 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2017-05-11 11:15:32 +0200 |
| commit | fc0932fdcfc3e5cafa3641e361b681c07f639812 (patch) | |
| tree | 8ac8a503750e097b472915e499ae6318500a7ccf /include | |
| parent | tests: Disable image lock in test-replication (diff) | |
| download | qemu-fc0932fdcfc3e5cafa3641e361b681c07f639812.tar.gz qemu-fc0932fdcfc3e5cafa3641e361b681c07f639812.tar.xz qemu-fc0932fdcfc3e5cafa3641e361b681c07f639812.zip | |
block: Reuse bs as backing hd for drive-backup sync=none
Opening the backing image for the second time is bad, especially here
when it is also in use as the active image as the source. The
drive-backup job itself doesn't read from target->backing for COW,
instead it gets data from the write notifier, so it's not a big problem.
However, exporting the target to NBD etc. won't work, because of the
likely stale metadata cache.
Use BDRV_O_NO_BACKING in this case and manually set up the backing
BdrvChild.
Cc: qemu-stable@nongnu.org
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
