aboutsummaryrefslogtreecommitdiff
path: root/block/stream.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2020-07-06 15:39:53 -0500
committerKevin Wolf <kwolf@redhat.com>2020-07-14 15:18:59 +0200
commite54ee1b385a9d084b4052b6db7391ea2fd799fa8 (patch)
treed6e366c994426adc6f217faac79b22c3dde30507 /block/stream.c
parentb66ff2c29817f5efa18f5120fd6f089fbf59a933 (diff)
downloadqemu-e54ee1b385a9d084b4052b6db7391ea2fd799fa8.zip
qemu-e54ee1b385a9d084b4052b6db7391ea2fd799fa8.tar.gz
qemu-e54ee1b385a9d084b4052b6db7391ea2fd799fa8.tar.bz2
block: Add support to warn on backing file change without format
For now, this is a mechanical addition; all callers pass false. But the next patch will use it to improve 'qemu-img rebase -u' when selecting a backing file with no format. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Message-Id: <20200706203954.341758-10-eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/stream.c')
-rw-r--r--block/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/stream.c b/block/stream.c
index aa2e7af..310ccba 100644
--- a/block/stream.c
+++ b/block/stream.c
@@ -78,7 +78,7 @@ static int stream_prepare(Job *job)
}
}
bdrv_set_backing_hd(bs, base, &local_err);
- ret = bdrv_change_backing_file(bs, base_id, base_fmt);
+ ret = bdrv_change_backing_file(bs, base_id, base_fmt, false);
if (local_err) {
error_report_err(local_err);
return -EPERM;