erofs: handle long xattr name prefixes properly
authorJingbo Xu <jefflexu@linux.alibaba.com>
Tue, 11 Apr 2023 09:35:37 +0000 (17:35 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Apr 2023 17:15:52 +0000 (01:15 +0800)
commit82bc1ef41d275106a2b5288e4f5b0df19223066a
tree421f93b6f4faf865f70cf7d57bdbdcfd3f9c0b34
parent9e382914617c5cab89a01a223b8d00bbd43ad3b3
erofs: handle long xattr name prefixes properly

Make .{list,get}xattr routines adapted to long xattr name prefixes.
When the bit 7 of erofs_xattr_entry.e_name_index is set, it indicates
that it refers to a long xattr name prefix.

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Acked-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20230411093537.127286-1-jefflexu@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/xattr.c