From: Thomas Lamprecht Date: Tue, 6 Jun 2023 17:40:04 +0000 (+0200) Subject: rbd: volume resize: wrap ceil in int, just to be sure X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6d9aac955d3f84df7f31b94867e1ce6ba6b2a5a7;p=pve-storage.git rbd: volume resize: wrap ceil in int, just to be sure Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/Storage/RBDPlugin.pm b/src/PVE/Storage/RBDPlugin.pm index c9e70a2..f45ad3f 100644 --- a/src/PVE/Storage/RBDPlugin.pm +++ b/src/PVE/Storage/RBDPlugin.pm @@ -780,7 +780,7 @@ sub volume_resize { my ($vtype, $name, $vmid) = $class->parse_volname($volname); - my $cmd = $rbd_cmd->($scfg, $storeid, 'resize', '--size', ceil($size/1024/1024), $name); + my $cmd = $rbd_cmd->($scfg, $storeid, 'resize', '--size', int(ceil($size/1024/1024)), $name); run_rbd_command($cmd, errmsg => "rbd resize '$volname' error"); return undef; }