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
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
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
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 -
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
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
---
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
@@
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