summaryrefslogtreecommitdiffstats
path: root/libsparse/include
Commit message (Collapse)AuthorAgeFilesLines
* libsparse: add sparse_file_lenColin Cross2012-07-091-0/+14
| | | | | | | | Add sparse_file_len, which will compute the size of data that would be produced if sparse_file_write was called. Useful combined with sparse_file_callback. Change-Id: I1a156d1071760f5559483954a5c62ffc20298703
* libsparse: add function to resparse a file and a utility to use itColin Cross2012-07-091-0/+14
| | | | | | | | | Add sparse_file_repsarse, which splits chunks in an existing sparse file such that the maximum size of a chunk, plus a header and footer, is smaller than the given size. This will allow multiple smaller sparse files to result in the same data as a large sparse file. Change-Id: I177abdb958a23d5afd394ff265c5b0c6a3ff22fa
* libsparse: add callback output file typeColin Cross2012-07-091-0/+21
| | | | | | | | | | | Add a new output file subclass that will call a callback for each block as it is written. Will be used to measure the space used by each sparse block to allow resparsing files. Also add sparse_file_callback, which will write out a sparse file by calling the provided write function. Change-Id: I18707bd9c357b68da319cc07982e93d1c2b2bee2
* libsparse: add sparse_file read and convert tools to use itColin Cross2012-07-091-0/+49
| | | | | | | | | | | | | | Abstract the logic from simg2img into libsparse, and add logic for reading a regular image into libsparse. simg2img then becomes a simple wrapper around libsparse. img2simg was not actually making the file sparse, it was using sparse files to create multiple files that could be pieced back together. Replace it with a simple wrapper around libsparse. Its functionality will be replaced by an simg2simg that can resparse a file into smaller chunks. Change-Id: I266f70e1c750454183ce46c71a7bb66bbb033a26
* libsparse: add error reporting functionsColin Cross2012-07-091-0/+18
| | | | Change-Id: I2f21355b6c5339d1d724b4c121ea30d575b2d366
* libsparse: add support for including fdsColin Cross2012-07-091-0/+26
| | | | | | | | Add sparse_file_add_fd to include all or part of the contents of an fd in the output file. Will be useful for re-sparsing files where fd will point to the input sparse file. Change-Id: I5d4ab07fb37231e8e9c1912f62a2968c8b0a00ef
* system/core: move libsparse into system/coreColin Cross2012-07-091-0/+134
This moves an exact copy of libsparse from system/extras/ext4_utils/libsparse to system/core/libsparse in preparation for linking tools in system/core against it. Change-Id: If664e4fcfd6612844ac745589beb1517e7f9fe58