<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/fs/btrfs/btrfs.c, 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/btrfs/btrfs.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/fs/btrfs/btrfs.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-07-10T21:55:01Z</updated>
<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>fs: btrfs: hide duplicate 'Cannot lookup file' error on 'load'</title>
<updated>2024-11-15T19:11:47Z</updated>
<author>
<name>Dominique Martinet</name>
<email>dominique.martinet@atmark-techno.com</email>
</author>
<published>2024-11-15T02:15:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6e988fde65b0a89d49c20553d47a8ec1e5461c12'/>
<id>urn:sha1:6e988fde65b0a89d49c20553d47a8ec1e5461c12</id>
<content type='text'>
Running commands such as 'load mmc 2:1 $addr $path' when path does not
exists will print an error twice if the file does not exist, e.g.:
```
Cannot lookup file boot/boot.scr
Failed to load 'boot/boot.scr'
```
(where the first line is printed by btrfs and the second by common fs
code)

Historically other filesystems such as ext4 or fat have not been
printing a message here, so do the same here to avoid duplicate.

The other error messages in this function are also somewhat redundant,
but bring useful diagnostics if they happen somewhere, so have been left
as printf.

Note that if a user wants no message to be printed for optional file
loads, they have to check for file existence first with other commands
such as 'size'.

Signed-off-by: Dominique Martinet &lt;dominique.martinet@atmark-techno.com&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
</content>
</entry>
<entry>
<title>include: export uuid.h</title>
<updated>2024-09-12T15:35:37Z</updated>
<author>
<name>Caleb Connolly</name>
<email>caleb.connolly@linaro.org</email>
</author>
<published>2024-08-30T12:34:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=58d825fb18053ec7e432de7bbb70a452b9228076'/>
<id>urn:sha1:58d825fb18053ec7e432de7bbb70a452b9228076</id>
<content type='text'>
Move this header to include/u-boot/ so that it can be used by external
tools.

Reviewed-by: Ilias Apalodimas &lt;ilias.apalodimas@linaro.org&gt;
Signed-off-by: Caleb Connolly &lt;caleb.connolly@linaro.org&gt;
</content>
</entry>
<entry>
<title>fs: btrfs: fix reading when length specified</title>
<updated>2023-11-16T23:59:58Z</updated>
<author>
<name>Sam Edwards</name>
<email>cfsworks@gmail.com</email>
</author>
<published>2023-11-11T15:19:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6d6ea52b629c384fb8605678b9003d2a077f9148'/>
<id>urn:sha1:6d6ea52b629c384fb8605678b9003d2a077f9148</id>
<content type='text'>
The btrfs read function limits the read length to ensure that it
and the read offset do not together exceed the size of the file.
However, this size was only being queried if the read length was
passed a value of zero (meaning "whole file"), and the size is
defaulted to 0 otherwise. This means the clamp will just zero out
the length if one is specified, preventing reading of the file.

Fix this by checking the file size unconditionally, and unifying
the default length and clamping logic as a single range check instead.

This bug was discovered when trying to boot Linux with initrd= via
'bootefi' from a btrfs partition. The EFI stub entered an infinite
loop of zero-length reads while trying to read the initrd, and the
boot process stalled indefinitely.

Signed-off-by: Sam Edwards &lt;CFSworks@gmail.com&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
</content>
</entry>
<entry>
<title>treewide: Fix Marek's name and change my e-mail address</title>
<updated>2022-07-21T08:14:04Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2022-06-01T15:17:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=61143f741ee5fd45720ca92682aaf557525b4b64'/>
<id>urn:sha1:61143f741ee5fd45720ca92682aaf557525b4b64</id>
<content type='text'>
Fix diacritics in some instances of my name and change my e-mail address
to kabel@kernel.org.

Add corresponding .mailmap entries.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>WS cleanup: remove SPACE(s) followed by TAB</title>
<updated>2021-09-30T13:08:16Z</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2021-09-27T15:42:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0cf207ec01cbacae47585fcc26591dd2296507d6'/>
<id>urn:sha1:0cf207ec01cbacae47585fcc26591dd2296507d6</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</content>
</entry>
<entry>
<title>fs: btrfs: change directory list output to be aligned as before</title>
<updated>2021-02-24T21:51:48Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2021-02-09T18:05:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c65365d7add59b35a4fdde5807a7afb5503e7a40'/>
<id>urn:sha1:c65365d7add59b35a4fdde5807a7afb5503e7a40</id>
<content type='text'>
Since commit 325dd1f642dd ("fs: btrfs: Use btrfs_iter_dir() to ...")
when btrfs is listing a directory, the output is not aligned:

  &lt;SYMLINK&gt;         15  Wed Sep 09 13:20:03 2020  boot.scr -&gt; @/boot/boot.scr
  &lt;DIR&gt;          0  Tue Feb 02 12:42:09 2021  @
  &lt;FILE&gt;        108  Tue Feb 02 12:54:04 2021  1.info

Return back to how it was displayed previously, i.e.:

  &lt;SYM&gt;         15  Wed Sep 09 13:20:03 2020  boot.scr -&gt; @/boot/boot.scr
  &lt;DIR&gt;          0  Tue Feb 02 12:42:09 2021  @
  &lt;   &gt;        108  Tue Feb 02 12:54:04 2021  1.info

Instead of '&lt;FILE&gt;', print '&lt;   &gt;', as ext4 driver.

If an unknown directory item type is encountered, we will print the type
number left padded with spaces, enclosed by '?', instead of '&lt;' and '&gt;',
i.e.:

  ? 30?        .............................  name

Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Fixes: 325dd1f642dd ("fs: btrfs: Use btrfs_iter_dir() to replace ...")
Cc: David Sterba &lt;dsterba@suse.com&gt;
Cc: Qu Wenruo &lt;wqu@suse.com&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
</content>
</entry>
<entry>
<title>fs: btrfs: skip xattrs in directory listing</title>
<updated>2021-02-24T21:51:48Z</updated>
<author>
<name>Marek Behún</name>
<email>marek.behun@nic.cz</email>
</author>
<published>2021-02-09T18:05:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e4cecb56677c42077fae48928f9cd5ce18e8a3a2'/>
<id>urn:sha1:e4cecb56677c42077fae48928f9cd5ce18e8a3a2</id>
<content type='text'>
Skip xattrs in directory listing. U-Boot filesystem drivers do not list
xattrs.

Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Cc: David Sterba &lt;dsterba@suse.com&gt;
Cc: Qu Wenruo &lt;wqu@suse.com&gt;
Cc: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Qu Wenruo &lt;wqu@suse.com&gt;
</content>
</entry>
<entry>
<title>fs: btrfs: initialize @ret to 0 to prevent uninitialized return value</title>
<updated>2020-11-19T14:45:49Z</updated>
<author>
<name>Qu Wenruo</name>
<email>wqu@suse.com</email>
</author>
<published>2020-10-31T01:07:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4891c4e595b48ee41b7d8062bb599d05a938ea0a'/>
<id>urn:sha1:4891c4e595b48ee41b7d8062bb599d05a938ea0a</id>
<content type='text'>
In show_dir() if we hit a ROOT_ITEM, we can exit with uninitialized
@ret.

Fix it by initializing it to 0.

Reported-by: Coverity CID 312955
Signed-off-by: Qu Wenruo &lt;wqu@suse.com&gt;
Reviewed-by: Marek Behún &lt;marek.behun@nic.cz&gt;
</content>
</entry>
</feed>
