提交 47ed3a03 编写于 作者: G Guangyao Ma

fix(vfs):individual code needs separated by LOSCFG_FS_VFS_BLOCK_DEVICE

Change-Id: I9802b6f9f0db6d137c0d4e3fa83f9ea7a3ecaa32
上级 58fc3387
...@@ -190,6 +190,7 @@ int fp_open(char *fullpath, int oflags, mode_t mode) ...@@ -190,6 +190,7 @@ int fp_open(char *fullpath, int oflags, mode_t mode)
ret = -EINVAL; ret = -EINVAL;
goto errout_without_count; goto errout_without_count;
} }
#ifdef LOSCFG_FS_VFS_BLOCK_DEVICE
if (vnode->type == VNODE_TYPE_BLK) { if (vnode->type == VNODE_TYPE_BLK) {
fd = block_proxy(fullpath, oflags); fd = block_proxy(fullpath, oflags);
VnodeDrop(); VnodeDrop();
...@@ -200,6 +201,7 @@ int fp_open(char *fullpath, int oflags, mode_t mode) ...@@ -200,6 +201,7 @@ int fp_open(char *fullpath, int oflags, mode_t mode)
} }
return fd; return fd;
} }
#endif
if ((oflags & O_CREAT) && (oflags & O_EXCL)) if ((oflags & O_CREAT) && (oflags & O_EXCL))
{ {
ret = -EEXIST; ret = -EEXIST;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册