]>
git.proxmox.com Git - pve-manager.git/blob - PVE/VZDump/Plugin.pm
989135222f2f90295b7cdb3f1b3afb6adf3fbaa6
1 package PVE
::VZDump
::Plugin
;
8 my ($self, $logfd) = @_;
10 $self->{logfd
} = $logfd;
14 my ($self, $cmdstr, %param) = @_;
16 return PVE
::VZDump
::run_command
($self->{logfd
}, $cmdstr, %param);
20 my ($self, $cmdstr, %param) = @_;
23 eval { $res = $self->cmd($cmdstr, %param); };
24 $self->logerr ($@) if $@;
29 my ($self, $msg) = @_;
31 PVE
::VZDump
::debugmsg
('info', $msg, $self->{logfd
}, 0);
35 my ($self, $msg) = @_;
37 PVE
::VZDump
::debugmsg
('err', $msg, $self->{logfd
}, 0);
47 return [ keys %{$self->{vmlist
}} ] if $self->{vmlist
};
53 my ($self, $vmid) = @_;
55 die "internal error"; # implement in subclass
59 my ($self, $task, $vmid, $mode) = @_;
61 die "internal error"; # implement in subclass
65 my ($self, $vmid) = @_;
67 die "internal error"; # implement in subclass
71 my ($self, $vmid) = @_;
73 die "internal error"; # implement in subclass
77 my ($self, $task, $vmid) = @_;
79 die "internal error"; # implement in subclass
83 my ($self, $task, $vmid) = @_;
85 die "internal error"; # implement in subclass
89 my ($self, $task, $vmid) = @_;
91 die "internal error"; # implement in subclass
95 my ($self, $task, $vmid) = @_;
97 die "internal error"; # implement in subclass
101 my ($self, $task, $vmid) = @_;
103 die "internal error"; # implement in subclass
106 sub copy_data_phase2
{
107 my ($self, $task, $vmid) = @_;
109 die "internal error"; # implement in subclass
113 my ($self, $task, $vmid) = @_;
115 die "internal error"; # implement in subclass
119 my ($self, $task, $vmid, $filename, $comp) = @_;
121 die "internal error"; # implement in subclass
125 my ($self, $task, $vmid) = @_;
127 die "internal error"; # implement in subclass