erofs: add sysfs feature entry for xattr prefixes
Subsystems (2)
PATCH v2 1/1 erofs: add sysfs feature entry for xattr prefixes
Let /sys/fs/erofs/features/xattr_prefixes advertise that this kernel supports the EROFS_FEATURE_INCOMPAT_XATTR_PREFIXES on-disk format.
Fixes 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes")
Cc <[email protected]> # 6.4+
Signed-off-by Jingbo Xu <[email protected]>
---
changes since v1:
- add Fixes tag and versioned Cc-stable tag
--- fs/erofs/sysfs.c | 2 ++ 1 file changed, 2 insertions(+)
fs/erofs/sysfs.c +2 -0
@@ -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,
Signature · 1 line
2.19.1.6.gb485710b
Quoted 6 lines · Jingbo Xu
Let
/sys/fs/erofs/features/xattr_prefixesadvertise that this kernel supports theEROFS_FEATURE_INCOMPAT_XATTR_PREFIXESon-disk format.Fixes 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes")Cc <[email protected]> # 6.4+Signed-off-by Jingbo Xu <[email protected]>
Reviewed-by Gao Xiang <[email protected]>
Thanks,
Gao Xiang