未验证 提交 0200b468 编写于 作者: O openharmony_ci 提交者: Gitee

!1442 fix format /data

Merge pull request !1442 from 张文迪/cherry-pick-1666947042
......@@ -105,11 +105,11 @@ int DoFormat(const char *devPath, const char *fsType)
} else if (strcmp(fsType, "f2fs") == 0) {
#ifdef __MUSL__
char *formatCmds[] = {
"/bin/mkfs.f2fs", (char *)devPath, NULL
"/bin/mkfs.f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", (char *)devPath, NULL
};
#else
char *formatCmds[] = {
"/bin/make_f2fs", (char *)devPath, NULL
"/bin/make_f2fs", "-d1", "-O", "encrypt", "-O", "quota", "-O", "verity", (char *)devPath, NULL
};
#endif
int argc = ARRAY_LENGTH(formatCmds);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册