This commit is contained in:
2026-08-18 09:20:44 +02:00
commit b826cd721a
522 changed files with 93730 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 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.