]> git.proxmox.com Git - mirror_qemu.git/commit
block: Check blockers in all nodes involved in a block-commit job
authorAlberto Garcia <berto@igalia.com>
Fri, 28 Oct 2016 07:08:07 +0000 (10:08 +0300)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Oct 2016 15:52:38 +0000 (16:52 +0100)
commit058223a6e3b73cdf7f56b8d0a55032f99c5f11ac
treebba221f183b81882347e841060289002d2dd5037
parentb7340d002e1bcda6b7c07659a7e9d35842651476
block: Check blockers in all nodes involved in a block-commit job

qmp_block_commit() checks for op blockers in the active and
destination (base) images. However all nodes between top_bs and base
are also involved, and they are removed from the chain afterwards.

In addition to that, if top_bs is not the active layer then top_bs's
overlay also needs to be checked because it's involved in the job (its
backing image string needs to be updated to point to 'base').

This patch checks that none of those nodes are blocked.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c