29 lines
968 B
Markdown
29 lines
968 B
Markdown
# Test Case: Nonzero Directory Tail Padding
|
|
|
|
**Test ID**: TC148-linux-directory-tail-padding
|
|
**Category**: Directory Compatibility
|
|
**Priority**: Critical
|
|
|
|
## Objective
|
|
|
|
Verify FreeBSD accepts the structured eight-byte PAD!ERO! patch after the final
|
|
directory-name NUL and still returns complete names and restartable cookies.
|
|
|
|
## Procedure
|
|
|
|
Record metadata/fixture-evidence.txt and the
|
|
metadata/namei-padding-nonzero.erofs hash. On a fresh mount:
|
|
|
|
printf 'wide entry 079\n' > expected-079.txt
|
|
cmp expected-079.txt \
|
|
/tmp/repo22-g3/mnt/wide/entry-079-abcdefghijklmnopqrstuvwxyz.txt
|
|
test "$(find /tmp/repo22-g3/mnt/wide -maxdepth 1 -type f |
|
|
wc -l)" -eq 320
|
|
./readdir_probe /tmp/repo22-g3/mnt/wide 128
|
|
|
|
## Expected Results
|
|
|
|
The actual patched image mounts, reads exact data, exposes 320 real files, and
|
|
reports 322 valid kernel/libc restart positions. Userspace fixture inspection
|
|
alone is not PASS. Record image/evidence hashes and cleanup.
|