From c42d8e4ead7c20d29bf3996a6a87db0b348f8692 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 26 May 2019 22:44:45 +0200 Subject: gensquashfs: add option to simply pack an input directory Signed-off-by: David Oberhollenzer --- include/fstree.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/fstree.h') 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); -- cgit v1.2.3