summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorbernard <[email protected]>2015-01-31 14:48:31 +0800
committerbernard <[email protected]>2015-01-31 14:48:31 +0800
commit72298bac328461d9b5ab4b6a94bcf801aba2fb8f (patch)
treee2a3cf9fbcfe1b8046d33593bdb4f21fd0963158 /components/dfs
parent1f2a6e3a896a648cce963b8f0d0a82b1afbcefaa (diff)
parent7e11b8eb626bf00ddc4a6d29ac54d179455d026c (diff)
Merge remote-tracking branch 'bernard/master'
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/src/dfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c
index 4e38615ba7..7e56137aba 100644
--- a/components/dfs/src/dfs.c
+++ b/components/dfs/src/dfs.c
@@ -234,7 +234,11 @@ int fd_is_open(const char *pathname)
mountpath = fullpath + strlen(fs->path);
dfs_lock();
+#ifdef DFS_USING_STDIO
+ for (index = 3; index < DFS_FD_MAX+3; index++)
+#else
for (index = 0; index < DFS_FD_MAX; index++)
+#endif
{
fd = &(fd_table[index]);
if (fd->fs == RT_NULL)