<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/lib, branch v0.4.2</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=v0.4.2</id>
<link rel='self' href='https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v0.4.2'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/'/>
<updated>2019-07-17T09:05:42+00:00</updated>
<entry>
<title>fstree: add support for spaces in filenames</title>
<updated>2019-07-17T09:05:42+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-17T08:53:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=1f980897f6947dd17eaa0190b2c1a23fb700636b'/>
<id>urn:sha1:1f980897f6947dd17eaa0190b2c1a23fb700636b</id>
<content type='text'>
This commit adds a mechanism to fstree_from_file to support filenames
with spaces in them by quoting the entire string. Quote marks can still
be used inside file names by escaping them with a backslash. Back slashes
(if that is your thing) can also be escaped.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>cleanup: move error handling into read_retry</title>
<updated>2019-07-16T20:48:00+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-16T19:02:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=e3ef871d6a80d72db02c9ab1ef492e8f58c2ddeb'/>
<id>urn:sha1:e3ef871d6a80d72db02c9ab1ef492e8f58c2ddeb</id>
<content type='text'>
If read_retry fails to read the expected amount of data (EOF or otherwise),
it is almost always an error.

This commit renames read_retry to read_data and moves error handling
into the function, making a lot of error handling code redundant.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>cleanup: move error handling into write_retry</title>
<updated>2019-07-16T20:47:59+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-16T17:29:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=bfd876dbf151df164b4d87de20aec39b24f205f9'/>
<id>urn:sha1:bfd876dbf151df164b4d87de20aec39b24f205f9</id>
<content type='text'>
If write_retry fails to write everything, it is *always* an error.

This commit renames write_retry to write_data and moves error handling
into the function, making a lot of error handling code redundant.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix directory index creation</title>
<updated>2019-07-16T20:47:59+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-16T19:42:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=74a064d9f15fa2d534e8b2d1ade68d10d5b65dfd'/>
<id>urn:sha1:74a064d9f15fa2d534e8b2d1ade68d10d5b65dfd</id>
<content type='text'>
Digging around in kernel internals and mksquashfs reveals that it is
actually a buffer offset into the raw directory buffer. The error
hasn't been noted until now because of the bug fixed by a5428e0.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add flags to data writer to micro manage behaviour</title>
<updated>2019-07-15T12:47:03+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-15T12:44:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=14a925f6da442ecade7df75eb46a6edb9a1499af'/>
<id>urn:sha1:14a925f6da442ecade7df75eb46a6edb9a1499af</id>
<content type='text'>
The added flags allow controlling the following on a per file level:
 - forcing a file to be written uncompressed
 - forcing a file to not have a fragment, i.e. the last truncated block
   actually being written as a block
 - padding a file to be alligned to device block size

The flags are not yet exposed to anything user controllable (such as
command line flags).

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add generic support for reading files without fragments</title>
<updated>2019-07-12T13:45:00+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-12T11:48:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=1b35319762cd83982dacbe96eccf07fd00d7858a'/>
<id>urn:sha1:1b35319762cd83982dacbe96eccf07fd00d7858a</id>
<content type='text'>
This commit extends the special case handling for sparse files to
generically support reading files that don't have a fragment but
instead have a trunkated final block.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Simplify writer code for files without a fragment</title>
<updated>2019-07-12T13:45:00+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-12T10:34:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=3038bf18d12b9d97d13b4846fed301c054cd793f'/>
<id>urn:sha1:3038bf18d12b9d97d13b4846fed301c054cd793f</id>
<content type='text'>
The data writer sparse block code can take advantage that it can add a
block size instead of a fragment and doesn't have to initialize the
framgent location.

In return, the tree node to inode serialization code doesn't need a
special case for sparse file anymore and can now also handle files that
are forced to not have a fragment.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>fstree: mknode: initialize fragment data, add extra blocksize slot</title>
<updated>2019-07-12T13:44:14+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-12T10:08:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=e4dd1ed8c9cea1761092e8206d572f60a9d95a58'/>
<id>urn:sha1:e4dd1ed8c9cea1761092e8206d572f60a9d95a58</id>
<content type='text'>
This commit makes sure that regular file tree nodes have one more slot
than necessary to support files that don't have fragments.

Also, it initializes the fragment data, which should help to deduplicate
some code ahead.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix dirindex writing for ext dir inode</title>
<updated>2019-07-10T10:31:45+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-10T10:31:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=a5428e0b6d430c490a3d7b930f358a5d9057160f'/>
<id>urn:sha1:a5428e0b6d430c490a3d7b930f358a5d9057160f</id>
<content type='text'>
This commit makes sure we write the index count to the inode before
writing out the inode itself.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>libsqfs: eleminate use of temporary file</title>
<updated>2019-07-10T09:26:22+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-10T09:26:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=20fd0c2f2ba1d16df07cfd9fad641cdd90aba193'/>
<id>urn:sha1:20fd0c2f2ba1d16df07cfd9fad641cdd90aba193</id>
<content type='text'>
Tell the directory writer to keep the directory blocks in memory, then
write them out once everything is done and the inodes are all written
out.

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