[pve-devel] [PATCH pve-container] create/restore: add --warning=no-xattr-write to tar
Wolfgang Bumiller
w.bumiller at proxmox.com
Fri Nov 6 12:39:01 CET 2015
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 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 4bcdcb4..23fb29e 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -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);
--
2.1.4
More information about the pve-devel
mailing list