aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-01-16 18:23:41 +0100
committerKevin Wolf <kwolf@redhat.com>2015-12-18 14:34:42 +0100
commitd9b7b05703399fbc9b87553d7f164ffba1db4aa4 (patch)
treeae6403a15d51975e87289f0e6c24cbe4cac90f1a /block
parent40365552c2fceacc9800ec9a87b9ead516a9a6ce (diff)
block: Allow references for backing files
For bs->file, using references to existing BDSes has been possible for a while already. This patch enables the same for bs->backing. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/mirror.c b/block/mirror.c
index 8e3f5243f4..fc34a9c491 100644
--- a/block/mirror.c
+++ b/block/mirror.c
@@ -652,7 +652,7 @@ static void mirror_complete(BlockJob *job, Error **errp)
Error *local_err = NULL;
int ret;
- ret = bdrv_open_backing_file(s->target, NULL, &local_err);
+ ret = bdrv_open_backing_file(s->target, NULL, "backing", &local_err);
if (ret < 0) {
error_propagate(errp, local_err);
return;