From: "Marek Behún" <marek.behun@nic.cz>
To: "Pali Rohár" <pali@kernel.org>
Cc: Stefan Roese <sr@denx.de>, u-boot@lists.denx.de
Subject: Re: [PATCH] tools: kwboot: Replace fstat()+st_size by lseek()+SEEK_END
Date: Wed, 6 Apr 2022 21:22:51 +0200 [thread overview]
Message-ID: <20220406212251.4a54b9c4@thinkpad> (raw)
In-Reply-To: <20220406131859.7693-1-pali@kernel.org>
On Wed, 6 Apr 2022 15:18:59 +0200
Pali Rohár <pali@kernel.org> wrote:
> fstat()'s st_size works only for regular files. lseek() with SEEK_END works
> also for block or MTD devices. This replacement allows kwboot to load
> kwbimage from /dev/mtd0 for booting another device over /dev/ttyS0.
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
Nice.
Reviewed-by: Marek Behún <marek.behun@nic.cz>
next prev parent reply other threads:[~2022-04-06 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-06 13:18 [PATCH] tools: kwboot: Replace fstat()+st_size by lseek()+SEEK_END Pali Rohár
2022-04-06 19:22 ` Marek Behún [this message]
2022-04-21 14:08 ` Stefan Roese
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=20220406212251.4a54b9c4@thinkpad \
--to=marek.behun@nic.cz \
--cc=pali@kernel.org \
--cc=sr@denx.de \
--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