mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
f2fs-tools: add debug message for checking xattr
This patch adds debug message to confirm xattr block is checked. Signed-off-by: Changman Lee <cm224.lee@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
parent
2c877a862d
commit
6e8f2d5d22
@ -331,7 +331,7 @@ int fsck_chk_inode_blk(struct f2fs_sb_info *sbi,
|
||||
ASSERT(0);
|
||||
}
|
||||
|
||||
fsck_chk_xattr_blk(sbi, le32_to_cpu(node_blk->i.i_xattr_nid), blk_cnt);
|
||||
fsck_chk_xattr_blk(sbi, nid, le32_to_cpu(node_blk->i.i_xattr_nid), blk_cnt);
|
||||
|
||||
/* check data blocks in inode */
|
||||
for (idx = 0; idx < ADDRS_PER_INODE; idx++) {
|
||||
@ -694,7 +694,7 @@ int fsck_chk_orphan_node(struct f2fs_sb_info *sbi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fsck_chk_xattr_blk(struct f2fs_sb_info *sbi, u32 x_nid, u32 *blk_cnt)
|
||||
int fsck_chk_xattr_blk(struct f2fs_sb_info *sbi, u32 ino, u32 x_nid, u32 *blk_cnt)
|
||||
{
|
||||
struct f2fs_fsck *fsck = F2FS_FSCK(sbi);
|
||||
struct node_info ni;
|
||||
@ -721,6 +721,7 @@ int fsck_chk_xattr_blk(struct f2fs_sb_info *sbi, u32 x_nid, u32 *blk_cnt)
|
||||
}
|
||||
f2fs_set_bit(BLKOFF_FROM_MAIN(sbi, ni.blk_addr), fsck->main_area_bitmap);
|
||||
|
||||
DBG(2, "ino[0x%x] x_nid[0x%x]\n", ino, x_nid);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ enum seg_type {
|
||||
SEG_TYPE_MAX,
|
||||
};
|
||||
|
||||
extern int fsck_chk_xattr_blk(struct f2fs_sb_info *sbi, u32 x_nid, u32 *blk_cnt);
|
||||
extern int fsck_chk_xattr_blk(struct f2fs_sb_info *sbi, u32 ino, u32 x_nid, u32 *blk_cnt);
|
||||
extern int fsck_chk_orphan_node(struct f2fs_sb_info *sbi);
|
||||
|
||||
extern int fsck_chk_node_blk(struct f2fs_sb_info *sbi,
|
||||
|
Loading…
Reference in New Issue
Block a user