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 --- bin/sqfs2tar/sqfs2tar.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/sqfs2tar/sqfs2tar.h') diff --git a/bin/sqfs2tar/sqfs2tar.h b/bin/sqfs2tar/sqfs2tar.h index afd267e..47d82ef 100644 --- a/bin/sqfs2tar/sqfs2tar.h +++ b/bin/sqfs2tar/sqfs2tar.h @@ -42,6 +42,10 @@ extern FILE *out_file; char *assemble_tar_path(char *name, bool is_dir); +/* xattr.c */ +int get_xattrs(const char *name, const sqfs_inode_generic_t *inode, + tar_xattr_t **out); + /* write_tree.c */ int write_tree_dfs(const sqfs_tree_node_t *n); -- cgit v1.2.3