From: Tomoki Sekiyama Date: Wed, 7 Aug 2013 15:40:39 +0000 (-0400) Subject: QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e2682db06a6c218f149ff990959c31f3b3d82003;p=qemu.git QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command 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 --- diff --git a/QMP/qemu-ga-client b/QMP/qemu-ga-client index 46676c3750..b5f7e7c5ff 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)