]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storage: Copy driver type when initializing chain element
authorPeter Krempa <pkrempa@redhat.com>
Tue, 16 Sep 2014 10:55:32 +0000 (12:55 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 16 Sep 2014 16:04:22 +0000 (18:04 +0200)
commit865421c94a63f43c0164d598a73226d0e4231c93
tree86f55ff24bc7dde567891c921edc0abaf035ba07
parent98fd3b7f0b1af179336e55ddee6163580a927d93
util: storage: Copy driver type when initializing chain element

virStorageSourceInitChainElement initializes a new storage chain element
for use as a new disk source. If the new element doesn't contain the
driver name, copy it from the old source.

This fixes issue where a disk would forget the driver after a snapshot.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1140984
src/util/virstoragefile.c