]> git.proxmox.com Git - pve-container.git/commit
Rework snapshot code, has_feature
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 2 Mar 2016 13:03:50 +0000 (14:03 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Mar 2016 09:15:26 +0000 (10:15 +0100)
commit4518000bffe1a87b599cb8f631f659c77fb68226
treee0ac2f1519dfabf53a786f2fc8da1623df8899d0
parent67afe46efb6583662e6e9e0c263a162f75fdd524
Rework snapshot code, has_feature

Move snapshot_create, snapshot_delete and snapshot_rollback
into abstract pve-common/src/PVE/AbstractConfig.pm,
splitting LXC-specific parts into __snapshot_XX methods in
src/PVE/LXC/Config.pm.

check_freeze_needed, snapshot_prepare and snapshot_commit
are downgraded to private __snapshot_XX methods (in
PVE::AbstractConfig and PVE::LXC::Config).

has_feature is made an implementation of the abstract
has_feature, and thus moves into src/PVE/LXC/Config.pm
src/PVE/API2/LXC.pm
src/PVE/API2/LXC/Snapshot.pm
src/PVE/LXC.pm
src/PVE/LXC/Config.pm
src/PVE/VZDump/LXC.pm
src/test/snapshot-test.pm