[pve-devel] [PATCH REBASED v4 container 0/5] lxc clone/move volume patches

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Oct 17 12:58:52 CEST 2017


Changes since v3:
* Patch 2:
 - don't mount to /tmp due to permission issues
 - perform mount&copy with an unshared mount namespace
 - now requires the pve-common patch for PVE::Tools::run_fork
* Patch 3:
 - refactor locking as suggested by fabian
 - use remove_lock instead of manually removing $conf->{lock}
* Patch 4:
 - add is_volume_in_use_by_snapshots instead of a snapshot-only
   parameter for is_volume_in_use
* Patch 5:
 - dropped some unused parameters
 - improved locking
 - added some missing eval/warns

Wolfgang Bumiller (5):
  factor out disk allocation+formatting for reuse
  implement copy_volume
  use copy_volume for full clones
  config: is_volume_in_use: ability to search only snapshots
  add move_volume api call

 src/PVE/API2/LXC.pm   | 364 ++++++++++++++++++++++++++++++++++++--------------
 src/PVE/CLI/pct.pm    |   1 +
 src/PVE/LXC.pm        | 174 +++++++++++++++++++-----
 src/PVE/LXC/Config.pm |  24 +++-
 4 files changed, 427 insertions(+), 136 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list