25 lines
777 B
Markdown
25 lines
777 B
Markdown
# Test Case: mmap Through VOP_GETPAGES
|
|
|
|
**Test ID**: TC065-vop-getpages-mmap
|
|
**Category**: VM Integration
|
|
**Priority**: Critical
|
|
|
|
## Objective
|
|
|
|
Verify page-fault-driven reads, EOF semantics, and private/shared mapping
|
|
behavior for plain and compressed EROFS files.
|
|
|
|
## 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
|
|
|
|
Random and sequential mapped bytes match pread exactly; the partial EOF page
|
|
is zero, the next full page produces the helper's expected child SIGBUS,
|
|
writable MAP_SHARED is EACCES, MAP_PRIVATE COW succeeds, and O_RDWR is EROFS.
|
|
The plain and LZ4 logical FNV hashes are identical. Direct read utilities are
|
|
not acceptance evidence. Record dmesg and cleanup.
|