提交 8c68242f 编写于 作者: H hughes27

Signed-off-by: hughes802 <h.hu@huawei.com>

上级 a80b669f
......@@ -104,9 +104,15 @@ int DoFormat(const char *devPath, const char *fsType)
char **argv = (char **)formatCmds;
ret = ExecCommand(argc, argv);
} else if (strcmp(fsType, "f2fs") == 0) {
#ifdef __MUSL__
char *formatCmds[] = {
"/bin/mkfs.f2fs", (char *)devPath, NULL
};
#else
char *formatCmds[] = {
"/bin/make_f2fs", (char *)devPath, NULL
};
#endif
int argc = ARRAY_LENGTH(formatCmds);
char **argv = (char **)formatCmds;
ret = ExecCommand(argc, argv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册