[libvirt] [PATCH] [v2] Support kvm-img or qemu-img dynamically

Doug Goldstein cardoe at gentoo.org
Wed Jun 10 15:28:00 UTC 2009


This patch adds a new function virFindFileInPath() and uses it to find
where a binary lives in the PATH environment variable. Using this, we
can dynamically find where utility functions exist (and if they even
exists). So such we remove the build-time check for qemu-img and make it
dynamic for kvm-img and qemu-img. Several distros uses kvm-img over
qemu-img when installing KVM. kvm-img also includes several patches
which Red Hat is trying to upstream with QEMU so this patch supports
those features which are commented out in libvirt when using kvm-img

Signed-off-by: Doug Goldstein <cardoe at gentoo.org>
---
 configure.in             |   15 ---------
 src/libvirt_private.syms |    1 +
 src/storage_backend_fs.c |   76 ++++++++++++++++++++++++++++++++-------------
 src/util.c               |   28 +++++++++++++++++
 src/util.h               |    2 +
 5 files changed, 85 insertions(+), 37 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-kvm-img-or-qemu-img-dynamically.patch
Type: text/x-patch
Size: 8347 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090610/b57eecd0/attachment-0001.bin>


More information about the libvir-list mailing list