]> git.proxmox.com Git - pve-container.git/commitdiff
use COMMON_TAR_FLAGS from pve-storage
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 26 Jun 2017 11:55:02 +0000 (13:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 26 Jun 2017 12:01:56 +0000 (14:01 +0200)
src/PVE/LXC.pm
src/PVE/LXC/Create.pm
src/PVE/VZDump/LXC.pm

index 32b0318b18e40aae8f3415271d610802c25df7de..8d91b228a8ae5b3014dccf15316ee8a88b7a14a6 100644 (file)
@@ -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 = {};
index 4dd819dda8ce5262ae42815684cbaea4b6594ae3..1f21e06efcffaac27ee76eb091135e938784c8ab 100644 (file)
@@ -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
index fafffc6b8bf01fda30fe00fa48376219b2877697..45a851cb0a99f9e269202b30100933663dfbd8bb 100644 (file)
@@ -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