From: Stephane Gilbert <stephane.gilbert@exfo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] Fixes the load command return code under btrfs
Date: Wed, 26 Sep 2018 15:01:17 +0000 [thread overview]
Message-ID: <1537974076.2675.131.camel@exfo.com> (raw)
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
next reply other threads:[~2018-09-26 15:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 15:01 Stephane Gilbert [this message]
2018-10-01 14:51 ` [U-Boot] [U-Boot, v2] Fixes the load command return code under btrfs Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1537974076.2675.131.camel@exfo.com \
--to=stephane.gilbert@exfo.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox