[pve-devel] [PATCH 2/3] update_lxc_config : code_clenaup

Dietmar Maurer dietmar at proxmox.com
Fri Aug 21 10:07:41 CEST 2015


applied, with cleanups

On 08/21/2015 05:14 AM, Alexandre Derumier wrote:
> - use volid_path sub
> - we now manage only rootfs, subvol mount.entry will be manage in mount hook
>
> Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
> ---
>   src/PVE/LXC.pm | 33 +++------------------------------
>   1 file changed, 3 insertions(+), 30 deletions(-)
>
> diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
> index fb54069..aaeee7f 100644
> --- a/src/PVE/LXC.pm
> +++ b/src/PVE/LXC.pm
> @@ -1002,39 +1002,12 @@ sub update_lxc_config {
>       PVE::LXC::foreach_mountpoint($conf, sub {
>   	my ($ms, $mountpoint) = @_;
>   
> +	return if $ms ne 'rootfs';
>
A loop which skips almost everything is quite strange ...




More information about the pve-devel mailing list