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

Wolfgang Bumiller w.bumiller at proxmox.com
Fri Nov 20 16:33:25 CET 2015


> On November 20, 2015 at 3:10 PM Dietmar Maurer <dietmar at proxmox.com> wrote:
> 
> 
> > +	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'?

copypasta

> And why do you fork a worker at all?

so timeouts in network storages don't block the main worker




More information about the pve-devel mailing list