[pve-devel] [PATCH storage 3/3] Revert "free: added snapshot parameter"

Wolfgang Bumiller w.bumiller at proxmox.com
Tue May 23 12:30:20 CEST 2017


This reverts commit a26e1abc70e087a7f42e8197ef080222990a680f.
---
Not required anymore.

 PVE/API2/Storage/Content.pm | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm
index 3449e35..daf8b95 100644
--- a/PVE/API2/Storage/Content.pm
+++ b/PVE/API2/Storage/Content.pm
@@ -258,12 +258,6 @@ __PACKAGE__->register_method ({
 		type => 'string',
 		completion => \&PVE::Storage::complete_volume,
 	    },
-	    snapshot => {
-		description => "Delete a snapshot instead of the entire disk.",
-		type => 'string',
-		pattern => qr/[a-z0-9_\-]{1,40}/,
-		optional => 1,
-	    }
 	},
     },
     returns => { type => 'null' },
@@ -285,12 +279,7 @@ __PACKAGE__->register_method ({
 	    $rpcenv->check($authuser, "/storage/$storeid", ['Datastore.Allocate']);
 	}
 
-	my $snapshot = $param->{snapshot};
-	if (defined($snapshot)) {
-	    PVE::Storage::volume_snapshot_delete($cfg, $volid, $snapshot, 0);
-	} else {
-	    PVE::Storage::vdisk_free($cfg, $volid);
-	}
+	PVE::Storage::vdisk_free ($cfg, $volid);
 
 	return undef;
     }});
-- 
2.11.0





More information about the pve-devel mailing list