diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 16:03:59 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 16:23:07 +0200 |
commit | cccbd5aa139b8e0cac233f317cb3e7252daae0d9 (patch) | |
tree | d46867fe3bf78a3371ef3c6bbebcdab1d65435f7 /include/tar.h | |
parent | acfef038be1db770c33476bbb33b53558ddabc91 (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/tar.h')
-rw-r--r-- | include/tar.h | 3 |
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); |