fixed bug

Signed-off-by: LuoShifu_x <luoshifu1@huawei.com>
This commit is contained in:
LuoShifu_x 2024-07-23 15:39:43 +00:00 committed by Gitee
parent fff33cfaac
commit 2256fcca29
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -284,7 +284,7 @@ static int DoResizeF2fs(const char* device, const unsigned long long size, const
int argc = 0;
BEGET_ERROR_CHECK(access(file, F_OK) == 0, return -1, "resize.f2fs is not exists.");
BEGET_ERROR_CHECK(!NeedDoResizeByKdump(), return -1, "no need do resize, bucause kdump has done");
BEGET_ERROR_CHECK(NeedDoResizeByKdump(), return -1, "no need do resize, bucause kdump has done");
argv[argc++] = file;
if (fsManagerFlags & FS_MANAGER_PROJQUOTA) {
@ -540,7 +540,7 @@ int MountOneItem(FstabItem *item)
SwitchRoot("/usr");
}
#endif
InitPostMount(item->mountPoint, rc, item->fsType);
InitPostMount(item->mountPoint, rc);
if (rc != 0) {
if (FM_MANAGER_NOFAIL_ENABLED(item->fsManagerFlags)) {
BEGET_LOGE("Mount no fail device %s to %s failed, err = %d", item->deviceName, item->mountPoint, errno);