aboutsummaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-10 21:21:57 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-10 21:21:57 +0100
commit060970feee2beea37e837e0a2d557e878e5f8290 (patch)
treeca77697c9b7f67a633382ab954fde1167e6d77ec /mkfs
parent94a0b2783aa58b646260232ecfa3ff93f9b97d6d (diff)
Cleanup: Use stat structs instead of hooks in tar2sqfs/gensquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/mkfs.c7
1 files changed, 2 insertions, 5 deletions
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))