diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2017-01-16 17:18:09 +0100 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2017-02-28 20:40:37 +0100 |
| commit | c6cc12bfa7bb9c61f4fa20491258b9bebc5b4771 (patch) | |
| tree | 2e97207afd770a9ad87d9c7a6bb1a4109a872750 /block/commit.c | |
| parent | dabd18f64c8800d441fd9fb232c2102e8409aa2e (diff) | |
| download | focaccia-qemu-c6cc12bfa7bb9c61f4fa20491258b9bebc5b4771.tar.gz focaccia-qemu-c6cc12bfa7bb9c61f4fa20491258b9bebc5b4771.zip | |
blockjob: Add permissions to block_job_create()
This functions creates a BlockBackend internally, so the block jobs need to tell it what they want to do with the BB. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Acked-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'block/commit.c')
| -rw-r--r-- | block/commit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/block/commit.c b/block/commit.c index 2ad8138aac..60d29a9c0f 100644 --- a/block/commit.c +++ b/block/commit.c @@ -235,8 +235,9 @@ void commit_start(const char *job_id, BlockDriverState *bs, return; } - s = block_job_create(job_id, &commit_job_driver, bs, speed, - BLOCK_JOB_DEFAULT, NULL, NULL, errp); + /* FIXME Use real permissions */ + s = block_job_create(job_id, &commit_job_driver, bs, 0, BLK_PERM_ALL, + speed, BLOCK_JOB_DEFAULT, NULL, NULL, errp); if (!s) { return; } |