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

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Sep 6 15:22:49 CEST 2018


On 9/6/18 11:35 AM, Dominik Csapak wrote:
> 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;
> 

applied, but used 'rbd: remove unused size conversion function' as subject, thanks!




More information about the pve-devel mailing list