Commit Graph

611 Commits

Author SHA1 Message Date
Bernard Xiong ad3e6d8898 [DFS] clean the unnecessary checking 2020-08-07 08:51:22 +08:00
Cliff Chen 1a9ecf27f3 [components] dfs: update elmfat to R0.14 patch 1
merge from https://github.com/abbrev/fatfs.git
(cf1fa008119c8ae2d05311ba3d97da0c4dca33b6)

Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
Change-Id: I321ba7933e1a4d6c07b3fbaa2a134eb54bb43b32
2020-06-12 16:31:43 +08:00
longtengmcu d75f03e4b0 1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1 …
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
4、修改注释信息
2020-05-21 22:05:38 +08:00
longtengmcu 63950c9259 1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
2020-05-17 15:51:35 +08:00
Cliff Chen 1c68bd9d3c Support msc mode automatic switching
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-03-16 10:50:34 +08:00
David Lin ec20c2c7ff
Fixed typo 'WirtePageWithLayout' in uffs
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:37:05 +08:00
David Lin 3790384734
Fixed typo 'WirtePageWithLayout' in uffs
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:34:21 +08:00
David Lin 8d497e945a
Fixed typo 'WirtePageWithLayout' in uffs
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:30:35 +08:00
David Lin 8e19bec11b
Fixed typo: 'wirte' in uffs_nandif.c
Note that the word 'wirte' is wrong,
so that 'wirte' should been replaced with 'write'.
2020-02-16 20:08:36 +08:00
Bernard Xiong 78d42efd22 [DFS] cleanup the log in dfs. 2019-12-18 21:37:42 +08:00
hichard aafed7b434 1.修复sd卡热插拔内存泄露的bug
2.dfs增加函数,配合实现sd卡热插拔自动挂载卸载文件系统
2019-11-16 11:16:48 +08:00
zhangjun d08f533659 [components][dfs][filesystems][elmfat]修正代码风格 2019-10-08 09:11:35 +08:00
zhangjun 60f2ae4d3c [components][dfs]添加ftruncate接口 2019-09-26 10:22:33 +08:00
gbcwbz 97c9abffd1 [components][dfs] Fix fd error in command list_fd 2019-07-26 19:07:05 +08:00
tangyuxin 7d09071858 [components][dfs][nfs] 修复Linux NFS服务器认证问题 2019-06-26 14:38:52 +08:00
tyustli d8eb0cfc1e fix kernel and framework no cast type error 2019-06-18 20:09:19 +08:00
guozhanxin 167342cf41 [dfs] fix some bug for uffs filesystem.|修复了一些uffs文件系统的BUG. 2019-06-18 10:45:54 +08:00
Bernard Xiong 214c1a6d45
Merge pull request #2608 from misonyo/rttdev
[components/dfs]fix index overflow bug when not filesystem was selected
2019-04-24 21:15:42 +08:00
guozhanxin 0c3da7e367 [components/dfs/ramfs] Automatically select memheap when ramfs enabled.|当使能ramfs时自动选中memheap。 2019-04-24 15:11:49 +08:00
misonyo 958d42f32c [components/dfs]fix index overflow bug when not filesystem was selected 2019-04-23 23:03:34 +08:00
Bernard Xiong ea9dbfa4f0
Merge pull request #2569 from armink/fix_dfs
[DFS] Update dfs file open log.
2019-04-13 10:41:09 +08:00
armink 6c92eb40da [DFS] Update dfs file open log. 2019-04-12 10:39:05 +08:00
armink fa4d4ab7cf Update all of debug log definition to DBG_TAG and DBG_LVL. 2019-04-12 10:18:57 +08:00
HubretXie 25cdd8bba9
fix use printf format bug
fix use printf format bug
2019-04-09 20:11:07 +08:00
tangyuxin e71ec65549 [components][dfs]格式化代码 2019-04-08 14:51:01 +08:00
armink 4f7c06f923 [component][DFS] Change the log level on dfs_file_open() func. 2019-03-07 15:56:39 +08:00
armink 0d7ba79219 Remove the DBG_COLOR and DBG_ENABLE definition. 2019-03-06 17:54:30 +08:00
Bernard Xiong 7383269905 [Kernel] Code cleanup for compiling warning. 2019-02-12 14:33:45 +08:00
Bernard Xiong 3b4a9f51c7 [DFS] Remove opened file check
Remove opened file check in dfs_file_open function. It will be replaced with POSIX flock/fcntl.
2019-01-24 20:55:27 +08:00
Bernard Xiong b998c4ed8d
[DFS][romfs] code cleanup 2019-01-13 14:33:24 +08:00
Bernard Xiong 9af2d29351
[DFS][romfs] code cleanup 2019-01-13 14:31:55 +08:00
Bernard Xiong bd7ebbf17b [DFS][romfs] fix the mkrom issue when file/dir size zero 2019-01-13 14:24:00 +08:00
yangfasheng c16d3de633 update dfs.c dfs_file.c dfs_file.h
Signed-off-by: yangfasheng <yangfasheng@rt-thread.com>
2019-01-09 17:40:32 +08:00
MurphyZhao 5d6c7e0df7 [components][dfs] Refix #2100 PR
#2100 PR 增加 `#include <libc.h>` 后,如果定义了 `RT_USING_DFS_DEVFS`,那就必须要开启 LIBC 才可以成功编译,增加了对 RT_USING_LIBC 的依赖。但是,这个修复又是关于开启 POSIX 的时候遇到的问题,因此建议在引入 <libc.h> 的地方,加入对 `RT_USING_POSIX` 的依赖。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-05 14:20:44 +08:00
gbcwbz 0924d277f6 [dfs] Fix stdio fd error when POSIX api is used
POSIX api e.g. poll read write
2018-12-23 19:14:14 +08:00
Bernard Xiong 1f37de29c4 Fix the value width issue under 32/64 bit arch. 2018-12-13 14:54:26 +08:00
shaojinchun 56c0df1e58 修正dfs在fd_get时,未检查有效性的问题 2018-12-10 08:33:17 +08:00
HubretXie 889afa7b04
Update dfs_elm.c
fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用
2018-12-03 18:09:52 +08:00
shaojinchun 2a57ba9f96 统一getcwd和chdir的加锁方式 2018-11-22 18:21:45 +08:00
Bernard Xiong e108dfe4a5 [libc] Fix the _EXFUN issue in newlib 2018-11-10 16:58:07 +08:00
Bernard Xiong 1946de1104
Merge pull request #1943 from zhaojuntao/ADD-LWIP210
Add lwip210
2018-11-02 20:14:09 +08:00
MurphyZhao c3cc7a29c8 [components][dfs] 移除冗余代码
[components][net] 修复 Kconfig
[components][net][sal] 还原对 SAL 框架的修改,在 proto_ops 结构体实例赋值位置修改

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-02 10:26:37 +08:00
armink 83b7b763b7 The dbg_log API is DISCARDED. Change all dbg_log to LOG_X. 2018-11-02 10:20:30 +08:00
MurphyZhao 58a6b51236 [components][dfs] AND [components][net][sal] 适配 LWIP210
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-01 18:21:41 +08:00
Bernard Xiong 8c1c6516b3 [Components] Change license to Apache License v2.0 2018-10-29 11:06:58 +08:00
Bernard Xiong fbac6c8be7 Remove lwIP 1.3.2 and yaffs2 from RT-Thread Platform. 2018-10-29 11:05:33 +08:00
Bernard Xiong b5e9927b85 [license] Change the license of FS/DFS to Apache. 2018-10-15 01:46:07 +08:00
Bernard Xiong cc883ad29a
Merge pull request #1891 from qgyhd1234/dfs
[dfs] fix ioctl getflag/setflag issue.
2018-10-14 10:21:54 +08:00
zylx 8431c05635 [dfs] fix ioctl getflag/setflag issue. 2018-10-13 10:23:47 +08:00
guozhanxin 42d181307e [components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap 2018-09-20 12:03:29 +08:00
Bernard Xiong 7d3f38e4f6
Merge pull request #1790 from liruncong/dev-dfs
dfs_uffs_getdents函数声明问题修正
2018-09-11 19:08:47 +08:00
liruncong b8b711d0a7 修正参数类型不匹配问题. uint32_t为unsigned int, 而rt_uint32_t为unsigned long
注: armclang编译器报错
2018-09-10 19:51:15 +08:00
weety ae6f47e274 Solve the problem of RT_USING_DFS cyclic dependency. 2018-09-05 20:52:16 +08:00
heyuanjie87 18510fa80f
Update select.c 2018-08-14 09:33:22 +08:00
heyuanjie87 c90b449dac
Update select.c 2018-08-13 22:42:09 +08:00
heyuanjie87 d948dba42a
update select.c 2018-08-12 20:41:56 +08:00
heyuanjie fd209cb880 [lwp]添加select系统调用 2018-08-12 20:26:16 +08:00
Bernard Xiong 90cef4fbac
Merge pull request #1673 from yangfasheng/master
update dfs.c of File System
2018-08-01 11:44:53 +08:00
heyuanjie c79fbd373f [lwp]给thread添加lwp成员 2018-07-30 11:12:12 +08:00
yangfasheng e13f1d9e7f update dfs.c of File System 2018-07-29 12:07:36 +08:00
Bernard Xiong e71763b068 [DFS] Add RT_USING_DFS_MNTTABLE option in Kconfig 2018-07-28 20:22:14 +08:00
Bernard Xiong 8baf3d98e1 [DFS] fix the mkfs issue for multi-mounted fatfs 2018-07-28 16:34:51 +08:00
Bernard Xiong 8fe4602632 [DFS] Enable long filename for ELM FatFS in default 2018-07-25 00:50:23 +08:00
tangyuxin cea61291e4 [components][dfs]修复list_fd打印乱码的问题 2018-07-20 15:30:24 +08:00
朱天龙 (Armink) 69c95944eb
Merge pull request #1643 from chenyong111/sal
Add SAL (socket abstraction layer) framework
2018-07-19 08:25:56 +08:00
chenyong 8cda48a132 [net][sal] Add SAL (socket abstraction layer) framework 2018-07-18 13:34:13 +08:00
liang yongxiang bd044f674d [components] format Kconfig 2018-07-18 11:59:50 +08:00
aozima 6deeb61efb
Merge pull request #1622 from armink/fix_com_init
[components] Update dfs and lwIP 2.0.2 re-initialization process.
2018-07-16 20:48:24 +08:00
armink 6139e6a3cc [dfs] Update error log for dfs. 2018-07-14 11:06:59 +08:00
armink c698c2c8e7 [dfs] Update DFS_FD_MAX default size to 16. 2018-07-14 10:03:59 +08:00
Bernard Xiong 1758f5773e
Merge pull request #1617 from armink/fix_rtdbg
Fix rtdbg
2018-07-14 06:46:50 +08:00
armink c779104ef7 [dfs] Fix dfs_file_ioctl return check on fcntl. 2018-07-13 11:14:36 +08:00
armink 730981ec42 [components] Update dfs and lwIP 2.0.2 re-initialization process. 2018-07-13 09:59:03 +08:00
armink 6cd8658dad [rtdbg] Change all DBG_SECTION_NAME to new format. 2018-07-11 10:23:19 +08:00
aozima f3fc141f5f [dfs] add re-initial check. 2018-07-02 16:58:49 +08:00
Bernard Xiong f0f883668c
Merge pull request #1579 from RT-Thread/fix_waitqueue
Fix waitqueue issue
2018-06-29 13:19:16 +08:00
Bluebear233 052e6009d0
Update dfs.c
修复list_fd打印乱码问题
2018-06-29 10:50:16 +08:00
liang yongxiang ee2767e4a0 [dfs] add mutex depend to dfs 2018-06-27 10:12:59 +08:00
tangyuxin 839254d976 [components][dfs] list_fd 打印信息更加友好 2018-06-26 14:01:27 +08:00
Bernard Xiong a1a56ce1d1 [Kernel] Add flag in wait queue and fix wakeup issue. 2018-06-26 11:19:38 +08:00
MurphyZhao f31235c824 [components/dfs] Fix inconsistent structure of lwip_sock structure, adaptation lwip202 version
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-06-15 15:34:14 +08:00
armink 0406175003 [components][dfs][fatfs] Add return 0 to get_fattime when RT_USING_LIBC not enable. 2018-06-11 19:57:57 +08:00
Bernard Xiong bca65f30a9 [lwP] Add light weight process component. 2018-06-10 17:57:34 +08:00
Bernard Xiong 661338d279
Merge pull request #1473 from Bluebear233/patch-1
[DFS] Update net_sockets.c
2018-05-31 13:33:42 +08:00
Bluebear233 ec81f44ff9
Update net_sockets.c
修复创建socket失败仍然返回有效的fd
2018-05-27 21:37:08 +08:00
armink 488a0fd360 [fs][net] Add lwIP version check on setsockopt(). 2018-05-27 21:36:00 +08:00
Bernard Xiong 6ac213d622 Add GCC version detection.
Add cconfig.h file for different version of GCC, which is automatically
detected and generated by scons script.
2018-05-14 21:37:11 +08:00
zyh f68c80126e [Components][DFS]fix if disk free more than 4GB 2018-04-27 15:33:22 +08:00
zyh 38169bb51a [Components][Dfs][Fat]fix mkfs bug 2018-03-18 17:22:22 +08:00
Bernard Xiong eb78535604 [DFS] Add protection for pt->triggered 2018-03-09 08:35:12 +08:00
Bernard Xiong fe66f24c69 [DFS] Add lastdata for poll of netsocket 2018-03-09 08:34:43 +08:00
BernardXiong 780c09e3e4 [libc] Fix the O_CREAT issue.
libc_stdio_set_console/newlib uses fopen to open console device, which
has O_CREAT flag and cause fault.
2018-02-11 13:57:51 +08:00
Bernard Xiong 4e41b0573b [libc] fix the fcntl issue in newlib 2018-02-07 19:55:35 +08:00
aozima 19433e0cf5 update SConscript: support scons 3. 2018-02-06 20:07:28 +08:00
liu2guang e63de3f66b [elm] Fixed elm device unmount error when mounting multiple elm devices. 2018-01-24 15:13:42 +08:00
MurphyZhao 938fa1170d [dfs] add IN6_IS_ADDR_MULTICAST support
in components/dfs/filesystems/net/netinet/in.h, add IN6_IS_ADDR_MULTICAST support
2018-01-17 15:50:34 +08:00
ZYH 5a29c1627c [Components][DFS][RAMFS]Fix bug
fix a bug cannot open file
2018-01-13 11:35:45 +08:00
BernardXiong 5a95d35626 [DFS] Add fcntl API (same with ioctl in RT-Thread). 2017-12-31 14:46:24 +08:00
bernard 872975b0ab [DFS] add df cmd in msh and provide better display.
re-write for #1138
2017-12-31 10:46:24 +08:00
bernard 8e4307382f [DFS] update JFFS2 with RT-Thread 3.0.x. 2017-12-30 14:45:34 +08:00
parai eade1bbd0f
[dfs] fix the issue of stat "/.." of lwext4 2017-12-28 13:36:33 +08:00
SummerGift 3b548038e1 [nfs] : optimize code format 2017-12-23 17:01:01 +08:00
SummerGift e8ec10d5e7 [nfs] : upgrade from gethostbyname to getaddrinfo 2017-12-23 16:55:54 +08:00
SummerGift 98d8145661 [nfs] : fix bug in nfs when enable ipv6 2017-12-23 11:58:23 +08:00
SummerGift 2d0f18f41f [nfs]: optimize Kconfig file for nfs 2017-12-18 15:48:19 +08:00
SummerGift 3cefa437dd [nfs]: optimize Kconfig file for nfs 2017-12-18 15:44:31 +08:00
SummerGift d051c6dec0 [nfs]:Format Optimize 2017-12-15 17:31:12 +08:00
SummerGift 4d0e205406 [nfs]:Format Optimize 2017-12-15 17:31:11 +08:00
SummerGift 4779429ab0 [dfs]:fix bug in nfs caused by struct dfs_fd 2017-12-15 17:31:11 +08:00
aozima 108a1434cd [LWIP] fixed select issues: pollset need clean. 2017-12-14 17:04:56 +08:00
aozima a2d1f21b43 [LWIP] fixed closesocket issues: socket has been closed, delete it from file system fd. 2017-12-14 16:52:46 +08:00
Bernard Xiong 2f409c85f1 [Kernel] Use rt_object_get_information to get object chain 2017-12-12 07:36:37 +08:00
Bernard Xiong 5ec1046ca9 [DFS] fix the free issue in fd_is_open 2017-12-11 19:22:47 +08:00
uestczyh222 049ed5047f [Components][USB][DFS][usb minimize stack size dfs fix build error
without finsh]
2017-12-07 07:24:37 +08:00
Bernard Xiong 9508b0e650 fix the fs type search issue in mkfs. 2017-12-05 20:16:34 +08:00
bernard 2a83353e5f [DFS] fix the filesystem_operation_table issue. 2017-11-30 23:55:22 +08:00
Bernard Xiong 7bc87e4ae8 [Kconfig] Rename all of KConfig files to 'Kconfig' 2017-11-30 20:12:53 +08:00
Bernard Xiong 4d854ba5a9
Merge pull request #1049 from TanekLiang/romfs_open_fixed
[DFS] fix ROMFS get root directory bug
2017-11-28 23:20:09 +08:00
Bernard Xiong 505329b32b
Merge pull request #1048 from TanekLiang/dfs_kconfig
[dfs] add new option (DFS_FILESYSTEM_TYPES_MAX) for DFS
2017-11-28 23:19:41 +08:00
tanek liang a14a219d68 [dfs] add new option (DFS_FILESYSTEM_TYPES_MAX) for DFS 2017-11-28 21:43:05 +08:00
tanek liang c63ce381fe [dsf] fix romfs build error in IAR (__weak should in start for variable definition) 2017-11-28 21:40:09 +08:00
tanek liang 5ccbaae150 [DFS] fix ROMFS get root directory bug 2017-11-28 21:38:48 +08:00
DengQilong e79f9e6b02 fix bsp for lpc54608 2017-11-13 14:18:05 +08:00
Bernard Xiong d6c794ae78
Update KConfig 2017-11-06 20:01:35 +08:00
Bernard Xiong 9bd094197e [libc] Add HAVE_SYS_SELECT_H/HAVE_SYS_SOCKET_H options. 2017-11-05 14:36:48 +08:00
bernard 6d9fcd04d2 [Kernel] Change the order of initialization.
1. Remove INIT_FS_EXPORT and change INIT_DEVICE_EXPORT as the first item
in the initalization thread.
2. Move the eth_system_device_init into INIT_PREV_EXPORT item.
2017-11-03 11:44:37 +08:00
bernard bc2abf69e2 [DFS] Fix the ramfs issue. 2017-10-31 09:53:22 +08:00
bernard 7d673f921c [libc] Adjust libc.
1. Move struct stat to libc_stat.h;
2. Defined a new FD_SET macros in libc_fdset.h.
2017-10-31 09:52:49 +08:00
bernard 1d8636b7f4 [DFS] Code cleanup. 2017-10-25 18:42:06 +08:00
bernard cc9667b7a9 [DFS] Fix the RAMFS compiling issue. 2017-10-25 18:41:53 +08:00
bernard 67fff44fdd [DFS] Fix the UFFS compiling issue. 2017-10-25 16:23:02 +08:00
bernard 5bc690336b [DFS] Fix the romfs compiling issue. 2017-10-25 14:21:49 +08:00
bernard d9592457fb Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2017-10-25 07:25:39 +08:00
bernard 0d45288f06 [libc] Add mode_t in rtlibc.h for Keil MDK/IAR. 2017-10-25 07:25:24 +08:00
armink b4168cc60d [DFS] Fix `fd_new` failed return value. 2017-10-22 22:14:55 +08:00
bernard 8a38307e2c [libc] Add RT_USING_POSIX macro.
1. Add macro check in rtdebug.h;
2. Use RT_USING_POSIX for poll/select, stdin etc.
3. Split dfs_posix.h to dfs_posix.h, dfs_poll.h and dfs_select.h;
2017-10-17 22:27:06 +08:00
ArdaFu b72bdefa46 [DFS][NFS] Fix compile error. Move nfs_file/nfs_dir data ptr into struct nfs_filesystem. 2017-10-17 13:53:39 +08:00
bernard 0f5a68a55e [dfs] add poll/select
1. Add poll/select APIs;
2. Add wait queue implementation;
3. Remove DFS_STATUS_* code and use errno;
4. Add pipe API;
5. Use a standalone fops in DFS;
2017-10-15 22:44:53 +08:00
bernard 9122edd57c [Kconfig] Add more descrip for Kconfig 2017-10-09 15:12:42 +08:00
SummerGift f065e8cbd8 [添加]:配置宏RT_DFS_ELM_WORD_ACCESS。 2017-10-09 14:22:09 +08:00
Bernard Xiong 8d169a8b19 Merge pull request #862 from armink/fix_kconfig
Fix kconfig
2017-10-06 10:59:53 +08:00
yygg_you d428166f08 修复 mkfs失败的错误 2017-10-06 09:01:56 +08:00
armink 9d54556619 [KConfig] Change the RT_DFS_ELM_USE_LFN cfg to choice. 2017-10-05 16:20:21 +08:00
armink 9ff340f416 [KConfig] Add long file name configuration for FATFS. 2017-10-05 14:52:16 +08:00
xieyangrun 6b06cb83e3 rename WEAK to RT_WEAK 2017-09-18 11:32:13 +08:00
bernard bc0fbbfe82 [DFS] change the cmd to long data type. 2017-06-15 14:37:18 +08:00
bernard b7cf723162 [DFS] code cleanup 2017-06-15 14:36:59 +08:00
bernard 6e63cbb9be [DFS] "console" device check.
[DFS] To make sure the "console" device exist or not when initialize
console device.
2017-06-15 14:36:40 +08:00
bernard 0acf441836 Fix compiling warning for Win32. 2017-06-06 23:34:01 +08:00
bernard 3101ba8ac8 [DFS] Add fd checking in dfs_file_close API. 2017-06-06 18:19:32 +08:00
Urey 2426efe6b7 delete volatile 2017-05-26 21:05:10 +08:00
Urey 0e82a5b821 fix f_mount when mount more fats 2017-05-26 21:02:59 +08:00
xools 5b50c7e41b fix fattime different from elmfat definition 2017-04-16 16:13:15 -07:00
lizhen9880 d883f7e23b fix the f_bsize and f_blocks issue in function dfs_uffs_statfs 2017-04-12 14:32:12 +08:00
lizhen9880 3e6f64fe7a the file description is modified to local variable in function
static void copydir(const char * src, const char * dst)
2017-04-12 10:53:53 +08:00
Bernard Xiong 5502558df9 [DFS] fix the st_blksize issue in elm fatfs. 2017-04-11 09:33:25 +08:00
Bernard Xiong 5e98c690a1 Merge pull request #700 from hichard/hichard
[DFS] update elm fatfs to 0.12b version.
2017-03-20 19:19:44 +08:00
unknown 6ee81de429 hichard 2017-02-13 22:33:15 +08:00
bernard d692001fd5 [tools] Add KConfig files. 2017-01-31 11:54:12 +08:00
Bernard Xiong 7c38c59f62 [DFS] fix the name mistake in socket function. 2016-05-10 09:32:50 +08:00
Bernard Xiong 64feef0dde [LIBC] mv pthreads/libdl to libc and rename dfs_lwip to dfs_net 2016-05-10 09:22:01 +08:00
Bernard Xiong e68a3a977a [DFS] Remove stat/fstat function under WIN32 simulation. 2016-04-06 01:16:09 +08:00
Bernard Xiong b39654d5a1 Merge pull request #610 from FlyLu/master
[DFS] Fix the ramfs issue.
2016-02-20 19:41:40 +08:00
FlyLu 0b3dd47347 修正ramfs.h中防止重复包含的宏定义名称
修正components.h中使能RT_USING_DFS_RAMFS宏时,加入ramfs.h头文件
2016-02-20 14:53:39 +08:00
Bernard Xiong 455daf8e7a Add ioctl API and fix the read/write conflict issue with newlib's API. 2015-12-22 10:18:36 +08:00
www220@tom.com 45d46b076f 修正romfs在输入的目录名称比实际的名称短时存在的判断错误
比如实际目录为abcde,msh执行 cd abc也能执行成功,判断名称时存在bug
2015-10-14 10:28:25 +08:00
Bernard Xiong e5edc5b09a [DFS] Use the win32 stat structure if using MS VC++ compiler. 2015-10-11 15:39:07 +08:00
Bernard Xiong d859e3e8b8 [DFS] export more symbols for dfs_lwip. 2015-10-11 15:38:35 +08:00
Bernard Xiong d2ec1f3eaa [DFS] remove st_blksize in the struct stat 2015-10-01 06:46:52 +00:00
Bernard Xiong b4e3fb2007 [DFS] add sys/tcp.h and sys/udp.h for compatibility 2015-09-25 07:00:11 +08:00
Bernard Xiong d1a1cbfdd7 [DFS] add sockaddr_storage structure in sys/socket.h 2015-09-25 06:55:55 +08:00
Bernard Xiong 6362a8606e [DFS] fix the lwIP select issue 2015-09-24 09:59:34 +00:00
www220@tom.com 3bd1a372a0 修正mkdir lseek中文件句柄不释放的bug 2015-09-11 19:34:37 +08:00
Bernard Xiong 3e310522e0 [DFS] Fix the compiling issue in NFS. 2015-08-03 16:17:27 +08:00
Bernard Xiong 52e0d3ce0f [DFS] Add fsync function 2015-07-16 10:35:42 +08:00
Bernard Xiong c6d4407c57 [DFS] Fix the fd clear issue. 2015-06-04 22:23:53 +08:00
pangwei 570e9470b1 [uffs] fix the SConscript file of uffs.
Signed-off-by: pangwei <271372443@qq.com>
2015-05-21 17:06:05 +08:00
Bernard Xiong 7e981e3e26 [DFS] Fix the accept/shutdown issue in dfs_lwip. 2015-05-11 12:32:53 +08:00
Bernard Xiong b7d069c4c8 [DFS] Add file header for select implementation 2015-05-05 13:23:01 +00:00
Bernard Xiong 3aa144d0be [DFS] add select implementation. 2015-05-05 13:16:26 +00:00
Bernard Xiong 10d3afde03 [DFS] rename netdb.c to lwip_netdb.c in dfs_lwip.
To avoid same file name, therefore change the netdb.c to lwip_netdbc in
dfs_lwip.
2015-05-04 20:34:07 +08:00
Bernard Xiong 854d8866d3 [DFS] fix the compiling issue under Keil MDK. 2015-05-02 22:53:08 +08:00
Bernard Xiong 5ca3da9e1c Merge remote-tracking branch 'upstream/master' 2015-05-02 01:33:58 +00:00
Bernard Xiong a7d6e284d0 [DFS] Export dfs_subdir/dfs_normalize_path symbol to module. 2015-05-02 08:55:08 +08:00
Bernard Xiong 8dfc80b4a2 [DFS] Add lwIP file system interface for DFS 2015-05-01 08:19:52 +00:00
Bernard Xiong f36a1d92a4 [DFS] fix the NFS link issue 2015-04-11 01:04:14 +00:00
Bernard Xiong 78ef35f2cf Merge remote-tracking branch 'coding/master' 2015-04-06 05:16:53 +00:00
Bernard.Xiong b68d041275 [DFS] add file header infor 2015-04-06 11:52:29 +08:00
Bernard Xiong 1377022b18 [DFS] Use SConscript of each file system to build. 2015-04-03 14:26:18 +00:00
Bernard Xiong fbd620a7f4 [Kernel] Move the components initailzation to the kernel 2015-02-25 10:50:21 +08:00
Bernard Xiong 7f4e647971 Merge remote-tracking branch 'upstream/master' 2015-01-29 09:14:12 +00:00
Bernard Xiong 01c3460cdb [DevFS] fix the device none-open issue 2015-01-28 14:13:44 +08:00
Aubr.Cool eb898f69c9 Correct dfs fd_is_open search index error 2015-01-27 11:00:25 +08:00
Bernard Xiong ab05daf4ef [LIBC] fix compiling warning 2014-12-06 07:26:19 +00:00
Grissiom 28ff3ed186 romfs: fix a use-before-set bug on checking the dirent 2014-11-03 17:32:50 +08:00
Grissiom b43573844d romfs: rewrite mkromfs.py 2014-11-03 12:20:09 +08:00
Grissiom e882597f9c romfs: check the dirent before use it
System will crash when the romfs is erased. Add checks before using them
to avoid it.
2014-11-03 12:10:25 +08:00
Grissiom 3531fa71aa romfs: declare the dummy entry as weak 2014-11-01 17:57:43 +08:00
Bernard Xiong b081df6b93 [NFS] fix opendir failed issue. 2014-11-01 10:53:44 +08:00
Grissiom 9a75583349 dfs: check for null reference 2014-10-14 16:09:10 +08:00
bernard 582aff86ed Merge branch 'master' of https://github.com/RT-Thread/rt-thread 2014-08-01 12:03:24 +08:00
bernard 516711dc1d [DFS] make comments cleanup. 2014-08-01 12:03:11 +08:00
Bernard Xiong 59c128c073 [libc] fix compiling warning 2014-07-31 09:30:18 +08:00
bernard a118801bfe [DFS] Add dfs_filesystem_get_mounted_path() function. 2014-06-26 13:59:26 +08:00
Grissiom 4b7e9c6447 dfs: assert the path is not null in dfs_filesystem_lookup
Clang complains about "Null pointer argument in call to string
comparison function". So assert on it.
2014-04-12 16:35:07 +08:00
bernard 6469a5a3d1 [DFS] fix compiling warning. 2014-04-02 14:02:36 +08:00
bernard 6cab3b7dfa [DFS] fix compiling warning in NFS 2014-03-10 11:48:47 +08:00
Bernard Xiong d0d239cd4c [DFS] fix compiling warning for NFS file system 2014-03-10 11:21:50 +08:00
Bernard Xiong 3d80e414ff [JS] fix the include path issue 2014-02-25 13:43:59 +08:00
Bernard Xiong 0468f0c87e Add INIT_FS_EXPORT for RAM file system 2014-02-20 22:06:59 +08:00
prife f015f36d05 dfs: support copy directory 2014-02-09 15:27:52 +08:00
bernard 201d11bb2f [DFS] Fix file size issue
This issue causes fstat & lseek not correct.
2014-02-01 21:35:23 +08:00
bernard 5a6ec7dcae [DFS] fix the wrong field comparison in FAT mount. 2014-01-26 22:43:12 +08:00
bernard e601c2a6ed Add sector size check when mounting a FAT file system. 2014-01-26 20:30:37 +08:00
bernard 2188d06003 [DFS] remove a compiling warning 2014-01-11 16:34:15 +08:00
prife c07a78ae00 nfs: fix bug
I have to mention that this bug is introduced by myself, in the last
commit <fd07f30f511335f506ae6557e300093d4dde421e> to dfs_nfs.c
2014-01-11 14:57:02 +08:00
bernard 7fd45f3d44 [DFS] remove the unnecessary code 2014-01-04 06:05:03 +08:00
prife 95006bb503 Merge pull request #215 from prife/master
fix dfs_unmount bug
2013-12-21 04:06:25 -08:00
Grissiom 1289dff203 DFS: let mount fail on device open error 2013-12-21 12:15:31 +08:00
prife 26a31d662d dfs: make elmfatfs check secter size everytime
more infomation:
http://www.rt-thread.org/phpBB3/topic2965.html
2013-12-21 12:04:19 +08:00
prife 4f9dc273ec dfs: fix dfs_unmount bug
fix #211
2013-12-21 11:35:09 +08:00
prife 27112267e9 dfs: rename varialbe name in dfs_filesystem_lookup
empty is confused in dfs_filesystem_lookup.
2013-12-21 10:58:52 +08:00
prife f4e8820bca dfs: refine more code
clean code with pointer rather than index
2013-12-19 13:58:30 +08:00
prife 7fd6d17d5b dfs: refine code
decrease indentation to make cleaner code
fix mkfs bug when there is no mkfs implementation
2013-12-19 00:31:39 +08:00
prife 3a33906ab1 simulator/jffs2: remove _TIME_T_DEFINED when built by VC++
_TIME_T_DEFINED was pre-defined in order to build jffs2 with VC.
While it may cause many side effects.
2013-10-17 23:47:08 +08:00
Grissiom 5fdca8371b DFS: add dfs_file_flush prototype in dfs_file.h 2013-10-11 14:55:23 +08:00
prife f71f0595d6 DFS/jffs2: fix bug when umount jffs2
found by haitao5198
clear mount parition device talbe when jffs2 mount falied
2013-09-28 14:57:05 +08:00
prife 12a6366217 DFS/jffs2: fix file mode init bug in jffs2_open/opendir
found by haitao52198
URL:http://www.rt-thread.org/phpBB3/viewtopic.php?f=3&t=3112&p=17153#p17153
2013-09-28 14:43:00 +08:00
bernard ac10730492 fix O_APPEND write issue in RAMFS 2013-07-29 14:50:12 +08:00
bernard ac850ef3f0 add device_open/close in mkfs 2013-07-29 14:43:52 +08:00
bernard d74dee0dd6 Add ramfs into building script 2013-07-29 13:52:59 +08:00
bernard a124e7bd22 add initialization debug code 2013-07-24 07:33:48 +08:00
bernard b96b35613f add mount table 2013-07-22 07:46:10 +08:00
prife 15b08b483a dfs: fix the variable definition bug in copy, found by ffgamelife from rt-thread.org 2013-07-06 16:41:10 +08:00
yiyue.fang 873a5de811 reformat the coding style in dfs_ramfs.c 2013-06-29 10:43:03 +08:00
yiyue.fang 773990abdb Embedded GPLv2 license in dfs 2013-06-26 22:30:40 +08:00
Bernard Xiong 9acd018cbb fix compiling warning 2013-06-23 07:57:22 +08:00
Bernard Xiong 88c9bc2d64 fix compiling error 2013-06-23 07:53:19 +08:00
Bernard Xiong 98c8a23e94 Add component initialization. 2013-06-23 07:48:42 +08:00
Bernard Xiong d80a471680 Fix the memheap_realloc issue 2013-06-03 06:44:35 +08:00
Grissiom 3b91e8143b add missing dfs_mkfs prototype in dfs_fs.h 2013-05-17 20:07:55 +08:00
Bernard Xiong 0e16b6dc97 add RAMFS implementation 2013-05-05 07:16:49 +08:00
geniusgogo f95cd9a354 dfs_fs.c: optimized redundant loop. 2013-04-01 02:53:59 +08:00
geniusgogo 8d6264af58 dfs.c: delete the redunant space in the line end. 2013-04-01 02:37:13 +08:00
geniusgogo ec6f9e3b5a dfs.c: fix null pointer bug. 2013-04-01 02:31:24 +08:00
prife 157e326487 dfs_elm.c: fix the head file conflicts caused by time.h 2013-03-02 18:56:07 +08:00
aozima 9bb005312f fixed uninitialized variable. 2013-03-01 12:34:01 +08:00
aozima f71555ec55 fixed dfs(elmfat) bug: fixed the stat(st_mtime) issue. 2013-03-01 12:23:28 +08:00
prife 4be62911f9 show volume size in KBytes in df 2013-01-25 12:17:47 +08:00
prife a4d661dcf1 fix memory leak in dfs_elm.c and umount fatfs when mount fatfs fails (this bug leads to mkfs failure in linux) 2013-01-22 23:47:32 +08:00