diff options
author | Alberto Garcia <berto@igalia.com> | 2019-02-15 15:49:32 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2019-02-25 15:03:19 +0100 |
commit | 2468eed3befde57ee5be090dd957b9cec220449e (patch) | |
tree | c9cefa2cfb938c77097c952089addd3d0f122047 /qemu-img.c | |
parent | 57830a499f7c815bb0cb325c94a3d8c910d13cfa (diff) |
commit: Replace commit_top_bs on failure after deleting the block job
If there's an error in commit_start() then the block job must be
deleted before replacing commit_top_bs, otherwise it will fail because
of lack of permissions. This happens since the permission system was
introduced in 8dfba2797761d8a43744e4e6571c8175e448a478.
Fortunately this bug doesn't seem to be possible to reproduce at the
moment without changing the code.
Signed-off-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions