summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index 56f8842..dac0a34 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -41,6 +41,7 @@ int main(int argc, char **argv)
{
int status = EXIT_FAILURE, ret;
sqfs_info_t info;
+ uint64_t start;
memset(&info, 0, sizeof(info));
@@ -109,10 +110,12 @@ int main(int argc, char **argv)
if (sqfs_write_table(info.outfd, &info.super, info.fragments,
sizeof(info.fragments[0]), info.num_fragments,
- &info.super.fragment_table_start, info.cmp)) {
+ &start, info.cmp)) {
goto out_cmp;
}
+ info.super.fragment_table_start = start;
+
if (id_table_write(&info.idtbl, info.outfd, &info.super, info.cmp))
goto out_cmp;