diff options
| author | Alberto Garcia | 2016-07-05 16:28:59 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-07-13 13:26:02 +0200 |
| commit | 2323322ed060749b52864836f6fcb1a906baf95d (patch) | |
| tree | b3aef48741124824392940ecd611e585a5398349 /include/block | |
| parent | backup: Add 'job-id' parameter to 'blockdev-backup' and 'drive-backup' (diff) | |
| download | qemu-2323322ed060749b52864836f6fcb1a906baf95d.tar.gz qemu-2323322ed060749b52864836f6fcb1a906baf95d.tar.xz qemu-2323322ed060749b52864836f6fcb1a906baf95d.zip | |
stream: Add 'job-id' parameter to 'block-stream'
This patch adds a new optional 'job-id' parameter to 'block-stream',
allowing the user to specify the ID of the block job to be created.
The HMP 'block_stream' command remains unchanged.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
| -rw-r--r-- | include/block/block_int.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index a0b9f926b5..db364bb4c9 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -639,6 +639,8 @@ int is_windows_drive(const char *filename); /** * stream_start: + * @job_id: The id of the newly-created job, or %NULL to use the + * device name of @bs. * @bs: Block device to operate on. * @base: Block device that will become the new base, or %NULL to * flatten the whole backing file chain onto @bs. @@ -657,10 +659,10 @@ int is_windows_drive(const char *filename); * @backing_file_str in the written image and to @base in the live * BlockDriverState. */ -void stream_start(BlockDriverState *bs, BlockDriverState *base, - const char *backing_file_str, int64_t speed, - BlockdevOnError on_error, BlockCompletionFunc *cb, - void *opaque, Error **errp); +void stream_start(const char *job_id, BlockDriverState *bs, + BlockDriverState *base, const char *backing_file_str, + int64_t speed, BlockdevOnError on_error, + BlockCompletionFunc *cb, void *opaque, Error **errp); /** * commit_start: |
