From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53175) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJTYW-00065N-LB for qemu-devel@nongnu.org; Wed, 03 Oct 2012 14:20:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TJTYV-0002Yq-Hx for qemu-devel@nongnu.org; Wed, 03 Oct 2012 14:20:24 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:37885) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TJTYV-0002YQ-D1 for qemu-devel@nongnu.org; Wed, 03 Oct 2012 14:20:23 -0400 Received: by obbwc18 with SMTP id wc18so5220192obb.4 for ; Wed, 03 Oct 2012 11:20:22 -0700 (PDT) Sender: fluxion Date: Wed, 3 Oct 2012 13:20:14 -0500 From: Michael Roth Message-ID: <20121003182014.GC16157@illuin> References: <1349285059-5415-1-git-send-email-lcapitulino@redhat.com> <1349285059-5415-4-git-send-email-lcapitulino@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1349285059-5415-4-git-send-email-lcapitulino@redhat.com> Subject: Re: [Qemu-devel] [PATCH 3/3] qemu-ga: use state dir from CONFIG_QEMUGA_STATEDIR List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: pbonzini@redhat.com, qemu-devel@nongnu.org On Wed, Oct 03, 2012 at 02:24:19PM -0300, Luiz Capitulino wrote: > Has the side effect of changing the default directory used to > save the freeze status file from /tmp to /var/run. > > This is a beneficial change for two reasons: > > 1. FHS states that programs must not assume that files in /tmp will > still exist between invocations of the program. This defeats > the purpose of the freeze status file > > 2. FHS dictates that /var/run should be cleaned on boot, this > automatically cleans up any stale file > > Signed-off-by: Luiz Capitulino Acked-by: Michael Roth > --- > qemu-ga.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/qemu-ga.c b/qemu-ga.c > index b747470..cbfd021 100644 > --- a/qemu-ga.c > +++ b/qemu-ga.c > @@ -40,8 +40,8 @@ > #else > #define QGA_VIRTIO_PATH_DEFAULT "\\\\.\\Global\\org.qemu.guest_agent.0" > #endif > -#define QGA_PIDFILE_DEFAULT "/var/run/qemu-ga.pid" > -#define QGA_STATEDIR_DEFAULT "/tmp" > +#define QGA_PIDFILE_DEFAULT CONFIG_QEMUGA_STATEDIR "/qemu-ga.pid" > +#define QGA_STATEDIR_DEFAULT CONFIG_QEMUGA_STATEDIR > #define QGA_SENTINEL_BYTE 0xFF > > struct GAState { > -- > 1.7.12.315.g682ce8b > >