aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkfs/block.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkfs/block.c b/mkfs/block.c
index de2c962..fadf9b9 100644
--- a/mkfs/block.c
+++ b/mkfs/block.c
@@ -255,6 +255,8 @@ int write_data_to_image(sqfs_info_t *info)
ret = find_and_process_files(info, info->fs.root, info->opt.quiet);
+ ret = ret == 0 ? flush_fragments(info) : ret;
+
free(info->block);
free(info->fragment);
free(info->scratch);