aboutsummaryrefslogtreecommitdiff
path: root/block/stream.c
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2018-09-06 09:02:12 -0400
committerMax Reitz <mreitz@redhat.com>2018-09-25 15:31:15 +0200
commitcf6320df581e6cbde6a95075266859a8f9ba9d55 (patch)
treeed1dd719a48ca2268d0a1c037f6667709f9de843 /block/stream.c
parenta1999b33488daba68a1bcd7c6fdf314ddeacc6a2 (diff)
downloadqemu-cf6320df581e6cbde6a95075266859a8f9ba9d55.zip
qemu-cf6320df581e6cbde6a95075266859a8f9ba9d55.tar.gz
qemu-cf6320df581e6cbde6a95075266859a8f9ba9d55.tar.bz2
block/stream: add block job creation flags
Add support for taking and passing forward job creation flags. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: 20180906130225.5118-4-jsnow@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/stream.c')
-rw-r--r--block/stream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/block/stream.c b/block/stream.c
index 67e1e72..700eb23 100644
--- a/block/stream.c
+++ b/block/stream.c
@@ -214,7 +214,8 @@ static const BlockJobDriver stream_job_driver = {
void stream_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *base, const char *backing_file_str,
- int64_t speed, BlockdevOnError on_error, Error **errp)
+ int creation_flags, int64_t speed,
+ BlockdevOnError on_error, Error **errp)
{
StreamBlockJob *s;
BlockDriverState *iter;
@@ -236,7 +237,7 @@ void stream_start(const char *job_id, BlockDriverState *bs,
BLK_PERM_GRAPH_MOD,
BLK_PERM_CONSISTENT_READ | BLK_PERM_WRITE_UNCHANGED |
BLK_PERM_WRITE,
- speed, JOB_DEFAULT, NULL, NULL, errp);
+ speed, creation_flags, NULL, NULL, errp);
if (!s) {
goto fail;
}