]> git.proxmox.com Git - qemu.git/commitdiff
QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Wed, 7 Aug 2013 15:40:39 +0000 (11:40 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 9 Sep 2013 19:17:57 +0000 (14:17 -0500)
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 <tomoki.sekiyama@hds.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
QMP/qemu-ga-client

index 46676c3750407761842b4a6ec7022cd844328882..b5f7e7c5ffbf7f75c143c6a1c537abee89072138 100755 (executable)
@@ -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)