[libvirt] [PATCH 4/8] Keep pidfile path in qemuDomainObjPrivate struct

Matthias Bolte matthias.bolte at googlemail.com
Tue Jul 5 11:14:28 UTC 2011


2011/7/4 Daniel P. Berrange <berrange at 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




More information about the libvir-list mailing list