]> git.proxmox.com Git - qemu-server.git/commitdiff
remove left-over mentions of to-be-dropped, outdated QMP commands
authorFiona Ebner <f.ebner@proxmox.com>
Wed, 24 May 2023 13:56:49 +0000 (15:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jun 2023 17:36:45 +0000 (19:36 +0200)
The commands snapshot-drive and delete-drive-snapshot have been unused
by qemu-server since commit eba2b721 ("use qemu's blockdev-snapshot
functions") and are now going to be dropped in our QEMU builds too, so
get rid of these left-overs.

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

index 3bc5eaa1bc15505c46ba90d9824ef6a42d4268a4..ef5c19b3302f2f65b28f66651d7ac9e3c61765d2 100644 (file)
@@ -126,12 +126,10 @@ sub cmd {
            $cmd->{execute} eq 'block-job-complete' ||
            $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' ||
-           $cmd->{execute} eq 'snapshot-drive'
+           $cmd->{execute} eq 'blockdev-snapshot-delete-internal-sync'
         ) {
            $timeout = 10*60; # 10 mins ?
        } else {
index d26b4223f3fe47fee2e5332f144c7275ca0c6018..dd69fa316b73bc27ef93e3228c7553691561b42a 100644 (file)
@@ -328,9 +328,6 @@ sub qmp_cmd {
     my ($vmid, $cmd) = @_;
 
     my $exec = $cmd->{execute};
-    if ($exec eq "delete-drive-snapshot") {
-       return;
-    }
     if ($exec eq "guest-ping") {
        die "guest-ping disabled\n"
            if !$vm_mon->{guest_ping};