summaryrefslogtreecommitdiff
path: root/components/dfs
AgeCommit message (Collapse)Author
2026-08-20[dfs] Fix path buffer leaks in utimensathanzhijian
2026-08-17Add AF_UNIX sockets implementation (#11681)Bernard Xiong
* components/dfs: support unix socket nodes AF_UNIX pathname binding and descriptor passing require DFSv2 socket nodes and retained open file descriptions across fd tables. Add socket-node creation for tmpfs and devtmpfs, fd reference helpers, and socket F_SETFL forwarding. Impact: DFSv2 socket nodes and descriptor reference handling. Validation: git diff --cached --check. * components/net/sal: support local protocol providers Local IPC protocol families do not have a backing network device. Store the selected provider in each SAL socket and add a local provider registry while preserving netdev checks for Internet sockets. Handle DFSv2 close semantics, socketpair flags, and MSG_CTRUNC for AF_UNIX integration. Impact: SAL protocol dispatch for all socket families. Validation: git diff --cached --check. * components/lwp: support unix socket messages Musl AF_UNIX addresses and ancillary data require explicit ABI and user-memory conversion at the LWP syscall boundary. Add the musl msghdr layout, bounded address and message copying, control-message level conversion, and MSG_CTRUNC translation. Correct receive buffer allocation and copy lengths while handling messages. Impact: LWP socket syscalls when SAL is enabled. Validation: git diff --cached --check. * components/net/af_unix: add local sockets Add an opt-in AF_UNIX provider for pathname-based local IPC without a synthetic network device. Support datagram and stream sockets, blocking and nonblocking I/O, timeouts, poll, socketpair, and SCM_RIGHTS descriptor passing. Include bounded Kconfig settings, component documentation, and utest coverage. Impact: enabled only by RT_USING_AF_UNIX and requires SAL POSIX with DFSv2. Validation: git diff --cached --check. * Fix AF_UNIX CI checks Apply the repository clang-format rules to the affected source lines. Suppress the cppcheck false positive for the devtmpfs list iterator. No functional behavior is changed. * components/lwp: preserve NULL optional msghdr buffers When msg_name or msg_control is NULL, keep the kernel pointer NULL instead of substituting an uninitialized buffer. Reject a NULL control buffer with a nonzero length as EFAULT. Impact: LWP sendmsg/recvmsg conversion on MMU targets. Validation: git diff --cached --check. * components/net/af_unix: fix poll UAF, namespace leak, and SCM_RIGHTS cycles Poll only the local wait queue and wake writers from the receiver. Free namespace entries on detach, and reject AF_UNIX descriptors in SCM_RIGHTS until cycle collection exists. Impact: AF_UNIX poll, bind lifetime, and descriptor passing. Validation: git diff --cached --check. * components/dfs: add DFSv2 AF_UNIX utest suite Add opt-in tests under dfs/utest/v2/af_unix for socket nodes, IPC, poll peer-close, namespace cleanup, and SCM_RIGHTS rejection. Sources are built only when RT_UTEST_TC_USING_DFS_V2_AF_UNIX and the selected test groups are enabled. Impact: DFS utest menu and build; no production AF_UNIX behavior change. Validation: git diff --cached --check.
2026-08-06[fix][dfs] ↵angryproton
增加文件系统操作的类型检查,防止类型不匹配导致数据结构不一致引发的异常
2026-07-31components/dfs: unify vnode lock namesBernard Xiong
2026-07-23[fix][dfs] 修正 elmfat mkfs 中 f_mount 的错误传参angryproton
2026-07-20[fix][tmpfs]修正 getdents 中文件类型错误的判断变量angryproton
2026-07-15[fix][dfs] elmfat磁盘操作设备指针判空angryproton
2026-07-13[chg][dfs]Clean up comments in dfs_elm_free_vnode与非熊
Removed unnecessary comments from dfs_elm_free_vnode function.
2026-07-13[fix][dfs_elm] 修复关闭目录和释放vnode时的资源泄露angryproton
2026-07-13[fix][dfs] 修复elmfat挂载失败时的内存泄漏angryproton
2026-07-01fix dfs statfs fullpath leakOld-Ding
2026-06-22[fix][dfsv1][elm]解决块设备扇区大小校验失败时存在的disk泄� ↵与非熊
��问题
2026-06-22[fix][elm]解决块设备扇区大小校验失败时存在的disk泄漏问题与非熊
2026-06-12utest: move tmpfs testcases to components/dfsCYFS
Signed-off-by: CYFS <[email protected]>
2026-05-04[dfs][elmfat] Update elm-fatfs to R0.16wdfk-prog
2026-05-04dfs/romfs: validate ioctl args for RT_FIOGETADDRAphlita
2026-04-29style: format code with clang-format [skip ci]Aphlita
2026-04-29dfs:fix uninitialized 9pfs protocol lookupAphlita
2026-04-13fix:[dfsv1][elm]Fixed a memory leak in dfs_elm_closewdfk-prog
2026-04-01fix(ramfs): harden entry name validation and terminationAFWEF_147
2026-04-01fix(tmpfs): harden path component bounds and validationAFWEF_147
2026-02-02fix[dfs_v1]: prevent vnode ref underflow and double release on close/fd releasewdfk-prog
2026-01-06fix(dfs): align fd API declarations with DFS_USING_POSIXwdfk-prog
2026-01-06[FIX]Locking for dfs_dentry_dump must be consistent with that of all other ↵AngryProton
dentry functions.
2025-12-27[FIX][DFSv2][ELMFAT]解决dfs_elm_unlink在FF_VOLUMES为1时赋值drivers_fn ↵angryproton
引用未定义变量导致编译报错的问题
2025-12-26[FIX][DFSv2][ELMFAT]修复多线程环境下lseek返回值概率性被篡改 ↵angryproton
的问题
2025-12-26[FIX]Update vnode size after writing to tmpfsAngryProton
2025-12-04[DFS] Support 9PFSGuEe-GUI
What is 9PFS (https://en.wikipedia.org/wiki/9P_(protocol)): 9P (or the Plan 9 Filesystem Protocol or Styx) is a network protocol developed for the Plan 9 from Bell Labs distributed operating system as the means of connecting the components of a Plan 9 system. Files are key objects in Plan 9. They represent windows, network connections, processes, and almost anything else available in the operating system. rt-thread could share filesystem in VM mode with 9pfs such as QEMU... Signed-off-by: GuEe-GUI <[email protected]>
2025-11-13fix[components]: 修复日志输出的gcc编译警告wdfk-prog
2025-11-07fix:[dfs]ls在文件名太长时打印出来的文件名与大小连接在� ↵wdfk-prog
�起,无法区分
2025-10-28[components]:utilize the clang-format-ignore mechanism (#10860)CYFS
2025-10-16utest: Improve the strings displayed in the menuChen Wang
Use "Test" instead of "Unit Testcases" to make string shorter. Use uppercase to make it look more eye-catching. Signed-off-by: Chen Wang <[email protected]>
2025-09-07[add][testcases]add filesystem(dfs api & posix api) testcase.Rbb666
2025-09-01fix: warnings generated by Kconfig.maosql
2025-08-04[components/dfs]add doxygen comments for dfs sequence file in dfs_v2.ligr
2025-08-04[components/dfs]add doxygen comments for dfs_file.c in dfs_v2.ligr
2025-08-04[components/dfs]add doxygen comments for dfs_file_mmap.c in dfs_v2.ligr
2025-08-04[components/dfs]add and optimize doxygen comments for dfs.c in dfs_v2.ligr
2025-08-04[components/dfs]add doxygen comments for dfs_fs.c in dfs_v2. #10538Guorui Li
2025-08-03[components/dfs]add doxygen comments for dfs pcache file in dfs_v2.ligr
2025-07-31[bugfix][component/dfs] fix bugs for function _get_parent_path(). (#10539)Guorui Li
* [bugfix][component/dfs]1.Skip the trailing slash character failed. 2. Scenario that parent path is root is not considered. * replace strdup() by rt_strdup(). * free memory after strdup(). * fix issue of not appending '\0' at end when parent path is root.
2025-07-30[components/dfs]add doxygen comments for dfs_dentry.c in dfs_v2. (#10561)Guorui Li
2025-07-30[components/dfs]add doxygen comments for dfs_vnode.c in dfs_v2. (#10563)Guorui Li
2025-07-30[components/dfs]add doxygen comments for dfs_mnt.c in dfs_v2.ligr
2025-07-22doxygen: group name all in lowcase (part 2) (#10530)Chen Wang
* doxygen: fs: unify groupname to lowercase Signed-off-by: Chen Wang <[email protected]> * doxygen: drivers: unify groupname to lowercase Signed-off-by: Chen Wang <[email protected]> * doxygen: signal: unify groupname to lowercase Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
2025-06-25doxygen: group name all in lowcaseChen Wang
This patch only updated the groups defined in documentation/0.doxygen. Other groups will be moved into documentation/0.doxygen and updated at that time. Signed-off-by: Chen Wang <[email protected]>
2025-05-20[dfs] enable procfs and tempfs in default when using smart; fix LWIP_ROUTE ↵Bernard Xiong
warning issue.
2025-03-12修复 MMCSD 宏拼写错误+内核开启LOG_D编译问题yixinghua121
2025-03-11fix dangling pointer in component pthread and dfs_elm (#9976)lingfengPeng
* [components/libc/posix][pthreads]fix the risk of dangling pointer * [components][dfs][dfs_elm]:fix risk of dangling pointer, unmount the temp driver then free the temp FATFS in dfs_elm_mkfs.
2025-03-02[components][dfs_v2]: Fix cromfs bug (#10054)wycwyhwyq