]> git.proxmox.com Git - mirror_qemu.git/commit
block: Create the commit block job before reopening any image
authorAlberto Garcia <berto@igalia.com>
Fri, 27 May 2016 10:53:39 +0000 (12:53 +0200)
committerMax Reitz <mreitz@redhat.com>
Thu, 16 Jun 2016 13:20:37 +0000 (15:20 +0200)
commit834fe28ddffaec469cf048c7a48eb610e7a6e906
tree279162e363f9453b829c68fb689927dd65459f6e
parent0824afda0cd20045ffe87d58e142774514b61026
block: Create the commit block job before reopening any image

If the base or overlay images need to be reopened in read-write mode
but the block_job_create() call fails then no one will put those
images back in read-only mode.

We can solve this problem easily by calling block_job_create() first.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: aa495045770a6f1a7cc5d408397a17c75097fdd8.1464346103.git.berto@igalia.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/commit.c