[pve-devel] [RFC pve-container 1/3] cleanup
Wolfgang Bumiller
w.bumiller at proxmox.com
Wed Sep 16 16:42:02 CEST 2015
---
src/PVE/VZDump/LXC.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 569c4f8..21dc1ce 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -238,9 +238,10 @@ sub assemble {
sub archive {
my ($self, $task, $vmid, $filename, $comp) = @_;
+ my $disks = $task->{disks};
+
if ($task->{mode} eq 'stop') {
my $rootdir = $default_mount_point;
- my $disks = $task->{disks};
my $storage_cfg = $self->{storecfg};
foreach my $disk (@$disks) {
$disk->{dir} = "${rootdir}$disk->{mp}";
@@ -272,7 +273,6 @@ sub archive {
push @$tar, map { "--exclude=.$_" } @{$self->{vzdump}->{findexcl}};
# add every enabled mountpoint (since we use --one-file-system)
- my $disks = $task->{disks};
# mp already starts with a / so we only need to add the dot
push @$tar, map { '.' . $_->{mp} } @$disks;
--
2.1.4
More information about the pve-devel
mailing list