From 3511b1fa7c6f71c579e161951e945904e552e1d9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 25 Sep 2019 17:47:19 +0200 Subject: Remove condensed sparse file handling from libsquashfs This only exists for tar2sqfs. Move the sparse file map to libtar and add the ability to do this into the stind sqfs_file_t abstraction, so it acts like a normal file but internally stitches the data together from the sparse implementation. Signed-off-by: David Oberhollenzer --- include/data_writer.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'include/data_writer.h') diff --git a/include/data_writer.h b/include/data_writer.h index e29881b..cdf7a44 100644 --- a/include/data_writer.h +++ b/include/data_writer.h @@ -88,20 +88,6 @@ int data_writer_sync(data_writer_t *data); int write_data_from_file(data_writer_t *data, sqfs_inode_generic_t *inode, sqfs_file_t *file, int flags); -/* - Does the same as write_data_from_fd but the input file is the condensed - representation of a sparse file. The layout must be in order and - non-overlapping. - - The flags argument is a combination of DW_* flags. After completion the - data writer collects the 'fi' in an internal list it uses for deduplication. - - Returns 0 on success, prints errors to stderr. - */ -int write_data_from_file_condensed(data_writer_t *data, sqfs_file_t *file, - sqfs_inode_generic_t *inode, - const sqfs_sparse_map_t *map, int flags); - data_writer_stats_t *data_writer_get_stats(data_writer_t *data); #endif /* DATA_WRITER_H */ -- cgit v1.2.3