Files
erofs-freebsd-out-tree/tests/TC149-vnode-pager-real-faults.md
T
2026-08-18 09:20:44 +02:00

24 lines
770 B
Markdown

# Test Case: Vnode Pager Real Faults
**Test ID**: TC149-vnode-pager-real-faults
**Category**: VM Integration
**Priority**: Critical
## Objective
Exercise real sequential/randomized mmap faults, partial and full pages around
EOF, read-only shared mappings, and private COW on plain and LZ4 EROFS data.
## Procedure
On separate fresh mounts of vfs/vfs-plain.erofs and vfs/vfs-lz4.erofs:
./mmap_fault /tmp/repo22-g3/mnt/pager.bin
## Expected Results
Both runs print the same 21211-byte logical FNV hash and pass six random page
faults, sequential comparison, EOF zeroing, expected child SIGBUS, EACCES for
writable MAP_SHARED, private COW, and EROFS for O_RDWR. The expected child
SIGBUS dmesg line is evidence, not a kernel failure. Record hashes and cleanup.