rbd: remove unused size conversion function
since the json output gives the sizes in bytes, we do not need to convert anymore Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
89a8800bc3
commit
c093e93b28
@ -13,13 +13,6 @@ use JSON;
|
|||||||
|
|
||||||
use base qw(PVE::Storage::Plugin);
|
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 $get_parent_image_name = sub {
|
||||||
my ($parent) = @_;
|
my ($parent) = @_;
|
||||||
return undef if !$parent;
|
return undef if !$parent;
|
||||||
|
|||||||
Reference in New Issue
Block a user