From 36e70b384e1360e47f473be54ef3c0599bf82844 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 27 May 2020 15:29:11 +0200 Subject: Cleanup: sqfs2tar: break up and simplify the repacking code - Move the xattr extraction and repacking to xattr.c - Don't on-the-fly delete the tar xattr list, use the function from libtar.a - Split minor tasks into static helper functions - creating a libtar xattr struct from libsqfs xattr data - finding a hard link entry from current path and inode number Signed-off-by: David Oberhollenzer --- include/tar.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/tar.h b/include/tar.h index af3c9ab..f235d08 100644 --- a/include/tar.h +++ b/include/tar.h @@ -137,6 +137,8 @@ int skip_entry(FILE *fp, sqfs_u64 size); int read_header(FILE *fp, tar_header_decoded_t *out); +void free_xattr_list(tar_xattr_t *list); + void clear_header(tar_header_decoded_t *hdr); /* -- cgit v1.2.3