From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdYm5-0003QR-UG for qemu-devel@nongnu.org; Sat, 18 May 2013 00:29:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UdYm3-0002JL-F1 for qemu-devel@nongnu.org; Sat, 18 May 2013 00:29:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UdYm3-0002J7-7h for qemu-devel@nongnu.org; Sat, 18 May 2013 00:29:39 -0400 From: Laszlo Ersek Date: Sat, 18 May 2013 06:31:47 +0200 Message-Id: <1368851513-20550-1-git-send-email-lersek@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] local state directory fixes for win32 qga List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org Qouting patch 2/6: > Since commit 39097daf ("qemu-ga: use key-value store to avoid > recycling fd handles after restart") we've relied on the state > directory for the fd handles' key-value store. Even though we don't > support the guest-file-* commands on win32 yet, the key-value store is > written, and it's the first use of the state directory on win32. We > should have a sensible default for its location. Motivated by RHBZ#962669. I've perpetrated this in the second half of a Friday->Sunday all-nighter, so be gentle. Thanks. Laszlo Ersek (6): osdep: add qemu_get_local_state_pathname() qga: determine default state dir and pidfile dynamically configure: don't save any fixed local_statedir for win32 qga: create state directory on win32 qga: remove undefined behavior in ga_install_service() qga: save state directory in ga_install_service() configure | 12 +++++++--- include/qemu/osdep.h | 11 +++++++++ qga/service-win32.h | 3 +- qga/main.c | 57 +++++++++++++++++++++++++++++++++++++++++++------ qga/service-win32.c | 25 ++++++++++++++-------- util/oslib-posix.c | 9 ++++++++ util/oslib-win32.c | 22 +++++++++++++++++++ 7 files changed, 118 insertions(+), 21 deletions(-)