commit: Fix is_read for block_job_error_action()
commit9ad1e79f3f9b102a9aa05053347cf9874c7bc909
authorKevin Wolf <kwolf@redhat.com>
Fri, 14 Feb 2020 20:08:10 +0000 (14 21:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Feb 2020 09:53:56 +0000 (18 10:53 +0100)
treeefd57caa20d04da2e5dd54d29e19a8159c17ec6a
parent0c42e175fcc9d9ed888e4d7a30237ddf36454d19
commit: Fix is_read for block_job_error_action()

block_job_error_action() needs to know if reading from the top node or
writing to the base node failed so that it can set the right 'operation'
in the BLOCK_JOB_ERROR QMP event.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200214200812.28180-6-kwolf@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/commit.c