<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/fs, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/fs?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/fs?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-07-10T21:55:23Z</updated>
<entry>
<title>Merge patch series "fs: btrfs: add support for readdir"</title>
<updated>2026-07-10T21:55:23Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2026-07-10T21:55:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6741b0dfb41dc82a284ab1cff4c58af6ef2f3f9c'/>
<id>urn:sha1:6741b0dfb41dc82a284ab1cff4c58af6ef2f3f9c</id>
<content type='text'>
Alexey Charkov &lt;alchark@flipper.net&gt; says:

Btrfs in U-boot currently uses a custom callback for ls and doesn't
expose the standard opendir/readdir/closedir interface, making it harder
to use in generic code. One area where this would be useful is in
discovering BLS type 1 entries [1] on a Btrfs filesystem.

Add support for the standard interface, and implement ls in terms of it.

[1] https://lore.kernel.org/u-boot/20260604-bls-v1-0-4ce6d1ee4711@flipper.net/
Link: https://lore.kernel.org/r/20260626-btrfs-readdir-v2-0-7dd43f72d1b4@flipper.net
</content>
</entry>
<entry>
<title>fs: btrfs: use fs_ls_generic() and drop custom implementation</title>
<updated>2026-07-10T21:55:01Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-06-26T15:18:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=31cf3f177823362a42bf4630ec85370ea768ddf1'/>
<id>urn:sha1:31cf3f177823362a42bf4630ec85370ea768ddf1</id>
<content type='text'>
Now that generic callbacks for opendir/readdir/closedir are implemented,
the custom btrfs_ls() implementation is no longer needed, along with the
btrfs_iter_dir() callback iterator.

Use fs_ls_generic() instead.

Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
</content>
</entry>
<entry>
<title>fs: btrfs: implement opendir(), readdir() and closedir()</title>
<updated>2026-07-10T21:55:01Z</updated>
<author>
<name>Alexey Charkov</name>
<email>alchark@flipper.net</email>
</author>
<published>2026-06-26T15:18:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5f064aef5d766e291982f9cba6dc728dcdb53868'/>
<id>urn:sha1:5f064aef5d766e291982f9cba6dc728dcdb53868</id>
<content type='text'>
Add support for generic directory iteration with opendir(), readdir() and
closedir() in the btrfs filesystem driver.

Signed-off-by: Alexey Charkov &lt;alchark@flipper.net&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
</content>
</entry>
<entry>
<title>cmd: ubifs: mark string parameters with const</title>
<updated>2026-07-08T09:30:14Z</updated>
<author>
<name>Weijie Gao</name>
<email>weijie.gao@mediatek.com</email>
</author>
<published>2026-05-20T08:27:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d9a9d72e45c12571acb2258d669484eaef235872'/>
<id>urn:sha1:d9a9d72e45c12571acb2258d669484eaef235872</id>
<content type='text'>
File name and volume name should be const as they will not be modified in
these functions.

Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
Signed-off-by: Weijie Gao &lt;weijie.gao@mediatek.com&gt;
</content>
</entry>
<entry>
<title>fs: ubifs: fix ubifs_finddir() result check</title>
<updated>2026-07-08T09:28:23Z</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@foss.st.com</email>
</author>
<published>2026-06-09T09:00:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4c600f981343ca57cb324c643fec5663d50649e0'/>
<id>urn:sha1:4c600f981343ca57cb324c643fec5663d50649e0</id>
<content type='text'>
ubifs_finddir() can return a negative error code (-ENOMEM or
PTR_ERR(dent)) and returns 1 when the name is found in the directory.
Fix the result check accordingly.

This fixes file existence detection (for "test -e") when U-Boot uses
UBIFS through ops ubifs_exists(). Since this function is also called
before other file operations, commands such as "load" could be executed
on a non-existing file without reporting an error.

Fixes: 0cab29ff467e ("fs: ubifs: Fix and rework error handling in ubifs_finddir")
Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</content>
</entry>
<entry>
<title>Kconfig: fs: restyle</title>
<updated>2026-06-25T20:13:42Z</updated>
<author>
<name>Johan Jonker</name>
<email>jbx6244@gmail.com</email>
</author>
<published>2026-06-10T14:38:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5c1ab62653eb772fc5e6d6db65c405fce44f86b0'/>
<id>urn:sha1:5c1ab62653eb772fc5e6d6db65c405fce44f86b0</id>
<content type='text'>
Restyle all Kconfigs for "fs":
Menu entries   : no space left
Menu attributes: 1 TAB
Help text      : 1 TAB + 2 spaces
Replace '---help---' by 'help'

Signed-off-by: Johan Jonker &lt;jbx6244@gmail.com&gt;
</content>
</entry>
<entry>
<title>fs: fat: fix seconds in timestamp</title>
<updated>2026-05-27T23:59:12Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>heinrich.schuchardt@canonical.com</email>
</author>
<published>2026-05-16T18:37:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7af4196d9e9beaae6a69586cd87bd861b7fc2cda'/>
<id>urn:sha1:7af4196d9e9beaae6a69586cd87bd861b7fc2cda</id>
<content type='text'>
The FAT time format stores seconds/2 in bits 4:0. The expression
'tm.tm_sec &gt; 1' is a boolean comparison (yields 0 or 1) where a
right-shift 'tm.tm_sec &gt;&gt; 1' was intended.  As a result every
file timestamp written by U-Boot has its seconds field set to
either 0 or 1, depending on whether tm_sec is greater than 1.

Also fix the indentation of the tm_hour line.

Fixes: ba23c378c544 ("fs: fat: fill creation and change date")
Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>fs: ubifs: remove dead code</title>
<updated>2026-05-18T07:19:56Z</updated>
<author>
<name>Peter Collingbourne</name>
<email>peter@pcc.me.uk</email>
</author>
<published>2026-05-12T05:50:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0646ee0ed86bd2809e10cff1f8ca3310ad7bf33b'/>
<id>urn:sha1:0646ee0ed86bd2809e10cff1f8ca3310ad7bf33b</id>
<content type='text'>
This code is dead because it appears after an infinite loop; remove it.

Fixes: d5888d509cc4 ("fs: ubifs: fix bugs involving symlinks in ubifs_findfile")
Signed-off-by: Peter Collingbourne &lt;peter@pcc.me.uk&gt;
Reviewed-by: Heiko Schocher &lt;hs@nabladev.com&gt;

hs: corrected the commit ID
</content>
</entry>
<entry>
<title>fs: ubifs: fix bugs involving symlinks in ubifs_findfile</title>
<updated>2026-05-11T18:18:56Z</updated>
<author>
<name>Peter Collingbourne</name>
<email>peter@pcc.me.uk</email>
</author>
<published>2026-05-05T10:38:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d5888d509cc43942ec98d993f2d129f5c8ddc432'/>
<id>urn:sha1:d5888d509cc43942ec98d993f2d129f5c8ddc432</id>
<content type='text'>
When encountering a symlink pointing to an absolute path, ubifs_findfile
would return the target of the symlink as the result instead of resolving
any following components in the original path. Fix it by following the
same code path that is used for relative paths except that we set the
next inode to the root if we see a leading slash.

The existing code used memcpy and sprintf to copy the symlink target
into a fixed size stack buffer and was therefore vulnerable to buffer
overflows with a sufficiently long symlink target. Fix it by using a
heap buffer for the temporary path during path resolution.

Signed-off-by: Peter Collingbourne &lt;peter@pcc.me.uk&gt;
Fixes: 9d7952e4c636 ("ubifs: Add support for looking up directory and relative symlinks")
</content>
</entry>
<entry>
<title>fat: initialize ret in disk_rw()</title>
<updated>2026-05-04T20:35:10Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>heinrich.schuchardt@canonical.com</email>
</author>
<published>2026-04-29T15:54:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ba1209d7a756552677f07c207cdf7fac400a8b7c'/>
<id>urn:sha1:ba1209d7a756552677f07c207cdf7fac400a8b7c</id>
<content type='text'>
If fat_sect_size = 0 and nr_sect = 0, the value of ret is never initialized.
A random return value is returned.

Initialize ret to 0.

Addresses-Coverity-ID: - 645495 Uninitialized scalar variable
Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
</feed>
