[pve-devel] [PATCH pve-container 4/4] Added pct mount

Dietmar Maurer dietmar at proxmox.com
Fri Nov 20 15:10:25 CET 2015


> +	my $code = sub {
> +	    my $conf = PVE::LXC::load_config($vmid);
> +	    PVE::Cluster::log_msg('info', $authuser, "mount CT $vmid: --rootdir
> $rootdir");
> +
> +	    my $realcmd = sub {
> +		my $vollist = PVE::LXC::get_vm_volumes($conf);
> +		my $loopdevlist = PVE::LXC::get_vm_volumes($conf, 'rootfs');
> +
> +		PVE::Storage::activate_volumes($storage_cfg, $vollist);
> +		PVE::LXC::foreach_mountpoint($conf, $setup_mountpoint);
> +	    };
> +
> +	    return $rpcenv->fork_worker('resize', $vmid, $authuser, $realcmd);

why 'resize'? And why do you fork a worker at all?




More information about the pve-devel mailing list