* [Qemu-devel] [PATCH] guest-agent: only enable FSFREEZE when it's supported by the kernel
@ 2011-07-23 21:15 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2011-07-23 21:15 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori, Mike Roth, Alex Graf
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
---
qga/guest-agent-commands.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/qga/guest-agent-commands.c b/qga/guest-agent-commands.c
index 624972e..30c4068 100644
--- a/qga/guest-agent-commands.c
+++ b/qga/guest-agent-commands.c
@@ -10,15 +10,17 @@
* See the COPYING file in the top-level directory.
*/
-#if defined(__linux__)
-#define CONFIG_FSFREEZE
-#endif
-
#include <glib.h>
-#if defined(CONFIG_FSFREEZE)
+
+#if defined(__linux__)
#include <mntent.h>
#include <linux/fs.h>
+
+#if defined(__linux__) && defined(FIFREEZE)
+#define CONFIG_FSFREEZE
#endif
+#endif
+
#include <sys/types.h>
#include <sys/ioctl.h>
#include "qga/guest-agent-core.h"
--
1.7.4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-23 21:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-23 21:15 [Qemu-devel] [PATCH] guest-agent: only enable FSFREEZE when it's supported by the kernel Anthony Liguori
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).