u-boot/fs
Dominique Martinet 6e988fde65 fs: btrfs: hide duplicate 'Cannot lookup file' error on 'load'
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 <dominique.martinet@atmark-techno.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
2024-11-15 13:11:47 -06:00
..
btrfs fs: btrfs: hide duplicate 'Cannot lookup file' error on 'load' 2024-11-15 13:11:47 -06:00
cbfs Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
cramfs fs/cramfs: use schedule instead of cyclic_run as callback 2024-10-23 06:52:38 +02:00
erofs fs/erofs: fix an overflow issue of unmapped extents 2024-06-14 12:59:06 -06:00
ext4 fs: ext4: correct error handling 2024-11-13 08:18:50 -06:00
fat global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
jffs2 fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
sandbox global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
squashfs global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
ubifs ubifs: Call ubifs_iput when ubifs_iget is used 2024-08-11 06:52:15 +02:00
yaffs2 list: use list_count_nodes() to count list entries 2024-08-30 13:51:38 -06:00
zfs fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
fs.c fs: ext4: use fs_ls_generic 2024-11-01 13:37:58 -06:00
fs_internal.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig fs: drop reiserfs 2024-03-04 10:25:47 -05:00
Makefile Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
semihostingfs.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00