Files
erofs-freebsd-out-tree/tests/TC027-dot-omitted-without.md
T
2026-08-13 10:44:59 +02:00

830 B

Test Case: Directory without dot_omitted

Test ID: TC027-dot-omitted-without

Objective

Verify a bit-4-clear directory reads explicit on-disk . and .. entries.

Fixture

Use images/compact.erofs and /dotdir. Structured evidence asserts bit 4 is clear and names are .,..,child.txt; production dump.erofs --ls also qualifies this baseline.

Procedure

Host:

dump.erofs --ls --path=/dotdir /work/build/repo22-g1/images/compact.erofs

Guest after mount:

stat -f 'ino=%i nlink=%l mode=%p' "$mnt/dotdir"
ls -lai "$mnt/dotdir"
cmp /tmp/repo22-g1/source/compact/dotdir/child.txt "$mnt/dotdir/child.txt"

Expected Results

  • Host inspection and FreeBSD listing both contain explicit . and ...
  • Child data matches the source, directory attributes are valid, and cleanup succeeds.