[PATCH] erofs: add sysfs feature entry for xattr prefixes

Jingbo Xu posted 1 patch 3 weeks, 4 days ago
There is a newer version of this series
fs/erofs/sysfs.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] erofs: add sysfs feature entry for xattr prefixes
Posted by Jingbo Xu 3 weeks, 4 days ago
Let /sys/fs/erofs/features/xattr_prefixes advertise that this kernel
supports the EROFS_FEATURE_INCOMPAT_XATTR_PREFIXES on-disk format.

Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
---
 fs/erofs/sysfs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/erofs/sysfs.c b/fs/erofs/sysfs.c
index 6734483a440f..dfcec9376cd5 100644
--- a/fs/erofs/sysfs.c
+++ b/fs/erofs/sysfs.c
@@ -95,6 +95,7 @@ EROFS_ATTR_FEATURE(sb_chksum);
 EROFS_ATTR_FEATURE(ztailpacking);
 EROFS_ATTR_FEATURE(fragments);
 EROFS_ATTR_FEATURE(dedupe);
+EROFS_ATTR_FEATURE(xattr_prefixes);
 EROFS_ATTR_FEATURE(48bit);
 EROFS_ATTR_FEATURE(metabox);
 
@@ -108,6 +109,7 @@ static struct attribute *erofs_feat_attrs[] = {
 	ATTR_LIST(ztailpacking),
 	ATTR_LIST(fragments),
 	ATTR_LIST(dedupe),
+	ATTR_LIST(xattr_prefixes),
 	ATTR_LIST(48bit),
 	ATTR_LIST(metabox),
 	NULL,
-- 
2.19.1.6.gb485710b
Re: [PATCH] erofs: add sysfs feature entry for xattr prefixes
Posted by Gao Xiang 3 weeks, 4 days ago
Hi Jingbo,

On Tue, Sep 01, 2026 at 10:46:22AM +0800, Jingbo Xu wrote:
> Let /sys/fs/erofs/features/xattr_prefixes advertise that this kernel
> supports the EROFS_FEATURE_INCOMPAT_XATTR_PREFIXES on-disk format.
> 
> Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>

It'd be better to add a "Fixes:" tag since it should be backported by
the stable kernels which have this feature.

Also it'd also be better to mention the first impacted kernel version
in the commit message too. 

Thanks,
Gao Xiang