[libvirt] [PATCHv6 6/8] qemu: Switch snapshot deletion to the new API functions

Eric Blake eblake at redhat.com
Thu Feb 13 21:13:34 UTC 2014


On 02/13/2014 09:49 AM, Peter Krempa wrote:
> Use the new storage driver APIs to delete snapshot backing files in case
> of failure instead of directly relying on "unlink". This will help us in
> the future when we will be adding network based storage without local
> representation in the host.
> ---
> 
> Notes:
>     Version 6:
>     - simplified as the storage driver now doesn't require "conn"
>     

> +++ b/cfg.mk
> @@ -764,6 +764,7 @@ sc_prohibit_cross_inclusion:
>  	    cpu/ | locking/ | network/ | rpc/ | security/)		\
>  	      safe="($$dir|util|conf)";;				\
>  	    xenapi/ | xenxs/ ) safe="($$dir|util|conf|xen)";;		\
> +	    qemu/ ) safe="($$dir|util|conf|cpu|network|locking|rpc|security|storage)";; \
>  	    *) safe="($$dir|util|conf|cpu|network|locking|rpc|security)";; \

We could probably add storage as safe for ALL drivers to use, not just
qemu; but I'm okay with the approach you took.

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140213/1c0ffd8a/attachment-0001.sig>


More information about the libvir-list mailing list