[pve-devel] [PATCH 2/3] Fix disksize assign size when recover
Wolfgang Link
w.link at proxmox.com
Fri Jul 31 11:47:39 CEST 2015
---
src/PVE/API2/LXC.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 4dfb582..3e4e862 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -278,6 +278,8 @@ __PACKAGE__->register_method({
PVE::Cluster::check_cfs_quorum();
+ $param->{disk} = $conf->{'pve.disksize'} if !$param->{disk} && $restore;
+
PVE::LXCCreate::create_rootfs($storage_cfg, $storage, $param->{disk}, $vmid, $conf,
$archive, $password, $restore);
};
--
2.1.4
More information about the pve-devel
mailing list