From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkji4-0001KF-AS for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:26:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qkji2-0001RV-LA for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:26:08 -0400 Received: from e5.ny.us.ibm.com ([32.97.182.145]:48649) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkji2-0001RA-Hb for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:26:06 -0400 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by e5.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p6NKv3SR022553 for ; Sat, 23 Jul 2011 16:57:03 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6NLQ5ro131236 for ; Sat, 23 Jul 2011 17:26:05 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6NLQ4ZP031056 for ; Sat, 23 Jul 2011 18:26:04 -0300 From: Anthony Liguori Date: Sat, 23 Jul 2011 16:26:01 -0500 Message-Id: <1311456361-14162-2-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1311456361-14162-1-git-send-email-aliguori@us.ibm.com> References: <1311456361-14162-1-git-send-email-aliguori@us.ibm.com> Subject: [Qemu-devel] [PATCH 2/2] guest-agent: only enable FSFREEZE when it's supported by the kernel List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Mike Roth , Alex Graf Signed-off-by: Anthony Liguori --- 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 -#if defined(CONFIG_FSFREEZE) + +#if defined(__linux__) #include #include + +#if defined(__linux__) && defined(FIFREEZE) +#define CONFIG_FSFREEZE #endif +#endif + #include #include #include "qga/guest-agent-core.h" -- 1.7.4.1