aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-19 23:17:03 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-19 23:17:03 +0200
commitb7faff24bb44d32dd316144dc3f9091937772d2d (patch)
tree382c86810945c48371510b7eaf41abf984e57933
parentefa0a169344894ac922a4e4f088577f6560a232c (diff)
Fix packer statistics
Needs regenerating of the file list that was ripped up and rearranged during file packing. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--mkfs/mkfs.c4
-rw-r--r--tar/tar2sqfs.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index b2bdec2..5759744 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -191,8 +191,10 @@ int main(int argc, char **argv)
if (padd_file(outfd, super.bytes_used, opt.devblksz))
goto out_data;
- if (!opt.quiet)
+ if (!opt.quiet) {
+ fstree_gen_file_list(&fs);
sqfs_print_statistics(&fs, &super);
+ }
status = EXIT_SUCCESS;
out_data:
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c
index ed3aea1..dd602f5 100644
--- a/tar/tar2sqfs.c
+++ b/tar/tar2sqfs.c
@@ -437,8 +437,10 @@ int main(int argc, char **argv)
if (padd_file(outfd, super.bytes_used, devblksize))
goto out;
- if (!quiet)
+ if (!quiet) {
+ fstree_gen_file_list(&fs);
sqfs_print_statistics(&fs, &super);
+ }
status = EXIT_SUCCESS;
out: