On Wed,  6 Apr 2022 15:18:59 +0200
Pali Rohár <[email protected]> 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 <[email protected]>

Nice.

Reviewed-by: Marek Behún <[email protected]>

Reply via email to