Page MenuHomeFreeBSD

loader: Add preload operation to fs_ops
ClosedPublic

Authored by manu on Dec 13 2021, 10:49 AM.
Tags
None
Referenced Files
F115902334: D33409.diff
Wed, Apr 30, 5:19 AM
Unknown Object (File)
Tue, Apr 29, 6:54 AM
Unknown Object (File)
Sun, Apr 20, 3:18 AM
Unknown Object (File)
Sun, Apr 6, 8:10 AM
Unknown Object (File)
Feb 3 2025, 2:31 PM
Unknown Object (File)
Jan 26 2025, 6:12 PM
Unknown Object (File)
Dec 22 2024, 2:50 AM
Unknown Object (File)
Dec 5 2024, 10:30 AM
Subscribers

Details

Summary

When we load an ELF file (kernel or module) we do seek(2) a lot to
parse/load the different sections of the ELF file.
Protocol like TFTP suffers a lot from this as there is no resume or
a way to start the tranfer from a specified offset in the file.
fs_preload is added to help those protocol.
Call preload just after opening the ELF file that we need to load so
the underlying method can cache the hole file and then read/lseek operations
are faster.

MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped