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
'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-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
___
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
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).
*
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