summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-01 16:03:59 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-01 16:23:07 +0200
commitcccbd5aa139b8e0cac233f317cb3e7252daae0d9 (patch)
treed46867fe3bf78a3371ef3c6bbebcdab1d65435f7 /include
parentacfef038be1db770c33476bbb33b53558ddabc91 (diff)
Add ability to write_tar_header to embedd extended attributes
This commit patches the tar writer to generate a PAX header with SCHILY xattr key/value pairs if requested. The Schily format is used for two reasons: - It is simple - It is apparently more widely supported than the libarchive format Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/tar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tar.h b/include/tar.h
index cb56ff0..44db5fe 100644
--- a/include/tar.h
+++ b/include/tar.h
@@ -113,7 +113,8 @@ typedef struct {
headers need to be generated.
*/
int write_tar_header(int fd, const struct stat *sb, const char *name,
- const char *slink_target, unsigned int counter);
+ const char *slink_target, const tar_xattr_t *xattr,
+ unsigned int counter);
/* calcuate and skip the zero padding */
int skip_padding(int fd, uint64_t size);