aboutsummaryrefslogtreecommitdiff
path: root/lib/tar/src/write_header.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-09 00:06:08 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-09-09 00:06:08 +0200
commit8b5a2d64fa95cb964540b950ca237545d9e51822 (patch)
tree26ea184513e90ccd2f704b3cd1f884b7fa3d2c94 /lib/tar/src/write_header.c
parent3eb3ba3d309ff5e560b5428ccf01694aeb62663e (diff)
libcommon: get rid of write_data_from_file
Modify gensquashfs to pack data using an istream wrapper, similar to tar2sqfs. To implement the no-tail-pack option, we need the file size, so we simply open a raw handle first, and query it (using libsquashfs API) and then create the stream wrapper. For the output side, we create a block-processor ostream wrapper and splice it. Since gensquashfs is the only, remaining user of the pack-a-file functon, we can then remove it from libcommon. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar/src/write_header.c')
0 files changed, 0 insertions, 0 deletions