diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-25 14:03:55 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-25 22:10:24 +0200 |
commit | 7c5cd1e104f23ec7d9c23086993630f398e2d8e0 (patch) | |
tree | d9717a122307a4ccfae803b0e98adba3aab2d75d /unpack/rdsquashfs.h | |
parent | 2fcf04928a0eaf7332503753a4866a0f2031a50e (diff) |
Implement simple, fork() based parallel unpacking in rdsquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/rdsquashfs.h')
-rw-r--r-- | unpack/rdsquashfs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index 45c91db..34404b0 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -14,10 +14,13 @@ #include "util.h" #include <sys/sysmacros.h> +#include <sys/types.h> +#include <sys/wait.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <getopt.h> +#include <ctype.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> @@ -41,6 +44,7 @@ typedef struct { int op; int rdtree_flags; int flags; + unsigned int num_jobs; char *cmdpath; const char *unpack_root; const char *image_name; @@ -52,7 +56,8 @@ int restore_fstree(tree_node_t *root, int flags); int update_tree_attribs(tree_node_t *root, int flags); -int fill_unpacked_files(fstree_t *fs, data_reader_t *data, int flags); +int fill_unpacked_files(fstree_t *fs, data_reader_t *data, int flags, + unsigned int num_jobs); void describe_tree(tree_node_t *root, const char *unpack_root); |