From 8d039f7bd84ce8cbbbe9ba5677f5a353d6224b66 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 3 Feb 2017 14:26:15 -0600 Subject: libtar: support backing up and restoring new Android user.* xattr Support for backing up and restoring user.default, user.inode_cache, and user.inode_code_cache xattrs introduced in Android 7.x Change-Id: I6e0aa7fc9cd30ed004ef28ebb58d60a82e518123 --- libtar/libtar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libtar/libtar.h') diff --git a/libtar/libtar.h b/libtar/libtar.h index 4d921247b..2d0a3d3fc 100644 --- a/libtar/libtar.h +++ b/libtar/libtar.h @@ -74,6 +74,9 @@ struct tar_header #endif int has_cap_data; struct vfs_cap_data cap_data; + int has_user_default; + int has_user_cache; + int has_user_code_cache; }; @@ -120,6 +123,7 @@ TAR; #define TAR_USE_NUMERIC_ID 256 /* favor numeric owner over names */ #define TAR_STORE_EXT4_POL 512 /* store ext4 crypto policy */ #define TAR_STORE_POSIX_CAP 1024 /* store posix file capabilities */ +#define TAR_STORE_ANDROID_USER_XATTR 2048 /* store android user.* xattr */ /* this is obsolete - it's here for backwards-compatibility only */ #define TAR_IGNORE_MAGIC 0 -- cgit v1.2.3