Alberto Garcia
7f0317cfc8
blockjob: Add 'job_id' parameter to block_job_create()
...
When a new job is created, the job ID is taken from the device name of
the BDS. This patch adds a new 'job_id' parameter to let the caller
provide one instead.
This patch also verifies that the ID is always unique and well-formed.
This causes problems in a couple of places where no ID is being set,
because the BDS does not have a device name.
In the case of test_block_job_start() (from test-blockjob-txn.c) we
can simply use this new 'job_id' parameter to set the missing ID.
In the case of img_commit() (from qemu-img.c) we still don't have the
API to make commit_active_start() set the job ID, so we solve it by
setting a default value. We'll get rid of this as soon as we extend
the API.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2016-07-13 13:26:02 +02:00
..
2016-07-04 19:43:33 +03:00
2016-06-08 15:19:30 +08:00
2015-12-17 13:37:15 +00:00
2016-02-08 17:29:54 +01:00
2016-07-12 16:20:46 +02:00
2016-03-18 10:29:26 +01:00
2016-07-04 10:46:59 +01:00
2015-07-07 13:13:22 +01:00
2016-07-12 16:19:16 +02:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-04 16:49:34 +03:00
2016-06-07 18:19:24 +03:00
2016-02-23 12:43:05 +00:00
2016-07-12 16:20:46 +02:00
2016-01-07 21:30:16 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:03 +02:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-02-16 14:29:27 +00:00
2015-09-15 15:05:09 +01:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-03-22 22:20:15 +01:00
2015-12-18 12:18:31 +00:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-16 09:50:07 +05:30
2016-02-23 12:43:05 +00:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-02-16 14:29:27 +00:00
2016-07-12 16:19:16 +02:00
2016-06-17 15:57:59 +10:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-17 15:23:51 +01:00
2016-07-13 13:26:02 +02:00
2016-07-06 10:52:04 +02:00
2016-06-07 16:34:45 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-06-07 18:19:24 +03:00
2016-07-04 15:52:36 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-06-13 12:41:17 +01:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-07-04 10:46:59 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00
2016-06-07 18:19:25 +03:00
2016-06-07 18:19:24 +03:00
2016-02-16 14:29:27 +00:00
2016-03-22 22:20:15 +01:00
2016-03-22 22:20:15 +01:00
2016-06-29 16:49:41 +02:00
2016-02-16 14:29:27 +00:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-04 16:49:33 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-16 18:39:03 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 11:25:06 -05:00
2016-06-16 18:39:03 +02:00
2016-06-16 18:39:03 +02:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:04 +02:00
2016-07-06 10:52:04 +02:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:04 +02:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 16:34:45 +01:00
2016-06-07 18:19:24 +03:00
2016-07-06 10:52:04 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-03-22 22:20:17 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-07-12 16:19:16 +02:00
2016-07-12 16:19:16 +02:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:19:18 +01:00
2016-06-20 16:38:13 +02:00
2016-06-20 16:19:18 +01:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:19:18 +01:00
2016-06-07 18:19:24 +03:00
2016-06-07 18:19:24 +03:00
2016-06-20 16:38:13 +02:00