aboutsummaryrefslogtreecommitdiff
path: root/lib/common
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-15 15:52:01 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-16 14:46:24 +0100
commit5e2298a3a3f00e6f55ceda2b1c35192d67c9feb4 (patch)
treeaf7dbe9fa5354a078b3a1dd453f15b8ef4e424ae /lib/common
parent9e2f960007887ea47fe273736f006569fc24df6d (diff)
Add ability to sqfs_dir_writer to create an export table
If the dir writer is used to create the directory table, it neccessarily sees every single inode number and coresponding location for all inodes that are referenced by the filesystem tree. This means it can easily collect that information internally to create an export table later on. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common')
-rw-r--r--lib/common/serialize_fstree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/serialize_fstree.c b/lib/common/serialize_fstree.c
index 3cfcb50..457c485 100644
--- a/lib/common/serialize_fstree.c
+++ b/lib/common/serialize_fstree.c
@@ -168,7 +168,7 @@ int sqfs_serialize_fstree(const char *filename, sqfs_file_t *file,
goto out_im;
}
- dirwr = sqfs_dir_writer_create(dm);
+ dirwr = sqfs_dir_writer_create(dm, 0);
if (dirwr == NULL) {
ret = SQFS_ERROR_ALLOC;
goto out_dm;