Message ID | 20231028234813.496851-2-jaegeuk@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [f2fs-dev,1/2] f2fs-tools: use F2FS_BLKSIZE by default | expand |
diff --git a/fsck/xattr.c b/fsck/xattr.c index e291ef4740ba..3163639b9d41 100644 --- a/fsck/xattr.c +++ b/fsck/xattr.c @@ -44,6 +44,9 @@ void *read_all_xattrs(struct f2fs_sb_info *sbi, struct f2fs_node *inode, get_node_info(sbi, xnid, &ni); ret = dev_read_block(txattr_addr + inline_size, ni.blk_addr); ASSERT(ret >= 0); + memset(txattr_addr + inline_size + F2FS_BLKSIZE - + sizeof(struct node_footer), 0, + sizeof(struct node_footer)); } header = XATTR_HDR(txattr_addr);
This avoids false alarm on xfstests/generic/425. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> --- fsck/xattr.c | 3 +++ 1 file changed, 3 insertions(+)