From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephane Gilbert Date: Wed, 26 Sep 2018 15:01:17 +0000 Subject: [U-Boot] [PATCH v2] Fixes the load command return code under btrfs Message-ID: <1537974076.2675.131.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 On Tue, 2018-09-25 at 21:51 -0400, Tom Rini wrote: > > Your patch itself seems to have been garbled, please resubmit as v2, > thanks! Here is the resubmission! --- fs/btrfs/btrfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/btrfs.c b/fs/btrfs/btrfs.c index 6f35854823..64ec1af5a9 100644 --- a/fs/btrfs/btrfs.c +++ b/fs/btrfs/btrfs.c @@ -183,12 +183,12 @@ int btrfs_read(const char *file, void *buf, loff_t offset, loff_t len, if (inr == -1ULL) { printf("Cannot lookup file %s\n", file); - return 1; + return -2; } if (type != BTRFS_FT_REG_FILE) { printf("Not a regular file: %s\n", file); - return 1; + return -2; } if (!len) @@ -200,7 +200,7 @@ int btrfs_read(const char *file, void *buf, loff_t offset, loff_t len, rd = btrfs_file_read(&root, inr, offset, len, buf); if (rd == -1ULL) { printf("An error occured while reading file %s\n", file); - return 1; + return -5; } *actread = rd; -- 2.14.4