]> git.proxmox.com Git - qemu-server.git/commitdiff
qmp client: increase guest fstrim timeout to 10 minutes
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 19 Aug 2022 07:01:24 +0000 (09:01 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 19 Aug 2022 07:40:04 +0000 (09:40 +0200)
like for other drive-related operations. The default of 3 seconds is
just not enough for large (or slow) disks.

Reported in the community forum:
https://forum.proxmox.com/threads/49543/

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QMPClient.pm

index 3a770da47d5148a57834171d6df24e12a7ab4b2f..b4cdcf620f141ba35fc90dc5d1d394fa666ac3f8 100644 (file)
@@ -127,6 +127,7 @@ sub cmd {
            $cmd->{execute} eq 'backup-cancel' ||
            $cmd->{execute} eq 'query-savevm' ||
            $cmd->{execute} eq 'delete-drive-snapshot' ||
+           $cmd->{execute} eq 'guest-fstrim' ||
            $cmd->{execute} eq 'guest-shutdown' ||
            $cmd->{execute} eq 'blockdev-snapshot-internal-sync' ||
            $cmd->{execute} eq 'blockdev-snapshot-delete-internal-sync' ||