summaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-01 02:24:22 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-02 12:40:06 +0200
commit9eec700a703f62e27768f37a1c6c0e859212320c (patch)
treeee3101c2dd9a1b6c2b4c272097120c85dca0a133 /mkfs
parent083988ab0f58b334fa64e376e6c8231f60894d40 (diff)
Write out the missing tables
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/mksquashfs.c10
-rw-r--r--mkfs/mksquashfs.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/mkfs/mksquashfs.c b/mkfs/mksquashfs.c
index 7e19d49..e554e62 100644
--- a/mkfs/mksquashfs.c
+++ b/mkfs/mksquashfs.c
@@ -122,6 +122,15 @@ int main(int argc, char **argv)
if (sqfs_write_inodes(&info))
goto out_cmp;
+ if (sqfs_write_fragment_table(info.outfd, &info.super,
+ info.fragments, info.num_fragments,
+ info.cmp))
+ goto out_cmp;
+
+ if (sqfs_write_ids(info.outfd, &info.super, info.idtbl.ids,
+ info.idtbl.num_ids, info.cmp))
+ goto out_cmp;
+
if (sqfs_super_write(&info.super, info.outfd))
goto out_cmp;
@@ -130,6 +139,7 @@ int main(int argc, char **argv)
status = EXIT_SUCCESS;
out_cmp:
+ free(info.fragments);
info.cmp->destroy(info.cmp);
out_fstree:
fstree_cleanup(&info.fs);
diff --git a/mkfs/mksquashfs.h b/mkfs/mksquashfs.h
index 0ffa721..f4ab53a 100644
--- a/mkfs/mksquashfs.h
+++ b/mkfs/mksquashfs.h
@@ -7,6 +7,7 @@
#include "id_table.h"
#include "fstree.h"
#include "config.h"
+#include "table.h"
#include <unistd.h>
#include <stdlib.h>