]> git.proxmox.com Git - qemu-server.git/commit - test/snapshot-test.pm
Rework snapshot code, has_feature
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 7 Mar 2016 11:41:13 +0000 (12:41 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Mar 2016 10:42:37 +0000 (11:42 +0100)
commitb2c9558da89a4d1fe46dce66c9e0a73c467b55e6
treeb472a7a77cb578fa53bf749f1ff016eb6c27e537
parentffda963f4645990d94e96c2737b641e499e81ab3
Rework snapshot code, has_feature

Drop snapshot_create, snapshot_delete and snapshot_rollback
in favour of PVE::AbstractConfig. Qemu-specific parts are
implemented in __snapshot_XX methods in PVE::QemuConfig.

has_feature is made an implementation of the abstract
has_feature, and thus moves to PVE::QemuConfig.

Note: a new hook method needed to be introduced to be called
before creating a volume snapshot, after creating a volume
snapshot, and after unfreezing the guestfs after creating a
volume snapshot. The base method in PVE::AbstractConfig is a
noop, the implemention in PVE::QemuConfig runs the necessary
Qemu monitor commands.
PVE/API2/Qemu.pm
PVE/QemuConfig.pm
PVE/QemuServer.pm
test/snapshot-expected/delete/qemu-server/202.conf
test/snapshot-test.pm