2011/7/4 Daniel P. Berrange <berrange(a)redhat.com>:
Avoid re-formatting the pidfile path everytime we need it. Create
it once when starting the guest, and preserve it until the guest
is shutdown.
* src/libvirt_private.syms, src/util/util.c,
src/util/util.h: Add virFileReadPidPath
* src/qemu/qemu_domain.h: Add pidfile field
* src/qemu/qemu_process.c: Store pidfile path in qemuDomainObjPrivate
---
src/libvirt_private.syms | 1 +
src/qemu/qemu_domain.h | 1 +
src/qemu/qemu_process.c | 27 +++++++++++++++------------
src/util/util.c | 45 ++++++++++++++++++++++++++++++---------------
src/util/util.h | 2 ++
5 files changed, 49 insertions(+), 27 deletions(-)
ACK.
--
Matthias Bolte
http://photron.blogspot.com