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

!1154 Delete resize.f2fs option to avoid potential inode fault

Merge pull request !1154 from zyj-alex/master
......@@ -167,7 +167,7 @@ static int DoResizeF2fs(const char* device, const unsigned long long size)
int ret = 0;
if (size <= 0) {
char *cmd[] = {
file, "-s", (char *)device, NULL
file, (char *)device, NULL
};
int argc = ARRAY_LENGTH(cmd);
char **argv = (char **)cmd;
......@@ -178,7 +178,7 @@ static int DoResizeF2fs(const char* device, const unsigned long long size)
char sizeStr[RESIZE_BUFFER_SIZE] = {0};
sprintf_s(sizeStr, RESIZE_BUFFER_SIZE, "%llu", realSize);
char *cmd[] = {
file, "-s", "-t", sizeStr, (char *)device, NULL
file, "-t", sizeStr, (char *)device, NULL
};
int argc = ARRAY_LENGTH(cmd);
char **argv = (char **)cmd;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册