[f2fs-dev] [PATCH] f2fs-tools: calculate inode checksum and writeback

2018-06-13 Thread Liu Xue
Calculate inode checksum and writeback when processing sload or resize. Signed-off-by: Xue Liu --- fsck/fsck.h| 1 + fsck/mount.c | 6 -- fsck/segment.c | 2 +- fsck/xattr.c | 3 +-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/fsck/fsck.h b/fsck/fsck.h index

[f2fs-dev] [PATCH] mkfs.f2fs: fix wrong end blkaddr

2017-10-10 Thread Liu Xue
The end blkaddr should use main blkaddr and add main area segments. --- mkfs/f2fs_format.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index b57f925..8a821d3 100644 --- a/mkfs/f2fs_format.c +++ b/mkfs/f2fs_format.c @@ -856,6

[f2fs-dev] [PATCH] fsck.f2fs: flush curseg sit entries

2016-11-23 Thread Liu Xue
Flush curseg sit entries, since type of sit entries may be changed after move_curseg_info. Signed-off-by: Xue Liu --- fsck/fsck.c | 25 + fsck/fsck.h | 4 fsck/mount.c | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) diff --git

[f2fs-dev] [RFC PATCH] fsck.f2fs: check valid values for dot dentries

2016-02-25 Thread Liu Xue
Check valid values for '.' and '..', such as ino, hash_code, and the number of dot or dotdot in the directory. Signed-off-by: Xue Liu Signed-off-by: Yong Sheng --- fsck/fsck.c | 78 -

[f2fs-dev] [RFC PATCH] f2fs: recovery missing dot dentries in root directory

2016-02-25 Thread Liu Xue
If f2fs was corrupted with missing dot dentries in root dirctory, it needs to recover them after fsck.f2fs set F2FS_INLINE_DOTS flag in directory inode when fsck.f2fs detects missing dot dentries. Signed-off-by: Xue Liu Signed-off-by: Yong Sheng

[f2fs-dev] [PATCH] mkfs.f2fs: fix check error when calloc sum_compact failure

2015-12-20 Thread Liu Xue
We should check sum_compact value when deal with sum_compact calloc failure. Signed-off-by: Xue Liu --- mkfs/f2fs_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index b0c12f2..7caf733 100644 ---

[f2fs-dev] [PATCH] fsck.f2fs: deal with realloc failure

2015-12-02 Thread Liu Xue
Deal with realloc failure to avoid memory leak and memory free. Signed-off-by: Xue Liu --- fsck/fsck.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index d3b5dd4..c39fd61 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@

[f2fs-dev] [PATCH] f2fs: unify f2fs_bug_on when check blocks and segment

2015-07-27 Thread Liu Xue
Replace BUG_ON with f2fs_bug_on to deal with block and segment validity check failed. Signed-off-by: Xue Liu liuxueliu@huawei.com --- fs/f2fs/segment.h | 45 - 1 file changed, 8 insertions(+), 37 deletions(-) diff --git a/fs/f2fs/segment.h