<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-03-17T16:16:16Z</updated>
<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>
<entry>
<title>libfstools: partname: raise priority to 25</title>
<updated>2023-12-11T22:28:44Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2023-12-11T22:28:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=846302d09246fca0a187ba676a932cba5e7a4929'/>
<id>urn:sha1:846302d09246fca0a187ba676a932cba5e7a4929</id>
<content type='text'>
Make sure partname has precedence over UBI and MTD.
We already got ways to prevent partname for matching partitions if
needed, however, we would need them as well for UBI and MTD to prevent
use of UBI rootfs_data despite having started from MMC on boards
having both (such as the BPi-R3).

Reported-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libfstools: add uImage.FIT fitblk driver</title>
<updated>2023-12-01T22:59:52Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2023-11-23T00:19:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=bc3b8cdd3de3f5d59016038bb3f7d266fbf1301c'/>
<id>urn:sha1:bc3b8cdd3de3f5d59016038bb3f7d266fbf1301c</id>
<content type='text'>
The upcoming 'fitblk' block driver exposing the filesystem sub-image(s)
of a uImage.FIT storage on a block device as /dev/fit%u.
In case of the block device being a fixed-sized partition, the remaining
space (for rootfs_data) is mapped to /dev/fitrw.
Recognize both devices and assign the highest priority to the new driver.

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