[pve-devel] [PATCH] mountpount->mountpoint + call fix

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Aug 13 13:52:10 CEST 2015


---
 src/PVE/API2/LXC.pm | 2 +-
 src/PVE/LXC.pm      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index fc7580e..8acb0d4 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -322,7 +322,7 @@ __PACKAGE__->register_method({
 		PVE::LXCCreate::create_rootfs($storage_cfg, $storage, $volid, $vmid, $conf,
 					      $archive, $password, $restore);
 
-		$conf->{rootfs} = print_ct_mountpount({volume => $volid, size => $disksize });
+		$conf->{rootfs} = PVE::LXC::print_ct_mountpoint({volume => $volid, size => $disksize });
 
 		# set some defaults
 		$conf->{hostname} ||= "CT$vmid";
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 67546a5..aea85d8 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -750,7 +750,7 @@ sub parse_ct_mountpoint {
     return $res;
 }
 
-sub print_ct_mountpount {
+sub print_ct_mountpoint {
     my ($info) = @_;
 
     my $opts = '';
@@ -1669,7 +1669,7 @@ sub template_create {
 
     my $template_volid = PVE::Storage::vdisk_create_base($storecfg, $volid);
     $rootinfo->{volume} = $template_volid;
-    $conf->{rootfs} = print_ct_mountpount($rootinfo);
+    $conf->{rootfs} = print_ct_mountpoint($rootinfo);
 
     write_config($vmid, $conf);
 }
-- 
2.1.4





More information about the pve-devel mailing list