<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fstools/libfstools, branch master</title>
<subtitle>OpenWrt filesystem utilities</subtitle>
<id>https://git.openwrt.org/project/fstools/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/fstools/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/'/>
<updated>2026-05-23T15:44:55Z</updated>
<entry>
<title>libfstools: mount f2fs overlay with zstd compression</title>
<updated>2026-05-23T15:44:55Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2026-05-21T11:42:26Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=16718b6e3c0fc7db7be6ae5848db0eae88ac8a8b'/>
<id>urn:sha1:16718b6e3c0fc7db7be6ae5848db0eae88ac8a8b</id>
<content type='text'>
When fstools_overlay_compression_type is set to zstd, pass the f2fs
compress_algorithm=zstd:3 mount option while mounting the overlay.

Retry the f2fs overlay mount without compression if the compressed mount
fails, so existing overlays without compression support can still boot.

This pairs the runtime mount behavior with the mkfs.f2fs compression
feature bits enabled during overlay formatting.

Signed-off-by: Robert Marko &lt;robert.marko@sartura.hr&gt;
</content>
</entry>
<entry>
<title>libfstools: enable f2fs overlay compression formatting</title>
<updated>2026-05-23T15:44:55Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2026-05-20T19:59:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=7df188543e26e70b179e649ec227a1dbe8489338'/>
<id>urn:sha1:7df188543e26e70b179e649ec227a1dbe8489338</id>
<content type='text'>
When fstools_overlay_compression_type is provided, format f2fs overlays
with the extra_attr and compression feature bits enabled so the
filesystem can later be mounted with compression options.

Log when f2fs overlay compression formatting is enabled to make the
selected path visible during first boot formatting.

Signed-off-by: Robert Marko &lt;robert.marko@sartura.hr&gt;
</content>
</entry>
<entry>
<title>mount_root: add kernel parameter to specify the overlay fileystem type</title>
<updated>2026-03-17T16:16:16Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2024-09-25T03:31:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=e600d842ce81b776dc8e2c7aaf39bb923e446c45'/>
<id>urn:sha1:e600d842ce81b776dc8e2c7aaf39bb923e446c45</id>
<content type='text'>
The kernel parameter 'fstools_overlay_fstype' can now be used to specify
the preferred overlay fileystem type. The supported values are 'ext4',
'f2fs' and 'auto'. Type 'auto' is the default and represents the usual
behavior of selecting the filesystem type based on available space.

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>libfstools: make get_var_from_file() reusable</title>
<updated>2026-03-17T16:16:16Z</updated>
<author>
<name>Rodrigo Balerdi</name>
</author>
<published>2024-09-24T23:59:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=1bf2d490484ed2f0a251baabc2fa830a0e995d06'/>
<id>urn:sha1:1bf2d490484ed2f0a251baabc2fa830a0e995d06</id>
<content type='text'>
Move get_var_from_file() to common library.

Signed-off-by: Rodrigo Balerdi &lt;lanchon@gmail.com&gt;
</content>
</entry>
<entry>
<title>libfstools: Rename PATH_MAX to MTD_PATH_MAX</title>
<updated>2026-02-15T18:20:01Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2026-02-15T18:20:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=8d377aa627be1ae538f8cdeb3295c0c39b9b1d90'/>
<id>urn:sha1:8d377aa627be1ae538f8cdeb3295c0c39b9b1d90</id>
<content type='text'>
The PATH_MAX defined here could conflict with PATH_MAX in
include/limits.h. The definition in snapshot.h is not used.

Just remove the definition from snapshot.h, because it is not used and
rename the other definition.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>libfstools: add support for EroFS based images</title>
<updated>2025-07-05T13:17:57Z</updated>
<author>
<name>Gao Xiang</name>
</author>
<published>2025-06-27T01:59:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=e8cd820cdbb8fba990fd79efda90c5dc10d8e45c'/>
<id>urn:sha1:e8cd820cdbb8fba990fd79efda90c5dc10d8e45c</id>
<content type='text'>
Add support to libfstools to parse and support EroFS based images to
permit correct mounting of OverlayFS with it. (in addition to SquashFS
support)

While at it rework the code to better handle the 2 different filesystem
introducing a similar pattern.

Signed-off-by: Gao Xiang &lt;xiang@kernel.org&gt;
Co-Developed-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>libfstools: skip JFFS2 padding when BLOCKSIZE was given</title>
<updated>2024-07-14T18:40:03Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-07-14T18:21:09Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=408c2cc48e6694446c89da7f8121b399063e1067'/>
<id>urn:sha1:408c2cc48e6694446c89da7f8121b399063e1067</id>
<content type='text'>
When BLOCKSIZE is defined we call padjffs2 with the defined alignment
to pad towards. That results in one of more block of all-1s instead of
the expected 0xdeadc0de and ultimaltely breaks restoring configuration
as fstools won't look for a the GZ signature indicating the config
backup in this case.
Change that and also look for config backup when all-1s are used for
padding.

Fixes: ee54c6b ("libfstools: skip JFFS2 padding on block devices")
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>fstools: remove redundant F2FS_MINSIZE definition</title>
<updated>2024-04-04T00:53:37Z</updated>
<author>
<name>Rui Salvaterra</name>
</author>
<published>2024-04-04T00:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=013050f8db8779f23333397245af5404c8c2306b'/>
<id>urn:sha1:013050f8db8779f23333397245af5404c8c2306b</id>
<content type='text'>
It's defined in common.h, which rootdisk.c also includes. Remove the redundant
definition from the latter.

Signed-off-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
</content>
</entry>
<entry>
<title>libfstools: fit: improve fit_volume_find string handling</title>
<updated>2024-01-22T00:45:32Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-01-22T00:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=08cd7083cac4bddf88459efa0881ee52858e7d0a'/>
<id>urn:sha1:08cd7083cac4bddf88459efa0881ee52858e7d0a</id>
<content type='text'>
While string are hardcoded and it's impossible to overflow it, make the
string handling more secure to mute Coverity Scan report by using
strncpy and adding a define for the max size of the DEVPATHSTR.

Fix Coverity Scan CID 1586643:  Security best practices violations
(STRING_OVERFLOW).

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>libfstools: force mkfs when formatting overlay</title>
<updated>2024-01-15T20:53:46Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2024-01-15T17:47:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=2171f62615569bace6e53617480d8f233f8f3b94'/>
<id>urn:sha1:2171f62615569bace6e53617480d8f233f8f3b94</id>
<content type='text'>
As the rootfs_overlay volume is dynamically allocated on platforms
which allow for that, the start of the volume can end up being at the
location of previously stored data. This can happen when writing an SD
card image to an SD card previously used for something else.
sysupgrade should always wipe preexisting data, but I haven't checked
if all platform implementations actually always do so). As mkfs is
cautious not to accidentally overwrite existing data, this can result
in the system to hang on boot, waiting for confirmation on the serial
console:

mount_root: overlay filesystem in /dev/fitrw has not been formatted yet
/dev/fitrw contains `ISO-8859 text, with very long lines (65536), with
no line terminators' data
Proceed anyway? (y,N)

Use the FORCE option (-F for mkfs.ext4, -f for mkfs.f2fs) to make sure
the volume is always formatted irrespective of its previous content.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
</feed>
