[pve-devel] [PATCH pve-container] fix bug #752: correct size from mount point
Wolfgang Link
w.link at proxmox.com
Mon Oct 12 11:55:25 CEST 2015
---
src/PVE/API2/LXC/Config.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/API2/LXC/Config.pm b/src/PVE/API2/LXC/Config.pm
index cd1a9cd..d43489f 100644
--- a/src/PVE/API2/LXC/Config.pm
+++ b/src/PVE/API2/LXC/Config.pm
@@ -261,8 +261,7 @@ __PACKAGE__->register_method({
# FIXME: volume_resize doesn't do anything if $running=1?
PVE::Storage::volume_resize($storage_cfg, $volid, $newsize, 0);
- $mp->{size} = $newsize/1024; # kB
+ $mp->{size} = $newsize;
$conf->{$disk} = PVE::LXC::print_ct_mountpoint($mp, $disk eq 'rootfs');
PVE::LXC::write_config($vmid, $conf);
--
2.1.4
More information about the pve-devel
mailing list