[pve-devel] [PATCH container 0/5] container: mount, unmount, push,	pull
    Wolfgang Bumiller 
    w.bumiller at proxmox.com
       
    Fri Feb 26 11:42:07 CET 2016
    
    
  
This series adds support to mount and unmount containers for
maintenance as well as pushing and pulling files to and from running
containers.
Additional changes:
PVE::LXC::set_lock/remove_lock/has_lock have been added.
They are subject to the currently ongoing snapshot and locking
refactorization. (set/remove are obvious, has_lock is for an exact
match if a lock type was specified or any lock if none was specified,
and as the name suggests returns a boolean value rather than throwing
an exception. This one's used to deal with the 'mounted'-lock in
`pct start/stop` (has_lock is part of the start/stop patch here atm.).
`pct mount` will mount and lock the container with a 'mounted' lock
since virtually all other actions which perform a lock should not
happend with the container mounted since there's nobody preventing the
host from manipulating files during such an action (such as a
suspend-mode vzdump, or while making a snapshot).
The lock stays until a `pct unmount` unmount successfully unmounted
the container after which it removes the lock. If the mountpoints are
busy and unmounting fails the lock will therefore NOT be removed.
Wolfgang Bumiller (5):
  Implement pct push/pull
  added set_lock and remove_lock
  Implement pct mount/unmount
  run_with_loopdev: reuse existing loopdevs
  allow starting and stopping a mounted container
 src/PVE/API2/LXC/Status.pm |   8 +-
 src/PVE/CLI/pct.pm         | 304 +++++++++++++++++++++++++++++++++++++++++++++
 src/PVE/LXC.pm             |  41 +++++-
 src/lxc-pve-prestart-hook  |   4 +-
 4 files changed, 353 insertions(+), 4 deletions(-)
-- 
2.1.4
    
    
More information about the pve-devel
mailing list