]> git.proxmox.com Git - pve-container.git/commitdiff
create/restore: add --warning=no-xattr-write to tar
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 6 Nov 2015 11:39:01 +0000 (12:39 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Nov 2015 15:18:04 +0000 (16:18 +0100)
Otherwise filesystems without ACL or xattr support will
cause tar to warn about every extracted file. (Eg. ZFS by
default has acltype=noacl).

xattr-write covers both xattrs and ACLs.

src/PVE/LXC.pm

index 4bcdcb473abe069cbd9e5dae98bde279f10c540c..23fb29e2a1cc8bbffc35c86acec012371b554469 100644 (file)
@@ -29,7 +29,8 @@ my $cpuinfo= PVE::ProcFSTools::read_cpuinfo();
 our $COMMON_TAR_FLAGS = [ '--totals', '--sparse', '--numeric-owner', '--acls',
                           '--xattrs',
                           '--xattrs-include=user.*',
-                          '--xattrs-include=security.capability' ];
+                          '--xattrs-include=security.capability',
+                          '--warning=no-xattr-write' ];
 
 cfs_register_file('/lxc/', \&parse_pct_config, \&write_pct_config);