ae23c9
From 3ae077b6e0f0fa7d2875929ee602eef655d67181 Mon Sep 17 00:00:00 2001
ae23c9
From: Kevin Wolf <kwolf@redhat.com>
ae23c9
Date: Tue, 26 Jun 2018 09:48:31 +0200
ae23c9
Subject: [PATCH 123/268] job: Add JOB_STATUS_CHANGE QMP event
ae23c9
ae23c9
RH-Author: Kevin Wolf <kwolf@redhat.com>
ae23c9
Message-id: <20180626094856.6924-49-kwolf@redhat.com>
ae23c9
Patchwork-id: 81121
ae23c9
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH v2 48/73] job: Add JOB_STATUS_CHANGE QMP event
ae23c9
Bugzilla: 1513543
ae23c9
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
ae23c9
RH-Acked-by: Max Reitz <mreitz@redhat.com>
ae23c9
RH-Acked-by: Fam Zheng <famz@redhat.com>
ae23c9
ae23c9
This adds a QMP event that is emitted whenever a job transitions from
ae23c9
one status to another.
ae23c9
ae23c9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ae23c9
Reviewed-by: Eric Blake <eblake@redhat.com>
ae23c9
(cherry picked from commit 1dac83f1a10c4c66858075970e199f4e4a8d8b71)
ae23c9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ae23c9
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
---
ae23c9
 job.c                         |  10 +++
ae23c9
 qapi/job.json                 |  14 ++++
ae23c9
 tests/qemu-iotests/030        |  17 +++-
ae23c9
 tests/qemu-iotests/040        |   2 +
ae23c9
 tests/qemu-iotests/041        |  17 +++-
ae23c9
 tests/qemu-iotests/094.out    |   7 ++
ae23c9
 tests/qemu-iotests/095        |   2 +-
ae23c9
 tests/qemu-iotests/095.out    |   6 ++
ae23c9
 tests/qemu-iotests/109        |   2 +-
ae23c9
 tests/qemu-iotests/109.out    | 178 ++++++++++++++++++++++++++++++++++++------
ae23c9
 tests/qemu-iotests/124        |   8 ++
ae23c9
 tests/qemu-iotests/127.out    |   7 ++
ae23c9
 tests/qemu-iotests/141        |  13 ++-
ae23c9
 tests/qemu-iotests/141.out    |  29 +++++++
ae23c9
 tests/qemu-iotests/144        |   2 +-
ae23c9
 tests/qemu-iotests/144.out    |   7 ++
ae23c9
 tests/qemu-iotests/156        |   2 +-
ae23c9
 tests/qemu-iotests/156.out    |   7 ++
ae23c9
 tests/qemu-iotests/185        |  12 +--
ae23c9
 tests/qemu-iotests/185.out    |  10 +++
ae23c9
 tests/qemu-iotests/191        |   4 +-
ae23c9
 tests/qemu-iotests/191.out    | 132 +++++++++++++++++++++++++++++++
ae23c9
 tests/qemu-iotests/iotests.py |   5 ++
ae23c9
 23 files changed, 449 insertions(+), 44 deletions(-)
ae23c9
ae23c9
diff --git a/job.c b/job.c
ae23c9
index 2046d2f..599a104 100644
ae23c9
--- a/job.c
ae23c9
+++ b/job.c
ae23c9
@@ -30,6 +30,7 @@
ae23c9
 #include "qemu/id.h"
ae23c9
 #include "qemu/main-loop.h"
ae23c9
 #include "trace-root.h"
ae23c9
+#include "qapi/qapi-events-job.h"
ae23c9
 
ae23c9
 static QLIST_HEAD(, Job) jobs = QLIST_HEAD_INITIALIZER(jobs);
ae23c9
 
ae23c9
@@ -157,6 +158,11 @@ static int job_txn_apply(JobTxn *txn, int fn(Job *), bool lock)
ae23c9
     return rc;
ae23c9
 }
ae23c9
 
ae23c9
+static bool job_is_internal(Job *job)
ae23c9
+{
ae23c9
+    return (job->id == NULL);
ae23c9
+}
ae23c9
+
ae23c9
 static void job_state_transition(Job *job, JobStatus s1)
ae23c9
 {
ae23c9
     JobStatus s0 = job->status;
ae23c9
@@ -166,6 +172,10 @@ static void job_state_transition(Job *job, JobStatus s1)
ae23c9
                                JobStatus_str(s0), JobStatus_str(s1));
ae23c9
     assert(JobSTT[s0][s1]);
ae23c9
     job->status = s1;
ae23c9
+
ae23c9
+    if (!job_is_internal(job) && s1 != s0) {
ae23c9
+        qapi_event_send_job_status_change(job->id, job->status, &error_abort);
ae23c9
+    }
ae23c9
 }
ae23c9
 
ae23c9
 int job_apply_verb(Job *job, JobVerb verb, Error **errp)
ae23c9
diff --git a/qapi/job.json b/qapi/job.json
ae23c9
index a472c0c..9fbdd0c 100644
ae23c9
--- a/qapi/job.json
ae23c9
+++ b/qapi/job.json
ae23c9
@@ -92,3 +92,17 @@
ae23c9
 { 'enum': 'JobVerb',
ae23c9
   'data': ['cancel', 'pause', 'resume', 'set-speed', 'complete', 'dismiss',
ae23c9
            'finalize' ] }
ae23c9
+
ae23c9
+##
ae23c9
+# @JOB_STATUS_CHANGE:
ae23c9
+#
ae23c9
+# Emitted when a job transitions to a different status.
ae23c9
+#
ae23c9
+# @id: The job identifier
ae23c9
+# @status: The new job status
ae23c9
+#
ae23c9
+# Since: 2.13
ae23c9
+##
ae23c9
+{ 'event': 'JOB_STATUS_CHANGE',
ae23c9
+  'data': { 'id': 'str',
ae23c9
+            'status': 'JobStatus' } }
ae23c9
diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
ae23c9
index 640a6df..1dbc2dd 100755
ae23c9
--- a/tests/qemu-iotests/030
ae23c9
+++ b/tests/qemu-iotests/030
ae23c9
@@ -304,8 +304,7 @@ class TestParallelOps(iotests.QMPTestCase):
ae23c9
         result = self.vm.qmp('block-stream', device='node5', base=self.imgs[3], job_id='stream-node6')
ae23c9
         self.assert_qmp(result, 'error/class', 'GenericError')
ae23c9
 
ae23c9
-        event = self.vm.get_qmp_event(wait=True)
ae23c9
-        self.assertEqual(event['event'], 'BLOCK_JOB_READY')
ae23c9
+        event = self.vm.event_wait(name='BLOCK_JOB_READY')
ae23c9
         self.assert_qmp(event, 'data/device', 'commit-drive0')
ae23c9
         self.assert_qmp(event, 'data/type', 'commit')
ae23c9
         self.assert_qmp_absent(event, 'data/error')
ae23c9
@@ -565,6 +564,8 @@ class TestEIO(TestErrors):
ae23c9
                     self.assert_qmp(event, 'data/offset', self.STREAM_BUFFER_SIZE)
ae23c9
                     self.assert_qmp(event, 'data/len', self.image_len)
ae23c9
                     completed = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         self.vm.shutdown()
ae23c9
@@ -596,6 +597,8 @@ class TestEIO(TestErrors):
ae23c9
                     self.assert_qmp(event, 'data/offset', self.image_len)
ae23c9
                     self.assert_qmp(event, 'data/len', self.image_len)
ae23c9
                     completed = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         self.vm.shutdown()
ae23c9
@@ -637,6 +640,8 @@ class TestEIO(TestErrors):
ae23c9
                     self.assert_qmp(event, 'data/offset', self.image_len)
ae23c9
                     self.assert_qmp(event, 'data/len', self.image_len)
ae23c9
                     completed = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         self.vm.shutdown()
ae23c9
@@ -663,6 +668,8 @@ class TestEIO(TestErrors):
ae23c9
                     self.assert_qmp(event, 'data/offset', self.STREAM_BUFFER_SIZE)
ae23c9
                     self.assert_qmp(event, 'data/len', self.image_len)
ae23c9
                     completed = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         self.vm.shutdown()
ae23c9
@@ -722,6 +729,8 @@ class TestENOSPC(TestErrors):
ae23c9
                     self.assert_qmp(event, 'data/offset', self.image_len)
ae23c9
                     self.assert_qmp(event, 'data/len', self.image_len)
ae23c9
                     completed = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         self.vm.shutdown()
ae23c9
@@ -751,7 +760,9 @@ class TestStreamStop(iotests.QMPTestCase):
ae23c9
 
ae23c9
         time.sleep(0.1)
ae23c9
         events = self.vm.get_qmp_events(wait=False)
ae23c9
-        self.assertEqual(events, [], 'unexpected QMP event: %s' % events)
ae23c9
+        for e in events:
ae23c9
+            self.assert_qmp(e, 'event', 'JOB_STATUS_CHANGE')
ae23c9
+            self.assert_qmp(e, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.cancel_and_wait(resume=True)
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/040 b/tests/qemu-iotests/040
ae23c9
index 90b5b4f..1beb5e6 100755
ae23c9
--- a/tests/qemu-iotests/040
ae23c9
+++ b/tests/qemu-iotests/040
ae23c9
@@ -162,6 +162,8 @@ class TestSingleDrive(ImageCommitTestCase):
ae23c9
                 elif event['event'] == 'BLOCK_JOB_CANCELLED':
ae23c9
                     self.assert_qmp(event, 'data/device', 'drive0')
ae23c9
                     cancelled = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
                 else:
ae23c9
                     self.fail("Unexpected event %s" % (event['event']))
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041
ae23c9
index a860a31..e945879 100755
ae23c9
--- a/tests/qemu-iotests/041
ae23c9
+++ b/tests/qemu-iotests/041
ae23c9
@@ -445,6 +445,8 @@ new_state = "1"
ae23c9
                     self.assert_qmp(event, 'data/device', 'drive0')
ae23c9
                     self.assert_qmp(event, 'data/error', 'Input/output error')
ae23c9
                     completed = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         self.vm.shutdown()
ae23c9
@@ -457,6 +459,10 @@ new_state = "1"
ae23c9
         self.assert_qmp(result, 'return', {})
ae23c9
 
ae23c9
         event = self.vm.get_qmp_event(wait=True)
ae23c9
+        while event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+            self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
+            event = self.vm.get_qmp_event(wait=True)
ae23c9
+
ae23c9
         self.assertEquals(event['event'], 'BLOCK_JOB_ERROR')
ae23c9
         self.assert_qmp(event, 'data/device', 'drive0')
ae23c9
         self.assert_qmp(event, 'data/operation', 'read')
ae23c9
@@ -478,6 +484,10 @@ new_state = "1"
ae23c9
         self.assert_qmp(result, 'return', {})
ae23c9
 
ae23c9
         event = self.vm.get_qmp_event(wait=True)
ae23c9
+        while event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+            self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
+            event = self.vm.get_qmp_event(wait=True)
ae23c9
+
ae23c9
         self.assertEquals(event['event'], 'BLOCK_JOB_ERROR')
ae23c9
         self.assert_qmp(event, 'data/device', 'drive0')
ae23c9
         self.assert_qmp(event, 'data/operation', 'read')
ae23c9
@@ -608,7 +618,7 @@ new_state = "1"
ae23c9
                              on_target_error='ignore')
ae23c9
         self.assert_qmp(result, 'return', {})
ae23c9
 
ae23c9
-        event = self.vm.get_qmp_event(wait=True)
ae23c9
+        event = self.vm.event_wait(name='BLOCK_JOB_ERROR')
ae23c9
         self.assertEquals(event['event'], 'BLOCK_JOB_ERROR')
ae23c9
         self.assert_qmp(event, 'data/device', 'drive0')
ae23c9
         self.assert_qmp(event, 'data/operation', 'write')
ae23c9
@@ -784,7 +794,12 @@ class TestGranularity(iotests.QMPTestCase):
ae23c9
                              sync='full', target=target_img,
ae23c9
                              mode='absolute-paths', granularity=8192)
ae23c9
         self.assert_qmp(result, 'return', {})
ae23c9
+
ae23c9
         event = self.vm.get_qmp_event(wait=60.0)
ae23c9
+        while event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+            self.assert_qmp(event, 'data/id', 'drive0')
ae23c9
+            event = self.vm.get_qmp_event(wait=60.0)
ae23c9
+
ae23c9
         # Failures will manifest as COMPLETED/ERROR.
ae23c9
         self.assert_qmp(event, 'event', 'BLOCK_JOB_READY')
ae23c9
         self.complete_and_wait(drive='drive0', wait_ready=False)
ae23c9
diff --git a/tests/qemu-iotests/094.out b/tests/qemu-iotests/094.out
ae23c9
index f52baff..665b630 100644
ae23c9
--- a/tests/qemu-iotests/094.out
ae23c9
+++ b/tests/qemu-iotests/094.out
ae23c9
@@ -2,10 +2,17 @@ QA output created by 094
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/source.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 67108864, "offset": 67108864, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 67108864, "offset": 67108864, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 *** done
ae23c9
diff --git a/tests/qemu-iotests/095 b/tests/qemu-iotests/095
ae23c9
index 030adb2..72ecc22 100755
ae23c9
--- a/tests/qemu-iotests/095
ae23c9
+++ b/tests/qemu-iotests/095
ae23c9
@@ -72,7 +72,7 @@ _send_qemu_cmd $h "{ 'execute': 'qmp_capabilities' }" "return"
ae23c9
 
ae23c9
 _send_qemu_cmd $h "{ 'execute': 'block-commit',
ae23c9
                                  'arguments': { 'device': 'test',
ae23c9
-                                 'top': '"${TEST_IMG}.snp1"' } }" "BLOCK_JOB_COMPLETED"
ae23c9
+                                 'top': '"${TEST_IMG}.snp1"' } }" '"status": "null"'
ae23c9
 
ae23c9
 _cleanup_qemu
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/095.out b/tests/qemu-iotests/095.out
ae23c9
index 73875ca..8c093df 100644
ae23c9
--- a/tests/qemu-iotests/095.out
ae23c9
+++ b/tests/qemu-iotests/095.out
ae23c9
@@ -11,8 +11,14 @@ virtual size: 5.0M (5242880 bytes)
ae23c9
 === Running QEMU Live Commit Test ===
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "test"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "test"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "test"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "test"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "test", "len": 104857600, "offset": 104857600, "speed": 0, "type": "commit"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "test"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "test"}}
ae23c9
 
ae23c9
 === Base image info after commit and resize ===
ae23c9
 image: TEST_DIR/t.IMGFMT.base
ae23c9
diff --git a/tests/qemu-iotests/109 b/tests/qemu-iotests/109
ae23c9
index d70b574..acbd079 100755
ae23c9
--- a/tests/qemu-iotests/109
ae23c9
+++ b/tests/qemu-iotests/109
ae23c9
@@ -64,7 +64,7 @@ function run_qemu()
ae23c9
 
ae23c9
     _send_qemu_cmd $QEMU_HANDLE '' "$qmp_event"
ae23c9
     if test "$qmp_event" = BLOCK_JOB_ERROR; then
ae23c9
-        _send_qemu_cmd $QEMU_HANDLE '' "BLOCK_JOB_COMPLETED"
ae23c9
+        _send_qemu_cmd $QEMU_HANDLE '' '"status": "null"'
ae23c9
     fi
ae23c9
     _send_qemu_cmd $QEMU_HANDLE '{"execute":"query-block-jobs"}' "return"
ae23c9
     _send_qemu_cmd $QEMU_HANDLE '{"execute":"quit"}' "return"
ae23c9
diff --git a/tests/qemu-iotests/109.out b/tests/qemu-iotests/109.out
ae23c9
index 8a9b936..ad0ee6f 100644
ae23c9
--- a/tests/qemu-iotests/109.out
ae23c9
+++ b/tests/qemu-iotests/109.out
ae23c9
@@ -6,23 +6,35 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/t.raw.src', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": 0, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 1024, "offset": 1024, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 1024, "offset": 1024, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 1024, "offset": 1024, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -32,23 +44,35 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/t.raw.src', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": 512, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 197120, "offset": 197120, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 197120, "offset": 197120, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 197120, "offset": 197120, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -58,23 +82,35 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/t.raw.src', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": 262144, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 327680, "offset": 327680, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 327680, "offset": 327680, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 327680, "offset": 327680, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -84,23 +120,35 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/t.raw.src', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": 0, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 1024, "offset": 1024, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 1024, "offset": 1024, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 1024, "offset": 1024, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -110,23 +158,35 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/t.raw.src', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": 0, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 65536, "offset": 65536, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 65536, "offset": 65536, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 65536, "offset": 65536, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -136,23 +196,35 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 Formatting 'TEST_DIR/t.raw.src', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": 0, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 2560, "offset": 2560, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 2560, "offset": 2560, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 2560, "offset": 2560, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -161,23 +233,35 @@ Images are identical.
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": OFFSET, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 2560, "offset": 2560, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 2560, "offset": 2560, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 2560, "offset": 2560, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -186,23 +270,35 @@ Images are identical.
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": OFFSET, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 31457280, "offset": 31457280, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 31457280, "offset": 31457280, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 31457280, "offset": 31457280, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -211,23 +307,35 @@ Images are identical.
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": OFFSET, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 327680, "offset": 327680, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 327680, "offset": 327680, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 327680, "offset": 327680, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -236,23 +344,35 @@ Images are identical.
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_ERROR", "data": {"device": "src", "operation": "write", "action": "report"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": LEN, "offset": OFFSET, "speed": 0, "type": "mirror", "error": "Operation not permitted"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 {"return": []}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 2048, "offset": 2048, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 2048, "offset": 2048, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 2048, "offset": 2048, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 
ae23c9
@@ -261,23 +381,37 @@ Images are identical.
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
ae23c9
 {"return": {}}
ae23c9
 WARNING: Image format was not specified for 'TEST_DIR/t.raw' and probing guessed raw.
ae23c9
-Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
-Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
ae23c9
+         Specify the 'raw' format explicitly to remove the restrictions.
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 512, "offset": 512, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 512, "offset": 512, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 512, "offset": 512, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "src"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "src", "len": 512, "offset": 512, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": [{"auto-finalize": true, "io-status": "ok", "device": "src", "auto-dismiss": true, "busy": false, "len": 512, "offset": 512, "status": "ready", "paused": false, "speed": 0, "ready": true, "type": "mirror"}]}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "src"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "src", "len": 512, "offset": 512, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "src"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "src"}}
ae23c9
 Warning: Image size mismatch!
ae23c9
 Images are identical.
ae23c9
 *** done
ae23c9
diff --git a/tests/qemu-iotests/124 b/tests/qemu-iotests/124
ae23c9
index 8e76e62..3ea4ac5 100755
ae23c9
--- a/tests/qemu-iotests/124
ae23c9
+++ b/tests/qemu-iotests/124
ae23c9
@@ -151,10 +151,17 @@ class TestIncrementalBackupBase(iotests.QMPTestCase):
ae23c9
         return self.wait_qmp_backup(kwargs['device'], error)
ae23c9
 
ae23c9
 
ae23c9
+    def ignore_job_status_change_events(self):
ae23c9
+        while True:
ae23c9
+            e = self.vm.event_wait(name="JOB_STATUS_CHANGE")
ae23c9
+            if e['data']['status'] == 'null':
ae23c9
+                break
ae23c9
+
ae23c9
     def wait_qmp_backup(self, device, error='Input/output error'):
ae23c9
         event = self.vm.event_wait(name="BLOCK_JOB_COMPLETED",
ae23c9
                                    match={'data': {'device': device}})
ae23c9
         self.assertNotEqual(event, None)
ae23c9
+        self.ignore_job_status_change_events()
ae23c9
 
ae23c9
         try:
ae23c9
             failure = self.dictpath(event, 'data/error')
ae23c9
@@ -172,6 +179,7 @@ class TestIncrementalBackupBase(iotests.QMPTestCase):
ae23c9
         event = self.vm.event_wait(name='BLOCK_JOB_CANCELLED',
ae23c9
                                    match={'data': {'device': device}})
ae23c9
         self.assertNotEqual(event, None)
ae23c9
+        self.ignore_job_status_change_events()
ae23c9
 
ae23c9
 
ae23c9
     def create_anchor_backup(self, drive=None):
ae23c9
diff --git a/tests/qemu-iotests/127.out b/tests/qemu-iotests/127.out
ae23c9
index 543d075..83b522d 100644
ae23c9
--- a/tests/qemu-iotests/127.out
ae23c9
+++ b/tests/qemu-iotests/127.out
ae23c9
@@ -5,10 +5,17 @@ Formatting 'TEST_DIR/t.IMGFMT.overlay1', fmt=IMGFMT size=65536 backing_file=TEST
ae23c9
 wrote 42/42 bytes at offset 0
ae23c9
 42 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "mirror"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "mirror"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "mirror", "len": 65536, "offset": 65536, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "mirror"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "mirror", "len": 65536, "offset": 65536, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "mirror"}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
 *** done
ae23c9
diff --git a/tests/qemu-iotests/141 b/tests/qemu-iotests/141
ae23c9
index 2f9d7b9..4246d38 100755
ae23c9
--- a/tests/qemu-iotests/141
ae23c9
+++ b/tests/qemu-iotests/141
ae23c9
@@ -107,7 +107,7 @@ test_blockjob \
ae23c9
                     'format': '$IMGFMT',
ae23c9
                     'sync': 'none'}}" \
ae23c9
     'return' \
ae23c9
-    'BLOCK_JOB_CANCELLED'
ae23c9
+    '"status": "null"'
ae23c9
 
ae23c9
 echo
ae23c9
 echo '=== Testing drive-mirror ==='
ae23c9
@@ -124,7 +124,7 @@ test_blockjob \
ae23c9
                     'format': '$IMGFMT',
ae23c9
                     'sync': 'none'}}" \
ae23c9
     'BLOCK_JOB_READY' \
ae23c9
-    'BLOCK_JOB_COMPLETED'
ae23c9
+    '"status": "null"'
ae23c9
 
ae23c9
 echo
ae23c9
 echo '=== Testing active block-commit ==='
ae23c9
@@ -138,7 +138,7 @@ test_blockjob \
ae23c9
     "{'execute': 'block-commit',
ae23c9
       'arguments': {'job-id': 'job0', 'device': 'drv0'}}" \
ae23c9
     'BLOCK_JOB_READY' \
ae23c9
-    'BLOCK_JOB_COMPLETED'
ae23c9
+    '"status": "null"'
ae23c9
 
ae23c9
 echo
ae23c9
 echo '=== Testing non-active block-commit ==='
ae23c9
@@ -157,7 +157,7 @@ test_blockjob \
ae23c9
                     'top':    '$TEST_DIR/m.$IMGFMT',
ae23c9
                     'speed':  1}}" \
ae23c9
     'return' \
ae23c9
-    'BLOCK_JOB_CANCELLED'
ae23c9
+    '"status": "null"'
ae23c9
 
ae23c9
 echo
ae23c9
 echo '=== Testing block-stream ==='
ae23c9
@@ -170,8 +170,7 @@ echo
ae23c9
 $QEMU_IO -c 'write 0 1M' "$TEST_DIR/b.$IMGFMT" | _filter_qemu_io
ae23c9
 
ae23c9
 # With some data to stream (and @speed set to 1), block-stream will not complete
ae23c9
-# until we send the block-job-cancel command. Therefore, no event other than
ae23c9
-# BLOCK_JOB_CANCELLED will be emitted.
ae23c9
+# until we send the block-job-cancel command.
ae23c9
 
ae23c9
 test_blockjob \
ae23c9
     "{'execute': 'block-stream',
ae23c9
@@ -179,7 +178,7 @@ test_blockjob \
ae23c9
                     'device': 'drv0',
ae23c9
                     'speed': 1}}" \
ae23c9
     'return' \
ae23c9
-    'BLOCK_JOB_CANCELLED'
ae23c9
+    '"status": "null"'
ae23c9
 
ae23c9
 _cleanup_qemu
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/141.out b/tests/qemu-iotests/141.out
ae23c9
index 82e763b..f252c86 100644
ae23c9
--- a/tests/qemu-iotests/141.out
ae23c9
+++ b/tests/qemu-iotests/141.out
ae23c9
@@ -8,31 +8,50 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/m.
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
 Formatting 'TEST_DIR/o.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 {"error": {"class": "GenericError", "desc": "Node drv0 is in use"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_CANCELLED", "data": {"device": "job0", "len": 1048576, "offset": 0, "speed": 0, "type": "backup"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 
ae23c9
 === Testing drive-mirror ===
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
 Formatting 'TEST_DIR/o.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT backing_fmt=IMGFMT
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "mirror"}}
ae23c9
 {"return": {}}
ae23c9
 {"error": {"class": "GenericError", "desc": "Node 'drv0' is busy: node is used as backing hd of 'NODE_NAME'"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 
ae23c9
 === Testing active block-commit ===
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}}
ae23c9
 {"return": {}}
ae23c9
 {"error": {"class": "GenericError", "desc": "Node 'drv0' is busy: node is used as backing hd of 'NODE_NAME'"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "job0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 
ae23c9
 === Testing non-active block-commit ===
ae23c9
@@ -40,10 +59,15 @@ Formatting 'TEST_DIR/o.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.
ae23c9
 wrote 1048576/1048576 bytes at offset 0
ae23c9
 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 {"error": {"class": "GenericError", "desc": "Node drv0 is in use"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_CANCELLED", "data": {"device": "job0", "len": 1048576, "offset": 524288, "speed": 1, "type": "commit"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 
ae23c9
 === Testing block-stream ===
ae23c9
@@ -51,9 +75,14 @@ wrote 1048576/1048576 bytes at offset 0
ae23c9
 wrote 1048576/1048576 bytes at offset 0
ae23c9
 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 {"error": {"class": "GenericError", "desc": "Node drv0 is in use"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "aborting", "id": "job0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_CANCELLED", "data": {"device": "job0", "len": 1048576, "offset": 524288, "speed": 1, "type": "stream"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "job0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "job0"}}
ae23c9
 {"return": {}}
ae23c9
 *** done
ae23c9
diff --git a/tests/qemu-iotests/144 b/tests/qemu-iotests/144
ae23c9
index 00de3c33..4b91571 100755
ae23c9
--- a/tests/qemu-iotests/144
ae23c9
+++ b/tests/qemu-iotests/144
ae23c9
@@ -93,7 +93,7 @@ _send_qemu_cmd $h "{ 'execute': 'block-job-complete',
ae23c9
                                 'arguments': {
ae23c9
                                                 'device': 'virtio0'
ae23c9
                                               }
ae23c9
-                   }" "COMPLETED"
ae23c9
+                   }" '"status": "null"'
ae23c9
 
ae23c9
 echo
ae23c9
 echo === Performing Live Snapshot 2 ===
ae23c9
diff --git a/tests/qemu-iotests/144.out b/tests/qemu-iotests/144.out
ae23c9
index 014b281..5529920 100644
ae23c9
--- a/tests/qemu-iotests/144.out
ae23c9
+++ b/tests/qemu-iotests/144.out
ae23c9
@@ -12,10 +12,17 @@ Formatting 'TEST_DIR/tmp.qcow2', fmt=qcow2 size=536870912 backing_file=TEST_DIR/
ae23c9
 
ae23c9
 === Performing block-commit on active layer ===
ae23c9
 
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "virtio0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "virtio0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "virtio0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "virtio0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}}
ae23c9
 {"return": {}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "virtio0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "virtio0"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "virtio0", "len": 0, "offset": 0, "speed": 0, "type": "commit"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "virtio0"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "virtio0"}}
ae23c9
 
ae23c9
 === Performing Live Snapshot 2 ===
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/156 b/tests/qemu-iotests/156
ae23c9
index e75dc4d..0a9a098 100755
ae23c9
--- a/tests/qemu-iotests/156
ae23c9
+++ b/tests/qemu-iotests/156
ae23c9
@@ -119,7 +119,7 @@ _send_qemu_cmd $QEMU_HANDLE \
ae23c9
 
ae23c9
 _send_qemu_cmd $QEMU_HANDLE \
ae23c9
     '' \
ae23c9
-    'BLOCK_JOB_COMPLETED'
ae23c9
+    '"status": "null"'
ae23c9
 
ae23c9
 # Remove the source images
ae23c9
 rm -f "$TEST_IMG{,.backing,.overlay}"
ae23c9
diff --git a/tests/qemu-iotests/156.out b/tests/qemu-iotests/156.out
ae23c9
index f96a564..34c057b 100644
ae23c9
--- a/tests/qemu-iotests/156.out
ae23c9
+++ b/tests/qemu-iotests/156.out
ae23c9
@@ -12,13 +12,20 @@ wrote 131072/131072 bytes at offset 131072
ae23c9
 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": ""}
ae23c9
 Formatting 'TEST_DIR/t.IMGFMT.target.overlay', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT.target
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "source"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "source"}}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "source"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "source", "len": 131072, "offset": 131072, "speed": 0, "type": "mirror"}}
ae23c9
 wrote 65536/65536 bytes at offset 196608
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
 {"return": ""}
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "source"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "source"}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "source", "len": 196608, "offset": 196608, "speed": 0, "type": "mirror"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "source"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "source"}}
ae23c9
 
ae23c9
 read 65536/65536 bytes at offset 0
ae23c9
 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
ae23c9
diff --git a/tests/qemu-iotests/185 b/tests/qemu-iotests/185
ae23c9
index 9a2d317..567ba67 100755
ae23c9
--- a/tests/qemu-iotests/185
ae23c9
+++ b/tests/qemu-iotests/185
ae23c9
@@ -118,8 +118,10 @@ _send_qemu_cmd $h \
ae23c9
 # If we don't sleep here 'quit' command races with disk I/O
ae23c9
 sleep 0.5
ae23c9
 
ae23c9
+# Ignore the JOB_STATUS_CHANGE events while shutting down the VM. Depending on
ae23c9
+# the timing, jobs may or may not transition through a paused state.
ae23c9
 _send_qemu_cmd $h "{ 'execute': 'quit' }" "return"
ae23c9
-wait=1 _cleanup_qemu
ae23c9
+wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
ae23c9
 
ae23c9
 echo
ae23c9
 echo === Start active commit job and exit qemu ===
ae23c9
@@ -141,7 +143,7 @@ _send_qemu_cmd $h \
ae23c9
 sleep 0.5
ae23c9
 
ae23c9
 _send_qemu_cmd $h "{ 'execute': 'quit' }" "return"
ae23c9
-wait=1 _cleanup_qemu
ae23c9
+wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
ae23c9
 
ae23c9
 echo
ae23c9
 echo === Start mirror job and exit qemu ===
ae23c9
@@ -166,7 +168,7 @@ _send_qemu_cmd $h \
ae23c9
 sleep 0.5
ae23c9
 
ae23c9
 _send_qemu_cmd $h "{ 'execute': 'quit' }" "return"
ae23c9
-wait=1 _cleanup_qemu
ae23c9
+wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
ae23c9
 
ae23c9
 echo
ae23c9
 echo === Start backup job and exit qemu ===
ae23c9
@@ -190,7 +192,7 @@ _send_qemu_cmd $h \
ae23c9
 sleep 0.5
ae23c9
 
ae23c9
 _send_qemu_cmd $h "{ 'execute': 'quit' }" "return"
ae23c9
-wait=1 _cleanup_qemu
ae23c9
+wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
ae23c9
 
ae23c9
 echo
ae23c9
 echo === Start streaming job and exit qemu ===
ae23c9
@@ -211,7 +213,7 @@ _send_qemu_cmd $h \
ae23c9
 sleep 0.5
ae23c9
 
ae23c9
 _send_qemu_cmd $h "{ 'execute': 'quit' }" "return"
ae23c9
-wait=1 _cleanup_qemu
ae23c9
+wait=1 _cleanup_qemu | grep -v 'JOB_STATUS_CHANGE'
ae23c9
 
ae23c9
 _check_test_img
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/185.out b/tests/qemu-iotests/185.out
ae23c9
index 57eaf8d..4e0ca0d 100644
ae23c9
--- a/tests/qemu-iotests/185.out
ae23c9
+++ b/tests/qemu-iotests/185.out
ae23c9
@@ -17,6 +17,8 @@ Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 backing_file=TEST_DIR/t.q
ae23c9
 
ae23c9
 === Start commit job and exit qemu ===
ae23c9
 
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
ae23c9
 {"return": {}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
@@ -25,6 +27,8 @@ Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 backing_file=TEST_DIR/t.q
ae23c9
 === Start active commit job and exit qemu ===
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
ae23c9
 {"return": {}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
@@ -34,6 +38,8 @@ Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 backing_file=TEST_DIR/t.q
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
 Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 size=67108864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
ae23c9
 {"return": {}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
@@ -43,6 +49,8 @@ Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 size=67108864 cluster_size=65536 l
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
 Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 size=67108864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
ae23c9
 {"return": {}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
@@ -51,6 +59,8 @@ Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 size=67108864 cluster_size=65536 l
ae23c9
 === Start streaming job and exit qemu ===
ae23c9
 
ae23c9
 {"return": {}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
ae23c9
+{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
ae23c9
 {"return": {}}
ae23c9
 {"return": {}}
ae23c9
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false}}
ae23c9
diff --git a/tests/qemu-iotests/191 b/tests/qemu-iotests/191
ae23c9
index dfad655..b3629ff 100755
ae23c9
--- a/tests/qemu-iotests/191
ae23c9
+++ b/tests/qemu-iotests/191
ae23c9
@@ -83,7 +83,7 @@ _send_qemu_cmd $h \
ae23c9
                       'device': 'top',
ae23c9
                       'base':'$TEST_IMG.base',
ae23c9
                       'top': '$TEST_IMG.mid' } }" \
ae23c9
-    "BLOCK_JOB_COMPLETED"
ae23c9
+    '"status": "null"'
ae23c9
 _send_qemu_cmd $h "" "^}"
ae23c9
 
ae23c9
 echo
ae23c9
@@ -131,7 +131,7 @@ _send_qemu_cmd $h \
ae23c9
                       'device': 'top',
ae23c9
                       'base':'$TEST_IMG.base',
ae23c9
                       'top': '$TEST_IMG.mid' } }" \
ae23c9
-    "BLOCK_JOB_COMPLETED"
ae23c9
+    '"status": "null"'
ae23c9
 _send_qemu_cmd $h "" "^}"
ae23c9
 
ae23c9
 echo
ae23c9
diff --git a/tests/qemu-iotests/191.out b/tests/qemu-iotests/191.out
ae23c9
index 190c5f0..31a0c7d 100644
ae23c9
--- a/tests/qemu-iotests/191.out
ae23c9
+++ b/tests/qemu-iotests/191.out
ae23c9
@@ -16,6 +16,28 @@ wrote 65536/65536 bytes at offset 1048576
ae23c9
 === Perform commit job ===
ae23c9
 
ae23c9
 {
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "created",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "running",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
     "return": {
ae23c9
     }
ae23c9
 }
ae23c9
@@ -24,6 +46,28 @@ wrote 65536/65536 bytes at offset 1048576
ae23c9
         "seconds":  TIMESTAMP,
ae23c9
         "microseconds":  TIMESTAMP
ae23c9
     },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "waiting",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "pending",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
     "event": "BLOCK_JOB_COMPLETED",
ae23c9
     "data": {
ae23c9
         "device": "commit0",
ae23c9
@@ -33,6 +77,28 @@ wrote 65536/65536 bytes at offset 1048576
ae23c9
         "type": "commit"
ae23c9
     }
ae23c9
 }
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "concluded",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "null",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
 
ae23c9
 === Check that both top and top2 point to base now ===
ae23c9
 
ae23c9
@@ -356,6 +422,28 @@ wrote 65536/65536 bytes at offset 1048576
ae23c9
 === Perform commit job ===
ae23c9
 
ae23c9
 {
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "created",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "running",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
     "return": {
ae23c9
     }
ae23c9
 }
ae23c9
@@ -364,6 +452,28 @@ wrote 65536/65536 bytes at offset 1048576
ae23c9
         "seconds":  TIMESTAMP,
ae23c9
         "microseconds":  TIMESTAMP
ae23c9
     },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "waiting",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "pending",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
     "event": "BLOCK_JOB_COMPLETED",
ae23c9
     "data": {
ae23c9
         "device": "commit0",
ae23c9
@@ -373,6 +483,28 @@ wrote 65536/65536 bytes at offset 1048576
ae23c9
         "type": "commit"
ae23c9
     }
ae23c9
 }
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "concluded",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
+{
ae23c9
+    "timestamp": {
ae23c9
+        "seconds":  TIMESTAMP,
ae23c9
+        "microseconds":  TIMESTAMP
ae23c9
+    },
ae23c9
+    "event": "JOB_STATUS_CHANGE",
ae23c9
+    "data": {
ae23c9
+        "status": "null",
ae23c9
+        "id": "commit0"
ae23c9
+    }
ae23c9
+}
ae23c9
 
ae23c9
 === Check that both top and top2 point to base now ===
ae23c9
 
ae23c9
diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py
ae23c9
index 2ce85a1..824f87d 100644
ae23c9
--- a/tests/qemu-iotests/iotests.py
ae23c9
+++ b/tests/qemu-iotests/iotests.py
ae23c9
@@ -474,6 +474,9 @@ class QMPTestCase(unittest.TestCase):
ae23c9
                     self.assert_qmp(event, 'data/device', drive)
ae23c9
                     result = event
ae23c9
                     cancelled = True
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', drive)
ae23c9
+
ae23c9
 
ae23c9
         self.assert_no_active_block_jobs()
ae23c9
         return result
ae23c9
@@ -489,6 +492,8 @@ class QMPTestCase(unittest.TestCase):
ae23c9
                         self.assert_qmp(event, 'data/offset', event['data']['len'])
ae23c9
                     self.assert_no_active_block_jobs()
ae23c9
                     return event
ae23c9
+                elif event['event'] == 'JOB_STATUS_CHANGE':
ae23c9
+                    self.assert_qmp(event, 'data/id', drive)
ae23c9
 
ae23c9
     def wait_ready(self, drive='drive0'):
ae23c9
         '''Wait until a block job BLOCK_JOB_READY event'''
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9