From: Stephane Gilbert Date: Thu, 13 Sep 2018 18:48:41 +0000 Subject: [U-Boot] [PATCH] Fixes the load command return code under btrfs Message-ID: <1536864520.2675.116.camel@exfo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, I am submitting the following patch to resolve issue below: When using the load command with a btrfs filesystem, the return code of that command if always success even if the command failed. The problem is the do_load command in fs.c who assume any positive return code from fs_read as success. However the brtfs read function returns positive error code in case of failure. Other fs read fonction like fat and ext4 returns negative error codes on failure. So this patch change the return code of the btrfs read function to be consistent with other read functions. This way it will be possible to use the return code in the Hush shell with btrfs file systems as with other filesystems.