Skip to content

Commit 71da339

Browse files
authored
Merge pull request #2263 from RT-Thread/fix_fdopen
[DFS] Remove opened file check
2 parents 806eb49 + 3b4a9f5 commit 71da339

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

components/dfs/src/dfs_file.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* 2005-02-22 Bernard The first version.
99
* 2011-12-08 Bernard Merges rename patch from iamcacy.
1010
* 2015-05-27 Bernard Fix the fd clear issue.
11+
* 2019-01-24 Bernard Remove file repeatedly open check.
1112
*/
1213

1314
#include <dfs.h>
@@ -48,14 +49,6 @@ int dfs_file_open(struct dfs_fd *fd, const char *path, int flags)
4849

4950
LOG_D("open file:%s", fullpath);
5051

51-
/* Check whether file is already open */
52-
if (fd_is_open(fullpath) == 0)
53-
{
54-
rt_free(fullpath); /* release path */
55-
56-
return -EBUSY;
57-
}
58-
5952
/* find filesystem */
6053
fs = dfs_filesystem_lookup(fullpath);
6154
if (fs == NULL)

0 commit comments

Comments
 (0)