u-boot/fs/btrfs
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
..
common fs: btrfs: Crossport rbtree-utils from btrfs-progs 2020-09-07 20:57:27 -04:00
crypto fs/btrfs: use asm/unaligned.h 2023-05-31 14:05:34 -04:00
kernel-shared fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
btrfs.c fs: btrfs: hide duplicate 'Cannot lookup file' error on 'load' 2024-11-15 13:11:47 -06:00
btrfs.h treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
compat.h include: export uuid.h 2024-09-12 17:35:37 +02:00
compression.c treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
conv-funcs.h treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
ctree.c treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
ctree.h fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
dev.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
dir-item.c treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
disk-io.c include: export uuid.h 2024-09-12 17:35:37 +02:00
disk-io.h fs: btrfs: Cleanup the old implementation 2020-09-07 21:00:36 -04:00
extent-cache.c fs: btrfs: Crossport extent-cache.[ch] from btrfs-progs 2020-09-07 20:57:27 -04:00
extent-cache.h fs: btrfs: Crossport extent-cache.[ch] from btrfs-progs 2020-09-07 20:57:27 -04:00
extent-io.c treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
extent-io.h global: Use proper project name U-Boot 2023-06-12 13:24:31 +02:00
inode.c fs: btrfs: fix out of bounds write 2024-06-26 09:55:53 -06:00
Kconfig fs/btrfs: add dependency on BLAKE2 hash 2022-01-18 08:31:02 -05:00
Makefile treewide: Fix Marek's name and change my e-mail address 2022-07-21 10:14:04 +02:00
root-tree.c fs: btrfs: Crossport open_ctree_fs_info() from btrfs-progs 2020-09-07 20:57:27 -04:00
subvolume.c fs: btrfs: Prevent error pointer dereference in list_subvolums() 2023-08-08 17:05:43 -04:00
volumes.c fs: Remove duplicate newlines 2024-07-15 12:12:17 -06:00
volumes.h fs: btrfs: Crossport btrfs_read_sys_array() and btrfs_read_chunk_tree() 2020-09-07 20:57:27 -04:00