Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
ec138686
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
大约 1 年 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ec138686
编写于
10月 15, 2021
作者:
S
sun_fan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init: fix bugs
Signed-off-by:
N
sun_fan
<
sun_fan1@hoperun.com
>
上级
8d948a8b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
4 deletion
+4
-4
interfaces/innerkits/fs_manager/fstab.c
interfaces/innerkits/fs_manager/fstab.c
+3
-3
interfaces/innerkits/include/fs_manager/fs_manager.h
interfaces/innerkits/include/fs_manager/fs_manager.h
+1
-1
未找到文件。
interfaces/innerkits/fs_manager/fstab.c
浏览文件 @
ec138686
...
...
@@ -342,11 +342,11 @@ static unsigned long ParseDefaultMountFlag(const char *str)
return
flags
;
}
unsigned
long
GetMountFlags
(
char
*
flags
,
char
*
fsSpecificData
,
size_t
fsSpecificDataSize
)
unsigned
long
GetMountFlags
(
char
*
mountFlag
,
char
*
fsSpecificData
,
size_t
fsSpecificDataSize
)
{
unsigned
long
flags
=
0
;
if
(
flags
==
NULL
||
fsSpecificData
==
NULL
)
{
if
(
mountFlag
==
NULL
||
fsSpecificData
==
NULL
)
{
return
0
;
}
...
...
@@ -358,7 +358,7 @@ unsigned long GetMountFlags(char *flags, char *fsSpecificData, size_t fsSpecific
// If the item configured in fstab contains flag over than 15,
// @SplitStringExt can handle it and parse them all. but the parse function will drop it.
const
int
maxCount
=
15
;
char
**
flagsVector
=
SplitStringExt
(
flags
,
","
,
&
flagCount
,
maxCount
);
char
**
flagsVector
=
SplitStringExt
(
mountFlag
,
","
,
&
flagCount
,
maxCount
);
if
(
flagsVector
==
NULL
||
flagCount
==
0
)
{
// No flags or something wrong in SplitStringExt,just return.
...
...
interfaces/innerkits/include/fs_manager/fs_manager.h
浏览文件 @
ec138686
...
...
@@ -66,7 +66,7 @@ int MountOneItem(FstabItem *item);
MountStatus
GetMountStatusForMountPoint
(
const
char
*
mp
);
int
MountAllWithFstabFile
(
const
char
*
file
,
bool
required
);
int
UmountAllWithFstabFile
(
const
char
*
file
);
unsigned
long
GetMountFlags
(
char
*
flags
,
char
*
fsSpecificFlags
,
size_t
fsSpecificFlagSize
);
unsigned
long
GetMountFlags
(
char
*
mountFlag
,
char
*
fsSpecificFlags
,
size_t
fsSpecificFlagSize
);
#ifdef __cplusplus
#if __cplusplus
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录