[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]