Commit 4ea4f1db ("fsck.f2fs: large volume support") added the support for large volume over about 3TB. The "cp_payload" is added to start_blk, but not removed from orphan_blkaddr.
Fixes: 4ea4f1db ("fsck.f2fs: large volume support") Signed-off-by: Junling Zheng <zhengjunl...@huawei.com> --- fsck/fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 6f47c5d..624adae 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -1426,7 +1426,7 @@ void fsck_chk_orphan_node(struct f2fs_sb_info *sbi) return; start_blk = __start_cp_addr(sbi) + 1 + get_sb(cp_payload); - orphan_blkaddr = __start_sum_addr(sbi) - 1; + orphan_blkaddr = __start_sum_addr(sbi) - 1 - get_sb(cp_payload); orphan_blk = calloc(BLOCK_SZ, 1); ASSERT(orphan_blk); -- 1.9.1 ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel