summaryrefslogtreecommitdiff
path: root/include/fstree.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-26 22:44:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-26 22:45:02 +0200
commitc42d8e4ead7c20d29bf3996a6a87db0b348f8692 (patch)
treed54116413fef92c4b542e9083e13eed2809c9278 /include/fstree.h
parent20a29fab6382850ac9912c1a44d2cd8101a64184 (diff)
gensquashfs: add option to simply pack an input directory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/fstree.h')
-rw-r--r--include/fstree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 6a29093..13d4c78 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -229,6 +229,13 @@ void fstree_xattr_deduplicate(fstree_t *fs);
*/
int fstree_from_file(fstree_t *fs, const char *filename);
+/*
+ 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);
+
/* Lexicographically sort all directory contents. */
void fstree_sort(fstree_t *fs);