[libvirt] [PATCH 5/6] qemu: Use storage driver APIs in qemuDomainBlockPeek

John Ferlan jferlan at redhat.com
Sat Jul 1 14:43:23 UTC 2017



On 06/23/2017 09:33 AM, Peter Krempa wrote:
> Refactor the access to storage driver usage along with
> qemuDomainStorageFileInit which ensures that we access the file with
> correct DAC uid/gid.
> ---
>  src/qemu/qemu_driver.c | 25 ++++++++-----------------
>  1 file changed, 8 insertions(+), 17 deletions(-)
> 

Irony is the comment at the end of qemuOpenFile:

 * This function should not be used on storage sources. Use
 * qemuDomainStorageFileInit and storage driver APIs if possible.

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list