[pve-devel] [PATCH storage v2 2/2] remove unused function

Dominik Csapak d.csapak at proxmox.com
Thu Sep 6 11:35:43 CEST 2018


since the json output gives the sizes in bytes, we do not
need to convert anymore

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
new in v2

 PVE/Storage/RBDPlugin.pm | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 6c0e617..c3b0cd9 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -13,13 +13,6 @@ use JSON;
 
 use base qw(PVE::Storage::Plugin);
 
-my $rbd_unittobytes = {
-    "k"  => 1024,
-    "M"  => 1024*1024,
-    "G"  => 1024*1024*1024,
-    "T"  => 1024*1024*1024*1024,
-};
-
 my $get_parent_image_name = sub {
     my ($parent) = @_;
     return undef if !$parent;
-- 
2.11.0





More information about the pve-devel mailing list