From 223dcc487cb0115d3ccb0dd6464d20346253a43e Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 11 Jun 2019 12:48:51 +0200 Subject: Move write_xattr to libsqfs.a Signed-off-by: David Oberhollenzer --- include/highlevel.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/highlevel.h b/include/highlevel.h index f61ad0b..4bc3b7a 100644 --- a/include/highlevel.h +++ b/include/highlevel.h @@ -67,4 +67,12 @@ tree_node_t *tree_node_from_inode(sqfs_inode_generic_t *inode, int deserialize_fstree(fstree_t *out, sqfs_super_t *super, compressor_t *cmp, int fd, int flags); +/* + Generate a squahfs xattr table from a file system tree. + + Returns 0 on success. Prints error messages to stderr on failure. + */ +int write_xattr(int outfd, fstree_t *fs, sqfs_super_t *super, + compressor_t *cmp); + #endif /* HIGHLEVEL_H */ -- cgit v1.2.3