[f2fs-dev] [PATCH] f2fs-tools: skipped to end on error syntax error

2020-11-10 Thread Robin Hsu via Linux-f2fs-devel
When error were found, we won't need to do any initialization but just quit. Signed-off-by: Robin Hsu --- fsck/main.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/fsck/main.c b/fsck/main.c index 32559f1..e70048b 100644 --- a/fsck/main.c +++ b/fsc

[f2fs-dev] [PATCH 1/1] f2fs-toos:fsck.f2fs Fix bad return value

2020-10-26 Thread Robin Hsu via Linux-f2fs-devel
'ret' should not have been used here: otherwise, it would be wrongly used as the error code and then be returned from main(). Signed-off-by: Robin Hsu --- fsck/fsck.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index f97e9fb..66e4e3f 100644 ---

[f2fs-dev] [PATCH 0/1] f2fs-tools:fsck.f2fs Fix bad return value

2020-10-26 Thread Robin Hsu via Linux-f2fs-devel
f2fs-tools:fsck.f2fs: Fix always return 1 (error) after asking user to restore lost files into ./lost_found Robin Hsu (1): f2fs-toos:fsck.f2fs Fix bad return value fsck/fsck.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.29.0.rc2.309.g374f81d7ae-goog ___

[f2fs-dev] [PATCH 2/2] fsck.f2fs: Enable user-space cache

2019-10-29 Thread Robin Hsu via Linux-f2fs-devel
Added command line options -c and -m to activate cache for fsck. It may significantly speed up fsck. Signed-off-by: Robin Hsu --- fsck/main.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/fsck/main.c b/fsck/main.c index 8c62a14..8edb177 10064

[f2fs-dev] [PATCH 1/2] libf2fs_io: Add user-space cache

2019-10-29 Thread Robin Hsu via Linux-f2fs-devel
Implemented cache options in F2FS configuration 'c': * use c.cache_config.num_cache_entry to set the number of cache entries (in block), minimum 1024, or 0 to disable cache. * use c.cache_config.max_hash_collision to set maximum hash collision (max 16). *

[f2fs-dev] [PATCH 0/2] f2fs-tools: Introduce cache to speed up fsck

2019-10-29 Thread Robin Hsu via Linux-f2fs-devel
Implemented cache and related command line options. Robin Hsu (2): libf2fs_io: Add user-space cache fsck.f2fs: Enable user-space cache fsck/main.c | 27 +++- include/f2fs_fs.h | 20 +++ lib/libf2fs_io.c | 317 ++ 3 files changed, 362 inser