]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageSourceNewFromBacking: Also transfer the format
authorPeter Krempa <pkrempa@redhat.com>
Fri, 21 Feb 2020 11:51:35 +0000 (12:51 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 24 Feb 2020 14:12:32 +0000 (15:12 +0100)
commit264b79c63a518df8ce32a78dda51ae554cd2d5f2
treee5860cead9d32b11df79c7f677c38865ce58bd3e
parent62539c5f7d6a994b9cbd677564e7206cab1c5a45
virStorageSourceNewFromBacking: Also transfer the format

When we create the new virStorageSource from the definitions stored in
the parent we should also use the 'backingStoreRawFormat' field to
populate the format.

Callers which use virStorageSourceNewFromBacking are also fixed to stop
setting the format manually.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_util.c
src/util/virstoragefile.c