]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: disable external snapshot of readonly disk
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 9 Nov 2018 07:50:47 +0000 (10:50 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Tue, 11 Dec 2018 07:58:34 +0000 (10:58 +0300)
commit067aad26befafb446e8a0d5c83d1a4d3b7f704d9
treef7c92ee59d6ac7ef23643fe57cc4470d3cb41333
parentfa30ee04a2a7205c3d664c67b88dd8df9cb1fb40
qemu: disable external snapshot of readonly disk

Disable external snapshot of a readonly disk for domains as
this operation is not very useful. Such a snapshot is not
possible for active domains but the error message from QEMU
is more cryptic:

     error: internal error: unable to execute QEMU command 'transaction':
                         Could not create file: Permission denied

This error at least makes the error more understandable for
active domains and disallows for inactive domains as well.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_driver.c