diff options
author | John Snow <jsnow@redhat.com> | 2018-09-06 09:02:23 -0400 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-09-25 15:31:15 +0200 |
commit | 241ca1ab78542f02e666636e0323bcfe3cb1d5e8 (patch) | |
tree | e67302bedf4e51edfd4ce3fc43bd337c529d6423 /blockdev.c | |
parent | a6b58adec28ff43c0f29ff7c95cdd5d11e87cf61 (diff) | |
download | qemu-241ca1ab78542f02e666636e0323bcfe3cb1d5e8.zip qemu-241ca1ab78542f02e666636e0323bcfe3cb1d5e8.tar.gz qemu-241ca1ab78542f02e666636e0323bcfe3cb1d5e8.tar.bz2 |
qapi/block-stream: expose new job properties
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 20180906130225.5118-15-jsnow@redhat.com
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -3116,6 +3116,8 @@ void qmp_block_stream(bool has_job_id, const char *job_id, const char *device, bool has_backing_file, const char *backing_file, bool has_speed, int64_t speed, bool has_on_error, BlockdevOnError on_error, + bool has_auto_finalize, bool auto_finalize, + bool has_auto_dismiss, bool auto_dismiss, Error **errp) { BlockDriverState *bs, *iter; @@ -3185,6 +3187,13 @@ void qmp_block_stream(bool has_job_id, const char *job_id, const char *device, /* backing_file string overrides base bs filename */ base_name = has_backing_file ? backing_file : base_name; + if (has_auto_finalize && !auto_finalize) { + job_flags |= JOB_MANUAL_FINALIZE; + } + if (has_auto_dismiss && !auto_dismiss) { + job_flags |= JOB_MANUAL_DISMISS; + } + stream_start(has_job_id ? job_id : NULL, bs, base_bs, base_name, job_flags, has_speed ? speed : 0, on_error, &local_err); if (local_err) { |