29 lines
1004 B
Markdown
29 lines
1004 B
Markdown
# Test Case: Directory Entry Decoding - Multi-Block Directory
|
|
|
|
**Test ID**: TC042-dirent-large-dir
|
|
**Category**: Directory Operations
|
|
**Priority**: High
|
|
|
|
## Objective
|
|
|
|
Decode a real multi-block directory without missing, duplicating, or
|
|
truncating entries across directory-block boundaries.
|
|
|
|
## Procedure
|
|
|
|
Mount metadata/namei-base.erofs and run:
|
|
|
|
./readdir_probe /tmp/repo22-g3/mnt/wide 128
|
|
find /tmp/repo22-g3/mnt/wide -maxdepth 1 -type f |
|
|
sed 's#.*/##' | sort > actual-wide.txt
|
|
cmp fixtures/metadata/expected-wide.txt actual-wide.txt
|
|
stat /tmp/repo22-g3/mnt/wide/entry-000-abcdefghijklmnopqrstuvwxyz.txt
|
|
stat /tmp/repo22-g3/mnt/wide/entry-159-abcdefghijklmnopqrstuvwxyz.txt
|
|
stat /tmp/repo22-g3/mnt/wide/entry-319-abcdefghijklmnopqrstuvwxyz.txt
|
|
|
|
## Expected Results
|
|
|
|
All 320 real files plus dot and dotdot are returned once. The helper reports
|
|
322 restartable kernel and libc positions and the three boundary samples stat
|
|
successfully. Record the image hash and cleanup.
|