From f439b20706ade4b5630c3d6c57e6a36ce0dc287a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 30 Jun 2019 16:41:21 +0200 Subject: Add support for repacking condensed sparse files This commit broadly does the following things: - Rename and move the sparse mapping structure to libutil - Add a function to the data writer for writing condensed versions of sparse files, given the mapping. - This shares code with the already existing function for regular files. The shared code is moved to a common helper function. - Add support to tar2sqfs for repacking sparse files. Signed-off-by: David Oberhollenzer --- tests/tar_sparse_gnu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tar_sparse_gnu.c b/tests/tar_sparse_gnu.c index 844f7e3..d4d65d3 100644 --- a/tests/tar_sparse_gnu.c +++ b/tests/tar_sparse_gnu.c @@ -28,8 +28,8 @@ static int open_read(const char *path) int main(void) { - tar_sparse_data_t *sparse; tar_header_decoded_t hdr; + sparse_map_t *sparse; int fd; assert(chdir(TEST_PATH) == 0); -- cgit v1.2.3