summaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
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>