<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/lib/common/src, branch master</title>
<subtitle>A new set of tools and libraries for working with SquashFS images</subtitle>
<id>https://git.infraroot.at/squashfs-tools-ng.git/atom?h=master</id>
<link rel='self' href='https://git.infraroot.at/squashfs-tools-ng.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/'/>
<updated>2023-10-24T13:57:18+00:00</updated>
<entry>
<title>Cleanup: remove rest of libio</title>
<updated>2023-10-24T13:57:18+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-23T09:16:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=9f2d63162e82d423faeda9c7449d6edd819e4591'/>
<id>urn:sha1:9f2d63162e82d423faeda9c7449d6edd819e4591</id>
<content type='text'>
Move the directory iterator test to libsquashfs, move the tree
scanning code to libcommon.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: move memory/stdio streams to libcommon</title>
<updated>2023-10-24T13:57:18+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-23T08:37:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=6e7b20a41c8a7f10392884e1741b031b579a93fa'/>
<id>urn:sha1:6e7b20a41c8a7f10392884e1741b031b579a93fa</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>sqfs2tar: replace hierarchy extraction with nested iterators</title>
<updated>2023-09-19T09:51:55+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-07-22T20:26:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=bfd932fb3470fa7250359da6ed5641182a10077c'/>
<id>urn:sha1:bfd932fb3470fa7250359da6ed5641182a10077c</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>libsqfs: externalize the dir reader state</title>
<updated>2023-09-15T19:48:47+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-15T16:02:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=69ac85c09dac74f9691b2ed340438e9648516c9f'/>
<id>urn:sha1:69ac85c09dac74f9691b2ed340438e9648516c9f</id>
<content type='text'>
Instead of holding the state internally, move it outside and let the
user pass it in. This allows processing multiple directories and going
back and forth between them, while also simplifying the dir reader
internals.

The sqfs_dir_reader_get_inode function can also be made more generic
to accept a reference instead of being fully state dependent.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Move directory tree related code from libsquashfs to libcommon</title>
<updated>2023-09-15T19:48:47+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-09T16:00:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=c1e8ef8975458c1c814e85d1e3abe3b94c1fc65e'/>
<id>urn:sha1:c1e8ef8975458c1c814e85d1e3abe3b94c1fc65e</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>libcommon: get rid of write_data_from_file</title>
<updated>2023-09-08T22:06:08+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-08T22:06:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=8b5a2d64fa95cb964540b950ca237545d9e51822'/>
<id>urn:sha1:8b5a2d64fa95cb964540b950ca237545d9e51822</id>
<content type='text'>
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 &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>libsqfs: bring sqfs_file_t in line with stream API</title>
<updated>2023-09-08T16:49:54+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-08T16:49:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=d5e2c6a3146c20354ab11f1dae48ab755996fa96'/>
<id>urn:sha1:d5e2c6a3146c20354ab11f1dae48ab755996fa96</id>
<content type='text'>
Rename the open function to sqfs_file_open, use an argument for the
return pointer and pass back and error number on failure. Also add
an inermediate function to open an sqfs_file_t using a handle, similar
to the stream API. The get_file_size function is moved to the native
wrappers and some of the implementation is cleaned up a little.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add a data reader based sqfs_istream_t implementation</title>
<updated>2023-08-10T07:28:27+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-07-18T19:54:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=5a3b741b92b793be7221a481efca316aec208ebe'/>
<id>urn:sha1:5a3b741b92b793be7221a481efca316aec208ebe</id>
<content type='text'>
To the sqfs_data_reader_t is added, an sqfs_istream_t implementation
that internally reads through the data reader. The uses of the
data_reader_dump function are removed and the function is subsequently
removed from libcommon.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Consolidate some of the stray integer parsers</title>
<updated>2023-07-02T22:57:06+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-07-01T10:41:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=a64417804f4c2b0425e167851d10854cf1f23e99'/>
<id>urn:sha1:a64417804f4c2b0425e167851d10854cf1f23e99</id>
<content type='text'>
There are several ad-hoc int/uint parsers scattered around the code,
add a single helper function for that task and replace the multiple
instances. A simple white-box test case is added for the utility
function.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Move data writer ostream into libsquashfs</title>
<updated>2023-06-17T13:27:19+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-06-16T17:46:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=0abe1816da2706f87432c4e04918ad0eec902479'/>
<id>urn:sha1:0abe1816da2706f87432c4e04918ad0eec902479</id>
<content type='text'>
It is mainly a very thin wrapper on top of the block processor so far.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
