[pve-devel] [PATCH 2/3] update_lxc_config : code_clenaup
Alexandre DERUMIER
aderumier at odiso.com
Fri Aug 21 10:25:34 CEST 2015
>>you simply skip /dev/? I though we want to add a lxc.rootfs entry for them?
Currently we manage it only in mp.
I need to work on create rootfs code to handle this.
----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>, "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Vendredi 21 Août 2015 10:16:29
Objet: Re: [pve-devel] [PATCH 2/3] update_lxc_config : code_clenaup
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';
> my $volid = $mountpoint->{volume};
> return if !$volid || $volid =~ m|^/dev/.+|;
>
you simply skip /dev/? I though we want to add a lxc.rootfs entry for them?
More information about the pve-devel
mailing list