From 060970feee2beea37e837e0a2d557e878e5f8290 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 10 Feb 2020 21:21:57 +0100 Subject: Cleanup: Use stat structs instead of hooks in tar2sqfs/gensquashfs Signed-off-by: David Oberhollenzer --- mkfs/mkfs.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mkfs') diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c index bccbd79..5e350c8 100644 --- a/mkfs/mkfs.c +++ b/mkfs/mkfs.c @@ -40,7 +40,7 @@ static int set_working_dir(options_t *opt) } static int pack_files(sqfs_block_processor_t *data, fstree_t *fs, - block_processor_stats_t *stats, options_t *opt) + options_t *opt) { sqfs_inode_generic_t *inode; size_t max_blk_count; @@ -126,9 +126,6 @@ static int pack_files(sqfs_block_processor_t *data, fstree_t *fs, if (ret) return -1; - - stats->file_count += 1; - stats->bytes_read += filesize; } return 0; @@ -234,7 +231,7 @@ int main(int argc, char **argv) if (fstree_post_process(&sqfs.fs)) goto out; - if (pack_files(sqfs.data, &sqfs.fs, &sqfs.stats, &opt)) + if (pack_files(sqfs.data, &sqfs.fs, &opt)) goto out; if (sqfs_writer_finish(&sqfs, &opt.cfg)) -- cgit v1.2.3