Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party NuttX
提交
952cbb9f
T
Third Party NuttX
项目概览
OpenHarmony
/
Third Party NuttX
大约 1 年 前同步成功
通知
5
Star
19
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party NuttX
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
952cbb9f
编写于
8月 31, 2021
作者:
O
openharmony_ci
提交者:
Gitee
8月 31, 2021
浏览文件
操作
浏览文件
下载
差异文件
!79 liteos补丁能力支持
Merge pull request !79 from jason_gitee/master
上级
1f9addfa
d892e6a6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
16 addition
and
20 deletion
+16
-20
fs/mount/fs_mount.c
fs/mount/fs_mount.c
+16
-0
fs/mount/fs_umount.c
fs/mount/fs_umount.c
+0
-20
未找到文件。
fs/mount/fs_mount.c
浏览文件 @
952cbb9f
...
...
@@ -62,6 +62,9 @@
#include "fs/mount.h"
#include "fs/driver.h"
#include "fs/fs.h"
#ifdef LOSCFG_FS_ZPFS
#include "zpfs.h"
#endif
/* At least one filesystem must be defined, or this file will not compile.
...
...
@@ -255,6 +258,19 @@ int mount(const char *source, const char *target,
#endif
mnt
=
MountAlloc
(
mountpt_vnode
,
(
struct
MountOps
*
)
mops
);
#ifdef LOSCFG_FS_ZPFS
if
(
strcmp
(
filesystemtype
,
ZPFS_NAME
)
==
0
)
{
ret
=
ZpfsPrepare
(
source
,
target
,
mnt
);
if
(
ret
<
0
)
{
errcode
=
ret
;
goto
errout_with_mountpt
;
}
}
#endif
mnt
->
mountFlags
=
mountflags
;
mountpt_vnode
->
useCount
++
;
...
...
fs/mount/fs_umount.c
浏览文件 @
952cbb9f
...
...
@@ -91,10 +91,6 @@ int umount(const char *target)
struct
Vnode
*
covered_vnode
=
NULL
;
struct
Mount
*
mnt
=
NULL
;
int
ret
;
#ifdef LOSCFG_FS_ZPFS
bool
isZpfs
=
false
;
struct
inode
zpfsInode
;
#endif
/* Verify required pointer arguments */
...
...
@@ -144,16 +140,6 @@ int umount(const char *target)
goto
errout
;
}
#ifdef LOSCFG_FS_ZPFS
if
(
IsZpfsFileSystem
(
mountpt_vnode
))
{
isZpfs
=
true
;
zpfsInode
.
i_private
=
mountpt_vnode
->
i_private
;
zpfsInode
.
u
.
i_ops
=
mountpt_vnode
->
u
.
i_ops
;
zpfsInode
.
i_flags
=
mountpt_vnode
->
i_flags
;
}
#endif
/* Release the vnode under the mount point */
if
(
fs_in_use
(
mnt
,
target
))
{
...
...
@@ -183,12 +169,6 @@ int umount(const char *target)
;
/* block driver operations after umount */
}
#ifdef LOSCFG_FS_ZPFS
if
(
isZpfs
)
{
ZpfsCleanUp
((
void
*
)
&
zpfsInode
,
fullpath
);
}
#endif
covered_vnode
->
newMount
=
NULL
;
covered_vnode
->
flag
&=
~
(
VNODE_FLAG_MOUNT_ORIGIN
);
VnodeDrop
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录