]> git.proxmox.com Git - pve-container.git/commit
added set_lock and remove_lock
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 26 Feb 2016 10:42:09 +0000 (11:42 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 27 Feb 2016 13:22:17 +0000 (14:22 +0100)
commit846a66b0780eef42bcc79df3670df29553db8dc1
tree6beb1234ba90cf8344b0a82064ddef0a833fb2d1
parentb95bf64b719c9a4c15bbccd33fde778aa5518840
added set_lock and remove_lock

Since set_lock does the implied lock_config() and
load_config() it also returns the loaded config afterwards
as there is no other meaningful return value defined for
this function since failure to apply the lock throws an
exception.

remove_lock() also takes a lock name in order to make sure
only the correct lock is being removed.
src/PVE/LXC.pm