From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ7MR-0000VK-Tz for qemu-devel@nongnu.org; Mon, 09 Sep 2013 15:43:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJ7MM-0005ye-K6 for qemu-devel@nongnu.org; Mon, 09 Sep 2013 15:42:59 -0400 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:34832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJ7MM-0005y8-7N for qemu-devel@nongnu.org; Mon, 09 Sep 2013 15:42:54 -0400 Received: by mail-ob0-f178.google.com with SMTP id ef5so6345692obb.37 for ; Mon, 09 Sep 2013 12:42:53 -0700 (PDT) Sender: fluxion From: Michael Roth Date: Mon, 9 Sep 2013 14:41:41 -0500 Message-Id: <1378755701-2051-11-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1378755701-2051-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1378755701-2051-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 10/10] QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, tomoki.sekiyama@hds.com From: Tomoki Sekiyama guest-fsfreeze-freeze command can take longer than 3 seconds when heavy disk I/O is running. To avoid unexpected timeout, this changes the timeout to 60 seconds (timeout of pre-commit phase of VSS). Signed-off-by: Tomoki Sekiyama Reviewed-by: Paolo Bonzini Reviewed-by: Laszlo Ersek Reviewed-by: Michael Roth Signed-off-by: Michael Roth --- QMP/qemu-ga-client | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QMP/qemu-ga-client b/QMP/qemu-ga-client index 46676c3..b5f7e7c 100755 --- a/QMP/qemu-ga-client +++ b/QMP/qemu-ga-client @@ -267,7 +267,9 @@ def main(address, cmd, args): print('Hint: qemu is not running?') sys.exit(1) - if cmd != 'ping': + if cmd == 'fsfreeze' and args[0] == 'freeze': + client.sync(60) + elif cmd != 'ping': client.sync() globals()['_cmd_' + cmd](client, args) -- 1.7.9.5