[pve-devel] [PATCH 8/8] add setup_blockdev_mounts to pve-mount hook

Dietmar Maurer dietmar at proxmox.com
Sat Aug 15 16:55:34 CEST 2015



> On August 15, 2015 at 3:30 PM Alexandre DERUMIER <aderumier at odiso.com> wrote:
> 
> 
> >>why do you use the raw lxc config here (instead of pve $conf)? 
> 
> I don't known why, but I have problems to read/parse storage.cfg  from the
> hook.

But you do niot need to parse - data is already available:

> > $self->setup_init($conf); 
> > $self->setup_blockdev($vmid); 
> > + $self->setup_blockdev_mounts($vmid); 

you can simply pass the $conf variable to your functions:

$self->setup_init($conf); 
$self->setup_blockdev($conf, $vmid); 
$self->setup_blockdev_mounts($conf, $vmid); 

or do I miss something?




More information about the pve-devel mailing list