HomeFreeBSD

loader: tftp: Copy the first block into the cache

Description

loader: tftp: Copy the first block into the cache

tftp_open reads the first block so copy it in the cached data.
If we have more than one block (i.e. we called tftp_read before
tftp_preload) simply just reset the transfer.

Reported by: mmel
Reviewed by: mmel, tsoome
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33697

Details

Provenance
manuAuthored on Dec 30 2021, 8:47 AM
Reviewer
mmel
Differential Revision
D33697: loader: tftp: Copy the first block into the cache
Parents
rGb6f7942cbcbd: Revert "Move libc++ from /usr/lib to /lib"
Branches
Unknown
Tags
Unknown