From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQk7a-0006S4-Cs for qemu-devel@nongnu.org; Fri, 12 Apr 2013 15:59:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQk7S-0007Ar-W4 for qemu-devel@nongnu.org; Fri, 12 Apr 2013 15:58:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQk7S-0007AJ-Np for qemu-devel@nongnu.org; Fri, 12 Apr 2013 15:58:46 -0400 From: Tomoki Sekiyama Date: Fri, 12 Apr 2013 16:02:12 -0400 Message-ID: <20130412200212.20814.98501.stgit@corona> In-Reply-To: <20130412200139.20814.71718.stgit@corona> References: <20130412200139.20814.71718.stgit@corona> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [RFC PATCH v2 10/11] QMP/qemu-ga-client: make timeout longer for guest-fsfreeze-freeze command Reply-To: tomoki.sekiyama@hds.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, lcapitulino@redhat.com, vrozenfe@redhat.com, Tomoki Sekiyama , mdroth@linux.vnet.ibm.com 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)