From: Luiz Capitulino <lcapitulino@redhat.com>
To: mdroth@linux.vnet.ibm.com
Cc: pbonzini@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 3/3] qemu-ga: use state dir from CONFIG_QEMUGA_STATEDIR
Date: Wed, 3 Oct 2012 14:24:19 -0300 [thread overview]
Message-ID: <1349285059-5415-4-git-send-email-lcapitulino@redhat.com> (raw)
In-Reply-To: <1349285059-5415-1-git-send-email-lcapitulino@redhat.com>
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 <lcapitulino@redhat.com>
---
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
next prev parent reply other threads:[~2012-10-03 17:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-03 17:24 [Qemu-devel] [PATCH 0/3] qemu-ga: change default state dir to /var/run Luiz Capitulino
2012-10-03 17:24 ` [Qemu-devel] [PATCH 1/3] configure: guest_agent -> qemuga Luiz Capitulino
2012-10-03 18:08 ` Michael Roth
2012-10-03 17:24 ` [Qemu-devel] [PATCH 2/3] configure: add --guest-agent-statedir Luiz Capitulino
2012-10-03 18:13 ` Michael Roth
2012-10-03 18:23 ` Michael Roth
2012-10-03 18:32 ` Paolo Bonzini
2012-10-03 18:53 ` Luiz Capitulino
2012-10-03 18:56 ` Paolo Bonzini
2012-10-03 19:00 ` Luiz Capitulino
2012-10-03 17:24 ` Luiz Capitulino [this message]
2012-10-03 18:20 ` [Qemu-devel] [PATCH 3/3] qemu-ga: use state dir from CONFIG_QEMUGA_STATEDIR Michael Roth
2012-10-03 18:33 ` [Qemu-devel] [PATCH 0/3] qemu-ga: change default state dir to /var/run Paolo Bonzini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1349285059-5415-4-git-send-email-lcapitulino@redhat.com \
--to=lcapitulino@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).