Files
erofs-freebsd-out-tree/tests/TC064-vop-getpages-normal.md
T
2026-08-13 10:44:59 +02:00

809 B

Test Case: FreeBSD 15 Local Vnode Pager

Test ID: TC064-vop-getpages-normal Category: VM Integration Priority: Critical

Objective

Verify the exact KLD resolves FreeBSD 15 local pager entry points and real plain/LZ4 vnode mappings fault data through the pager.

Procedure

Record unresolved KLD symbols with nm -u. On separate fresh mounts of vfs/vfs-plain.erofs and vfs/vfs-lz4.erofs, run:

./mmap_fault /tmp/repo22-g3/mnt/pager.bin

Expected Results

The KLD loads with vnode_pager_local_getpages and vnode_pager_local_getpages_async resolved. Both helpers report identical 21211-byte FNV hashes, six random faults, partial-EOF zeroing, expected child SIGBUS, denied writable shared mapping, private COW, and O_RDWR EROFS. Record both image hashes, dmesg, and per-mount cleanup.