<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/lib/sqfs, 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-16T20:48:00+00:00</updated>
<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>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>
<entry>
<title>Add a way to keep meta data blocks in memory</title>
<updated>2019-07-10T09:20:33+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-10T09:20:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=b57f3fe97074b2a374e52e9fb4920449bcb6b319'/>
<id>urn:sha1:b57f3fe97074b2a374e52e9fb4920449bcb6b319</id>
<content type='text'>
Instead of writing meta data blocks directly to disk, the writer can
now alternatively keep the blocks in memory until explicitly told to
write to disk.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Sanity check id table size read from super block</title>
<updated>2019-07-09T17:40:31+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-09T17:40:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=6b875fa3abc98536ad94d186876af67f6162969d'/>
<id>urn:sha1:6b875fa3abc98536ad94d186876af67f6162969d</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
