freebsd-dev/stand/common
Emmanuel Vadot c25d9aff46 loader: Add preload operation to fs_ops
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.

Reviewed by:	imp
MFC after:	2 weeks
Sponsored by:	Beckhoff Automation GmbH & Co. KG
Differential Revision:	https://reviews.freebsd.org/D33409
2021-12-16 11:50:38 +01:00
..
bcache.c loader bcache: Allow readahead up to 256 kB I/Os 2021-10-03 14:55:10 -07:00
boot.c stand/common command_boot: Pass tslog to kernel 2021-06-20 20:09:46 -07:00
bootstrap.h loader: narrow the scope of gfx frame buffer wrt tg supported kernels 2021-12-14 15:27:47 -07:00
commands.c loader: Add a readtest command 2021-12-16 11:50:31 +01:00
console.c loader: Set twiddle globaldiv to 16 by default 2021-09-28 15:24:02 -07:00
dev_net.c loader: net_open() should not replace f->f_devdata 2021-10-19 19:43:56 +03:00
dev_net.h
devopen.c loader: clean up devopen and devclose a bit 2019-12-13 08:41:37 +00:00
disk.c loader: disk_open() should honor D_PARTNONE 2019-06-06 16:27:05 +00:00
disk.h Distinguish between "no partition" and "choose best partition" with a constant. 2019-03-24 18:51:52 +00:00
gfx_fb_stub.c loader: move all gfx_fb.c stubs to common/gfx_fb_stub.c 2021-12-14 15:27:47 -07:00
gfx_fb.c loader: framebuffer should only be written into 2021-12-11 13:25:35 +02:00
gfx_fb.h loader: narrow the scope of gfx frame buffer wrt tg supported kernels 2021-12-14 15:27:47 -07:00
help.common loader: implement map-vdisk and unmap-vdisk commands 2019-04-26 17:58:44 +00:00
install.c Fix compilation error for install.c in loader 2020-07-31 16:08:25 +00:00
interp_backslash.c
interp_forth.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
interp_lua.c loader: Use tslog to instrument some functions 2021-06-20 20:09:48 -07:00
interp_parse.c
interp_simple.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
interp.c loader: Use tslog to instrument some functions 2021-06-20 20:09:48 -07:00
isapnp.c
isapnp.h
load_elf32_obj.c
load_elf32.c
load_elf64_obj.c
load_elf64.c
load_elf_obj.c loader: Don't reserve space for symbols twice. 2021-07-12 15:30:27 -06:00
load_elf.c loader: Add preload operation to fs_ops 2021-12-16 11:50:38 +01:00
ls.c
Makefile.depend
md.c
merge_help.awk
metadata.c stand: remove mips support 2021-12-10 11:05:31 -07:00
misc.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
module.c stand/module: skip is only used by veriexec 2021-12-15 19:58:33 -07:00
newvers.sh Fix stand/newvers.sh with zsh in sh mode 2020-08-12 15:49:10 +00:00
nvstore.c loader: zfs should support bootonce an nextboot 2020-09-21 09:01:10 +00:00
part.c loader: variable i is unused without MBR/GPT support built in 2020-06-16 07:05:03 +00:00
part.h loader: show APFS partition type name 2019-11-04 12:20:19 +00:00
paths.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
pnp.c
rbx.h
readin.h veloader use vectx API for kernel and modules 2020-03-08 18:48:01 +00:00
reloc_elf32.c
reloc_elf64.c
reloc_elf.c Reuse the amd64 loader relocation code on arm64 2021-01-20 17:59:38 +00:00
self_reloc.c RISC-V boot1.efi and loader.efi support 2020-07-06 18:19:42 +00:00
tslog.c stand/common: Add support for timestamp logging (tslog) 2021-06-20 20:09:43 -07:00
vdisk.c loader: vdisk dereference after free 2019-12-13 08:20:20 +00:00
zfs_cmd.c loader: zfs_cmd.c does not really compile without libzfs.h 2020-06-16 07:30:34 +00:00