<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/bin/gensquashfs/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: gensquashfs: simplify apply_xattrs</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-10-24T13:49:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=c4ab32879df8b5e83b0ebd091ce2c750f53f5633'/>
<id>urn:sha1:c4ab32879df8b5e83b0ebd091ce2c750f53f5633</id>
<content type='text'>
 - Pass the option structure along and use it's values rather than
   passing several of them individually
 - free() the path ASAP, so we don't have it around anymore when we
   go into the recursion step
 - shorten some argument names. Together with the above changes, this
   allows collapsing some multi line blocks into much simpler
   constructs.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: gensquashfs: merge glob scan_directory &amp; fstree_from_dir</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-10-24T12:45:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=3c70940f4c1b8534e1ef547e09050d33b8187122'/>
<id>urn:sha1:3c70940f4c1b8534e1ef547e09050d33b8187122</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: gensquashfs: remove tree walk for force-uid/gid</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-10-24T08:10:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=d17f308b24a332d1767888e086ece9a2e71a891d'/>
<id>urn:sha1:d17f308b24a332d1767888e086ece9a2e71a891d</id>
<content type='text'>
If the --force-uid or --force-gid flags are used, don't do a recursive
tree walk after the fact, instead simply apply the settings at the
source (e.g. tree iterator).

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: gensquashfs: merge xattr scanning code</title>
<updated>2023-10-20T09:48:17+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-10-20T09:44:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=dce63f71c4b901e776686cca351d4ff55badb425'/>
<id>urn:sha1:dce63f71c4b901e776686cca351d4ff55badb425</id>
<content type='text'>
The fstree from file and directory xattr scanning code essentially do
the same thing now. Except the later also _optionally_ reads xattrs
from a directory source. Merge the two code paths.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>gensquashfs: apply xattr file also when using a pack file</title>
<updated>2023-10-20T09:26:53+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-10-20T09:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=084deb943d0326df532f8a0f901a5756162d0507'/>
<id>urn:sha1:084deb943d0326df532f8a0f901a5756162d0507</id>
<content type='text'>
When reading a directory tree from a description file, we already scan
do selinux relabeling if applicable. The same code path can be used to
apply xattr from an xattr file, if present.

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>genquashfs: detect/filter hardlinks when scanning a directory</title>
<updated>2023-09-08T20:24:44+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-08T19:24:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=d17046773702aad9cb3269a23ecd35f5a4a552ff'/>
<id>urn:sha1:d17046773702aad9cb3269a23ecd35f5a4a552ff</id>
<content type='text'>
The new behavior is enabled by default (except on Windows) and needs
to be turned off explicitly.

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>coverity: fix: remove dead code</title>
<updated>2023-09-03T18:23:43+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2023-09-03T18:15:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=37a9a22eee01eae170049c95d628c33f75ab8efa'/>
<id>urn:sha1:37a9a22eee01eae170049c95d628c33f75ab8efa</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
