update
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Test Case: Dot Entry Handling
|
||||
|
||||
**Test ID**: TC049-dot-handling
|
||||
**Category**: Directory Operations
|
||||
**Priority**: High
|
||||
|
||||
## Objective
|
||||
|
||||
Verify dot is returned as a directory entry and explicit dot lookup resolves
|
||||
to the same vnode as its directory.
|
||||
|
||||
## Procedure
|
||||
|
||||
Mount vfs/vfs-plain.erofs and run:
|
||||
|
||||
./readdir_probe /tmp/repo22-g3/mnt/testdir 128
|
||||
stat -f '%i %HT' /tmp/repo22-g3/mnt/testdir
|
||||
stat -f '%i %HT' /tmp/repo22-g3/mnt/testdir/.
|
||||
cmp fixtures/vfs/source/testdir/file.txt \
|
||||
/tmp/repo22-g3/mnt/./testdir/./file.txt
|
||||
|
||||
## Expected Results
|
||||
|
||||
The traversal includes one dot entry with DT_DIR, both stat commands report
|
||||
the same directory NID, and paths containing dot read source-exact data.
|
||||
Record output and cleanup.
|
||||
Reference in New Issue
Block a user