Files
erofs-freebsd-out-tree/tests/TC043-lookup-found.md
T
2026-08-18 09:20:44 +02:00

30 lines
953 B
Markdown

# Test Case: Lookup - Existing Entries
**Test ID**: TC043-lookup-found
**Category**: Directory Operations
**Priority**: Critical
## Objective
Verify exact-name lookup of regular, directory, and symlink entries returns
stable vnode metadata and source-exact data.
## Procedure
Mount vfs/vfs-plain.erofs and run:
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/file.txt
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/subdir
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/shortlink
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/file.txt
cmp fixtures/vfs/source/testdir/file.txt \
/tmp/repo22-g3/mnt/testdir/file.txt
sha256 fixtures/vfs/source/testdir/file.txt \
/tmp/repo22-g3/mnt/testdir/file.txt
## Expected Results
All lookups succeed, repeated file lookup reports the same nonzero inode, each
type/mode/size matches fixture evidence, and source/mounted hashes are equal.
Record command statuses and cleanup.