[pve-devel] [PATCH v2 pve-container 2/4] add support to add mountpoints with pct set
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Sep 10 20:06:19 CEST 2015
Ah, missed that. That was from back when mounting created the filesystems, not
it
only creates mountpoint directories which could instead just always be done in
mount_all when starting the container rather than with a flag?
> On September 10, 2015 at 11:38 AM Dietmar Maurer <dietmar at proxmox.com> wrote:
>
>
> what is the purpose of that mount_all/umount all sequence?
>
> > +
> > + if (@$new_disks) {
> > + my $storage_cfg = PVE::Storage::config();
> > + PVE::API2::LXC::create_disks($storage_cfg, $vmid, $conf, $conf);
> > + mount_all($vmid, $storage_cfg, $conf, $new_disks, 1);
> > + umount_all($vmid, $storage_cfg, $conf, 0);
> > + }
> > }
More information about the pve-devel
mailing list