DragonOS/user/apps/tests/syscall/gvisor/blocklists.fat
LoGin 514283011d
feat(filesystem): Enhance symlink handling and VFS behavior (#1507)
* feat(filesystem): Enhance symlink handling and VFS behavior

- Updated tmpfs to require page cache for both regular files and symlinks to ensure proper read/write operations.
- Increased the maximum symlink follow count to 40, aligning with Linux 6.6 standards.
- Improved symlink handling in VFS to correctly follow symlinks based on path conditions and trailing slashes.
- Added validation for conflicting flags in vfs_statx to prevent invalid operations.
- Refined syscall implementations for symlink and lstat to adhere to Linux semantics, ensuring correct behavior for symlink creation and path resolution.

Signed-off-by: longjin <longjin@DragonOS.org>

* fix(vfs): 修正符号链接跟随次数的处理逻辑

- 将 VFS_MAX_FOLLOW_SYMLINK_TIMES 从 40 调整为 41,以保留 0 的禁用语义并实现最多
40 次跟随的 Linux 语义
- 重构路径解析逻辑,明确区分 max_follow_times 为
0(完全禁用跟随)、1(计数耗尽)及 >=2(允许继续跟随)三种情况
- 确保在计数耗尽(max_follow_times == 1)且需要跟随时正确返回 ELOOP 错误

Signed-off-by: longjin <longjin@DragonOS.org>

---------

Signed-off-by: longjin <longjin@DragonOS.org>
2025-12-19 20:24:10 +08:00
..
stat_test feat(filesystem): Enhance symlink handling and VFS behavior (#1507) 2025-12-19 20:24:10 +08:00