From 2256fcca2976310f2fba42d21685b8a7bc8aed35 Mon Sep 17 00:00:00 2001 From: LuoShifu_x Date: Tue, 23 Jul 2024 15:39:43 +0000 Subject: [PATCH] fixed bug Signed-off-by: LuoShifu_x --- interfaces/innerkits/fs_manager/fstab_mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/innerkits/fs_manager/fstab_mount.c b/interfaces/innerkits/fs_manager/fstab_mount.c index 006c6b5bb..27d94cf55 100755 --- a/interfaces/innerkits/fs_manager/fstab_mount.c +++ b/interfaces/innerkits/fs_manager/fstab_mount.c @@ -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);