From: Wolfgang Bumiller Date: Mon, 26 Jun 2017 11:55:02 +0000 (+0200) Subject: use COMMON_TAR_FLAGS from pve-storage X-Git-Url: https://git.proxmox.com/?p=pve-container.git;a=commitdiff_plain;h=5fa038abea8b993199f6e573069b6f6a59c15920 use COMMON_TAR_FLAGS from pve-storage --- diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index 32b0318..8d91b22 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -32,12 +32,6 @@ my $nodename = PVE::INotify::nodename(); my $cpuinfo= PVE::ProcFSTools::read_cpuinfo(); -our $COMMON_TAR_FLAGS = [ '--sparse', '--numeric-owner', '--acls', - '--xattrs', - '--xattrs-include=user.*', - '--xattrs-include=security.capability', - '--warning=no-xattr-write' ]; - sub config_list { my $vmlist = PVE::Cluster::get_vmlist(); my $res = {}; diff --git a/src/PVE/LXC/Create.pm b/src/PVE/LXC/Create.pm index 4dd819d..1f21e06 100644 --- a/src/PVE/LXC/Create.pm +++ b/src/PVE/LXC/Create.pm @@ -74,7 +74,7 @@ sub restore_archive { } my $cmd = [@$userns_cmd, 'tar', 'xpf', $tar_input_file, '--totals', - @$PVE::LXC::COMMON_TAR_FLAGS, + @PVE::Storage::Plugin::COMMON_TAR_FLAGS, '-C', $rootdir]; # skip-old-files doesn't have anything to do with time (old/new), but is diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm index fafffc6..45a851c 100644 --- a/src/PVE/VZDump/LXC.pm +++ b/src/PVE/VZDump/LXC.pm @@ -331,7 +331,7 @@ sub archive { my $userns_cmd = $task->{userns_cmd}; my $tar = [@$userns_cmd, 'tar', 'cpf', '-', '--totals', - @$PVE::LXC::COMMON_TAR_FLAGS, + @PVE::Storage::Plugin::COMMON_TAR_FLAGS, '--one-file-system', '--warning=no-file-ignored']; # note: --remove-files does not work because we do not