Files
erofs-freebsd-out-tree/tests/TC050-dotdot-handling.md
T
2026-08-13 10:44:59 +02:00

782 B

Test Case: Dotdot Entry Handling

Test ID: TC050-dotdot-handling Category: Directory Operations Priority: High

Objective

Verify dotdot is returned and resolves nested paths to the correct parent vnode without lock-order failure.

Procedure

Mount vfs/vfs-plain.erofs and run:

./readdir_probe /tmp/repo22-g3/mnt/parent/child 128
stat -f '%i %HT' /tmp/repo22-g3/mnt/parent
stat -f '%i %HT' /tmp/repo22-g3/mnt/parent/child/..
cmp fixtures/vfs/source/parent/file.txt \
  /tmp/repo22-g3/mnt/parent/child/grandchild/../../file.txt

Expected Results

The traversal contains one dotdot DT_DIR entry, both parent stat commands report the same NID, and multiple dotdot components reach the expected file. Record output, dmesg delta, and cleanup.