]> git.proxmox.com Git - pve-container.git/commit
Refactor config-related methods into AbstractConfig
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Mar 2016 13:03:49 +0000 (14:03 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Mar 2016 09:15:01 +0000 (10:15 +0100)
commit67afe46efb6583662e6e9e0c263a162f75fdd524
treedaa0d174ed8957aa02f2a3cafcefe5208e2c587c
parentd02262048cbbe91ca8b12f98e3dc7bbab28e4c64
Refactor config-related methods into AbstractConfig

Move load_config, write_config, lock_config[_xx],
check_lock, has_lock, set_lock, remove_lock, is_template,
check_protection and config_file to pve-common/src/PVE/
AbstractConfig.pm since they are identical for LXC and
Qemu.

Move cfs_config_path and config_file_lock to implementation
of PVE::AbstractConfig in src/PVE/LXC/Config.pm

Drop create_config and replace it with write_config.
15 files changed:
src/PVE/API2/LXC.pm
src/PVE/API2/LXC/Config.pm
src/PVE/API2/LXC/Snapshot.pm
src/PVE/API2/LXC/Status.pm
src/PVE/CLI/pct.pm
src/PVE/LXC.pm
src/PVE/LXC/Config.pm [new file with mode: 0644]
src/PVE/LXC/Create.pm
src/PVE/LXC/Makefile
src/PVE/LXC/Migrate.pm
src/PVE/VZDump/LXC.pm
src/lxc-pve-poststop-hook
src/lxc-pve-prestart-hook
src/lxcnetaddbr
src/test/snapshot-test.pm