From patchwork Thu Feb 14 06:10:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomoki Sekiyama X-Patchwork-Id: 220380 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 05A902C0291 for ; Thu, 14 Feb 2013 18:01:10 +1100 (EST) Received: from localhost ([::1]:37644 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5s2k-0000Vx-4O for incoming@patchwork.ozlabs.org; Thu, 14 Feb 2013 01:11:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5s29-0007Yz-H3 for qemu-devel@nongnu.org; Thu, 14 Feb 2013 01:11:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5s25-00079u-IT for qemu-devel@nongnu.org; Thu, 14 Feb 2013 01:11:01 -0500 Received: from mail4.hitachi.co.jp ([133.145.228.5]:44034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5s25-000795-9L for qemu-devel@nongnu.org; Thu, 14 Feb 2013 01:10:57 -0500 Received: from mlsv1.hitachi.co.jp (unknown [133.144.234.166]) by mail4.hitachi.co.jp (Postfix) with ESMTP id 623B533CC2; Thu, 14 Feb 2013 15:10:56 +0900 (JST) Received: from mfilter06.hitachi.co.jp by mlsv1.hitachi.co.jp (8.13.1/8.13.1) id r1E6Au3R028433; Thu, 14 Feb 2013 15:10:56 +0900 Received: from vshuts01.hitachi.co.jp (vshuts01.hitachi.co.jp [10.201.6.83]) by mfilter06.hitachi.co.jp (Switch-3.3.4/Switch-3.3.4) with ESMTP id r1E6ArMu029762; Thu, 14 Feb 2013 15:10:55 +0900 Received: from hsdlmain.sdl.hitachi.co.jp (unknown [133.144.14.194]) by vshuts01.hitachi.co.jp (Postfix) with ESMTP id 95DED2F007D; Thu, 14 Feb 2013 15:10:55 +0900 (JST) Received: from hsdlvgate2.sdl.hitachi.co.jp by hsdlmain.sdl.hitachi.co.jp (8.13.8/3.7W11021512) id r1E6AtsH032533; Thu, 14 Feb 2013 15:10:55 +0900 X-AuditID: 85900ec0-d7c7db900000152f-00-511c7fef2697 Received: from sdl99w.sdl.hitachi.co.jp (sdl99w.sdl.hitachi.co.jp [133.144.14.250]) by hsdlvgate2.sdl.hitachi.co.jp (Symantec Mail Security) with ESMTP id 4588C236561; Thu, 14 Feb 2013 15:10:55 +0900 (JST) Received: from melchior2.sdl.hitachi.co.jp (unknown [10.232.28.238]) by sdl99w.sdl.hitachi.co.jp (Postfix) with ESMTP id CBA5453C1F5; Thu, 14 Feb 2013 15:12:23 +0900 (JST) To: qemu-devel@nongnu.org From: Tomoki Sekiyama Date: Thu, 14 Feb 2013 15:10:54 +0900 Message-ID: <20130214061054.15062.65156.stgit@melchior2.sdl.hitachi.co.jp> In-Reply-To: <20130214061026.15062.54597.stgit@melchior2.sdl.hitachi.co.jp> References: <20130214061026.15062.54597.stgit@melchior2.sdl.hitachi.co.jp> User-Agent: StGit/0.16 MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 133.145.228.5 Cc: mdroth@linux.vnet.ibm.com, dle-discus@lists.sourceforge.jp, vrozenfe@redhat.com, lcapitulino@redhat.com Subject: [Qemu-devel] [RFC PATCH 09/10] QMP/qemu-ga-client: make timeout longer for guest-fsfreeze-freeze command X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 30 seconds. Signed-off-by: Tomoki Sekiyama --- 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..1f7011a 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(30) + elif cmd != 'ping': client.sync() globals()['_cmd_' + cmd](client, args)