From 5e4d53c713d3f01ae2d24a7d2311d65761b143dc Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 28 Sep 2019 21:04:20 +0200 Subject: Move fstree_from_dir to gensquashfs code It's actually the only user and the dir-scanner xattr code is going to get a lot closer integerated with libsquashfs. Signed-off-by: David Oberhollenzer --- include/fstree.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'include') diff --git a/include/fstree.h b/include/fstree.h index 337b598..110ad1f 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -26,14 +26,6 @@ typedef struct dir_info_t dir_info_t; typedef struct fstree_t fstree_t; typedef struct tree_xattr_t tree_xattr_t; -enum { - DIR_SCAN_KEEP_TIME = 0x01, - - DIR_SCAN_ONE_FILESYSTEM = 0x02, - - DIR_SCAN_READ_XATTR = 0x04, -}; - /* Encapsulates a set of key-value pairs attached to a tree_node_t */ struct tree_xattr_t { /* Number of key-value pairs */ @@ -230,13 +222,6 @@ void fstree_xattr_deduplicate(fstree_t *fs); */ int fstree_from_file(fstree_t *fs, const char *filename, FILE *fp); -/* - Recursively scan a directory and generate a file system tree from it. - - Returns 0 on success, prints errors to stderr. - */ -int fstree_from_dir(fstree_t *fs, const char *path, unsigned int flags); - /* Add labels from an SELinux labeling file to all tree nodes. Returns 0 on success. Internally prints errors to stderr. */ int fstree_relabel_selinux(fstree_t *fs, const char *filename); -- cgit v1.2.3