projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1167bfd
)
guest-agent: only enable FSFREEZE when it's supported by the kernel
author
Anthony Liguori
<aliguori@us.ibm.com>
Sat, 23 Jul 2011 21:14:37 +0000
(16:14 -0500)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Sat, 23 Jul 2011 23:24:05 +0000
(18:24 -0500)
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qga/guest-agent-commands.c
patch
|
blob
|
history
diff --git
a/qga/guest-agent-commands.c
b/qga/guest-agent-commands.c
index 624972e84ccd1678b8881f84cbff2b43b15e298d..30c406848f5951be23aa3b3e912c6e2fa602a0b5 100644
(file)
--- 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"