[PATCH 1/5] tftp: skip memory allocation when seeking to current position

Sascha Hauer s.hauer at pengutronix.de
Tue Mar 17 03:21:04 PDT 2026


On Thu, 12 Mar 2026 15:44:21 +0100, Ahmad Fatoum wrote:
> We currently allocate 1K of memory, only to discard it when seeking to
> the same offset, we are currently at.
> 
> Restructure tftp_lseek() to use early returns for the unsupported
> backward-seek and early-exit also for the no-op case of new pos being
> the same as the old pos.
> 
> [...]

Applied, thanks!

[1/5] tftp: skip memory allocation when seeking to current position
      https://git.pengutronix.de/cgit/barebox/commit/?id=4eb2b9845bd4 (link may not be stable)
[2/5] tftp: warn when seek-heavy access wastes network bandwidth
      https://git.pengutronix.de/cgit/barebox/commit/?id=076a94b6e083 (link may not be stable)
[3/5] tftp: emulate backwards seek by reopening the file
      https://git.pengutronix.de/cgit/barebox/commit/?id=ac2ff2fe4306 (link may not be stable)
[4/5] libfile: drop TFTP-specific hack in open_fdt()
      https://git.pengutronix.de/cgit/barebox/commit/?id=ea481907e334 (link may not be stable)
[5/5] fs: fix relative path resolution when CWD is on a TFTP mount
      https://git.pengutronix.de/cgit/barebox/commit/?id=0528a6a5585a (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list