]> xenbits.xensource.com Git - libvirt.git/commit
qemu: blockcopy: Refactor logic checking the target storage file
authorPeter Krempa <pkrempa@redhat.com>
Tue, 11 Jul 2017 15:45:12 +0000 (17:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jul 2017 08:07:48 +0000 (10:07 +0200)
commit703abf1d79038dc1943e161d45982dcd045da34b
treebb0326a617345c534925a7a09f0d79311f02e588
parent5f14a0f2fbcf341b32bbcd8c758063d65b95a692
qemu: blockcopy: Refactor logic checking the target storage file

Use virStorageSource accessors to check the file and call
virStorageFileAccess before even attempting to stat the target. This
will be helpful once we try to add network destinations for block copy,
since there will be no need to stat them.
src/qemu/qemu_driver.c