Shell
d45e13c471
fixup: dfs_v2: Correct device mode permissions in devfs
...
The mode permissions for character, block, and pipe devices were
previously set to 0777, which is overly permissive and not in line
with standard practice. This change reduces the permissions to 0666,
restricting execute permissions while still allowing read/write access.
Changes:
- Adjusted permissions for character/block/pipe devices from 0777 to 0666.
Signed-off-by: Shell <smokewood@qq.com>
2024-09-15 13:29:43 -04:00
Shell
679761983d
fixup: ptyfs: CI reported snprintf type issues
2024-09-01 15:12:34 -04:00
zhujiale
afa17ed343
fix_return_err
2024-08-24 14:44:39 +08:00
Shell
cfa3ecfa9e
bsp: cvitek/c906B: feat: add config of bootfs
...
To support more choice on bootfs. romfs, cromfs are now supported on
risc_v_big platform.
Changes:
- added mount operations under port
- added prototypes for cromfs init APIs
Signed-off-by: Shell <smokewood@qq.com>
Reviewed-on: https://github.com/RT-Thread/rt-thread/pull/9229
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
2024-07-29 20:16:54 +08:00
zhuzhuzhu
4ad194bb47
[fix] fix cromfs read out of mem range ( #9197 )
...
Update dfs_cromfs.c
2024-07-17 09:08:10 +08:00
zhuzhuzhu
1869c543a6
[fix]fix tmpfs bug ( #8970 )
...
* first
* second
* thrid
* Update SConscript
* tmpfs testcase default n
* Update dfs_tmpfs.c
* format document
---------
Co-authored-by: zhujiale <zhujiale@rt-thread.com>
2024-06-13 08:54:02 +08:00
Shell
5f947863b4
[dfsv2] fixup out-of-memory access ( #8973 )
...
This change addresses a potential out-of-memory access issue in the
devfs filesystem component. The issue arises when the `rt_malloc`
function allocates memory for a path string without accounting for
the null terminator, leading to undefined behavior.
As the manual documented:
> DESCRIPTION
> The strlen() function calculates the length of the string pointed to
> by s, excluding the terminating null byte ('\0').
To fix this, the memory allocation size was increased by one byte
to ensure space for the null terminator. This prevents potential
out-of-memory access and ensures proper string termination.
Signed-off-by: Shell <smokewood@qq.com>
2024-05-21 19:45:08 +08:00
zms123456
be97a8ef25
[components][dfs]remove duplicate lseek in devfs ( #8859 )
...
remove duplicate lseek in devfs
2024-04-25 18:28:43 +08:00
latercomer
3ff2b08d82
[clang-format] 增加clang-format格式化配置,通过ide或者手动运行tools/run-clang-format.py进行代码自动格式化
2024-04-21 01:18:37 -04:00
Shell
83e95bdff4
sync smart & dfs ( #8672 )
...
Signed-off-by: xqyjlj <xqyjlj@126.com>
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-03-28 23:42:56 +08:00
Shell
3237efd089
fixup d1s ( #8671 )
...
Signed-off-by: Shell <smokewood@qq.com>
2024-03-25 20:29:56 +08:00
Shell
71560bafb5
🎯 Sync smart & scheduler codes ( #8537 )
...
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
Meco Man
ed4d037d7b
[ci][stm32f407] add attach config CI check
2023-12-26 23:13:08 +08:00
geniusgogo
304ce5919c
sync update dfs v2. ( #8336 )
2023-12-12 18:05:39 +08:00
geniusgogo
74925f43ed
fix dfs path name overflow. ( #8305 )
2023-11-28 17:16:21 +08:00
geniusgogo
5a438c818a
fix dfsv2 romfs dfs_romfs_getdents buffer overflow.
2023-11-23 06:20:17 -05:00
xqyjlj
27aac584a5
✨ feat(dfs_v2/cromfs): add cromfs mmap ( #8218 )
2023-11-02 20:12:20 +08:00
kk
7066761510
[dfs][mqueue]Ensure that dev is initialized before mqueue ( #8197 )
2023-10-30 23:12:42 +08:00
xiao-mang
6b161bf3d5
update elmfat from r14b to r15 ( #8179 )
2023-10-26 17:26:48 +08:00
kk
01672f8627
[dfs_v2][mqueue] fix No mqueue mounted ( #8189 )
2023-10-26 10:43:49 +08:00
geniusgogo
ecd29fda60
Sync dfs lwp ( #8123 )
2023-10-17 13:07:59 +08:00
xqyjlj
1e0f406b4f
✨ feat(dfs_v2/cromfs): add symlink support ( #8132 )
2023-10-17 09:55:28 +08:00
xqyjlj
e5c5ec4b2a
🐞 fix(dfs_v2/filesystems/elmfat): fix elm can not exec ( #8118 )
2023-10-09 13:26:58 +08:00
zhouminquan
75b4f3d83a
tmpfs adds truncate functionality and unlink adaptations
2023-09-25 13:23:25 +08:00
geniusgogo
d5b8e2843a
fix dfsv2 tmpfs lock fault. ( #8027 )
2023-09-13 10:37:00 +08:00
XYZ
3602f89121
[smart][dfs v2] add cromfs ( #7994 )
...
Co-authored-by: xyz <xyz@rtt.com>
2023-09-01 00:20:55 +08:00
geniusgogo
69d94315b8
update dfs ( #7887 )
2023-08-02 13:59:43 +08:00
zhkag
7e5620edc3
[smart] 修复用户态 mq_receive 不能阻塞 ( #7836 )
2023-07-24 17:01:45 +08:00
xiao-mang
befa951451
modify some function prototypes of the dfs_file_ops structure and the function declarations based on it ( #7849 )
2023-07-24 09:12:35 +08:00
zhkag
d6adf6708f
[posix] posix 的 mqueue 对接到文件系统的 fd ( #7768 )
2023-07-05 14:49:31 +08:00
zhkag
7b4e52bd79
[DFS_V2]Update dfs_elm.c 修复变量使用错误 ( #7776 )
2023-07-04 20:56:37 +08:00
Bernard Xiong
cd3f0f9c8a
Add color ls for executable file. ( #7654 )
2023-06-11 13:12:40 +08:00
Bernard Xiong
99e80f8d33
[dfs] Add DFS v2.0 ( #7606 )
2023-06-10 21:35:25 +08:00
Bernard Xiong
9600b75b55
[DFS] prepare for dfs_v2.0 ( #7200 )
...
* [DFS] prepare for dfs_v2. dfs_fd -> dfs_file; dfs_fnode -> dfs_vnode.
* [BSP] fix code analysis warning
* [smart] fix the pointer overflow.
* code format
* [smart] fix the lwp->lwp_obj checking.
2023-04-08 22:25:51 +08:00
geniusgogo
3ea1ce9e46
Fix nfs ( #7194 )
...
* fixed nfs 64bit arch fault
* change mount cmd support nfs.
2023-04-08 12:22:19 +08:00
Bernard Xiong
23955edf53
[DFS] add Kconfig for dfs-v2.0 ( #7156 )
...
* [DFS] add Kconfig for dfs-v2.0
* [DFS] Optimize the SConscript.
* [dfs] move old dfs to dfs/dfs_v1
2023-04-04 15:02:56 +08:00