[pve-devel] [RFC pve-container 0/2] mountpoint handling with pct set/destroy

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Sep 1 16:33:52 CEST 2015

With qemu we can use 'qm set $ID -type$ID storage:size', so it
makes sense to similarly support 'pct set $ID -mp$ID storage:size,mp=someplace'

Here's at a functioning draft of a patch. There were a few issues to
iron out (print_ct_mountpoint didn't include mp=, since it was only
used for the rootfs till now this was okay before. The option to
create the directories is also debatable. (Not actually "optional" in
this patch atm...)

create_disks probably is better off moved to PVE::LXC for this
purpose, too.

The second patch adds support to delete owned vdisks in 'pct destroy',
otherwise the files are left lying around after destruction of the ct.

Wolfgang Bumiller (2):
  add support to add mountpoints with pct set
  destroy owned mountpoints on pct destroy

 src/PVE/API2/LXC.pm |  4 ++--
 src/PVE/LXC.pm      | 47 +++++++++++++++++++++++++++++++++++------------
 2 files changed, 37 insertions(+), 14 deletions(-)


More information about the pve-devel mailing list