Skip to content

ocfs2: two fixes for xattr

Tiger Yang ocfs2-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ocfs2: set xh_free_start when xattr header in inode/blockfs/ocfs2/ocfs2_fs.h fs/ocfs2/xattr.c+42 -781 reply
1/2ocfs2: set xh_free_start when xattr header in inode/block+0 -01 reply
2/2ocfs2: set gap to seperate entry and value when xattr in bucketfs/ocfs2/xattr.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Ocfs2-devel] [PATCH 0/2] ocfs2: two fixes for xattr

Hi,

For EAs data structure in inode/block are little different from them in bucket. These two patches try to make them same for the most part.

The first patch set xh_free_start and xh_name_value_len when EAs in inode/block. xh_free_start is useful to keep the minimum offset of the xattr name/value. But xh_name_value_len is not very useful because we don't have "hole" when EAs in inode/block, we just calculate and set it here, maybe it's useful for fsck.

The second patch reserve a blank space between xattr entry and name/value when EAs in bucket. This is same as EAs in inode/block and is useful in fsck.

Thanks,
tiger