]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: volume resize: wrap ceil in int, just to be sure
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 17:40:04 +0000 (19:40 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 17:40:04 +0000 (19:40 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Storage/RBDPlugin.pm

index c9e70a296b8c2e5261ef15ae8fbc0553d788f1fb..f45ad3f6b252da45c47b6bb1be22dc07fd952084 100644 (file)
@@ -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;
 }