[pve-devel] [PATCH manager 01/12] vzdump: remove deprecated size parameter

Fabian Ebner f.ebner at proxmox.com
Fri Jun 4 15:49:35 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 PVE/API2/VZDump.pm  | 2 --
 PVE/VZDump.pm       | 4 ----
 configs/vzdump.conf | 1 -
 3 files changed, 7 deletions(-)

diff --git a/PVE/API2/VZDump.pm b/PVE/API2/VZDump.pm
index 4093d82f..10847260 100644
--- a/PVE/API2/VZDump.pm
+++ b/PVE/API2/VZDump.pm
@@ -230,8 +230,6 @@ __PACKAGE__->register_method ({
 	    delete $res->{pool};
 	}
 
-	delete $res->{size}; # deprecated, to be dropped with PVE 7.0
-
 	return $res;
     }});
 
diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index 40ce01dd..8213ed66 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -1241,10 +1241,6 @@ sub verify_vzdump_parameters {
 
     $param->{all} = 1 if (defined($param->{exclude}) && !$param->{pool});
 
-    warn "option 'size' is deprecated and will be removed in a future " .
-	 "release, please update your script/configuration!\n"
-	if defined($param->{size});
-
     return if !$check_missing;
 
     raise_param_exc({ vmid => "property is missing"})
diff --git a/configs/vzdump.conf b/configs/vzdump.conf
index f69b69c4..d14942dd 100644
--- a/configs/vzdump.conf
+++ b/configs/vzdump.conf
@@ -8,7 +8,6 @@
 #ionice: PRI
 #lockwait: MINUTES
 #stopwait: MINUTES
-#size: MB
 #stdexcludes: BOOLEAN
 #mailto: ADDRESSLIST
 #maxfiles: N
-- 
2.30.2






More information about the pve-devel mailing list