[U-Boot] [PATCH] fs: btrfs: fix btrfs methods return values on failure
Tom Rini
trini at konsulko.com
Fri May 3 18:21:57 UTC 2019
On Thu, May 02, 2019 at 03:28:43PM +0200, Marek BehĂșn wrote:
> The btrfs implementation methods .ls(), .size() and .read() returns 1 on
> failure, but the command handlers expect values <0 on failure.
>
> For example if given a nonexistent path, the load command currently
> returns success, and hush scripting does not work.
>
> Fix this by setting return values of these methods to -1 instead of 1 on
> failure.
>
> Signed-off-by: Marek BehĂșn <marek.behun at nic.cz>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190503/fbe75e7d/attachment.sig>
More information about the U-Boot
mailing list