Skip to contentSkip to conversation

erofs: add sysfs feature entry for xattr prefixes

PATCH In review Jingbo Xu 3 participants 7 messages Sep 2

Subsystems (2)
lore
Share & tools
lore

Jingbo Xu

author
#0 lore raw

PATCH v3 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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-fs-erofs +1 -1
index e4cf6fc6a106..0b8b4354e40b 100644
@@ -5,7 +5,7 @@ Description:	Shows all enabled kernel features.
 		Supported features:
 		compr_cfgs, big_pcluster, chunked_file, device_table,
 		compr_head2, sb_chksum, ztailpacking, dedupe, fragments,
-		48bit, metabox.
+		xattr_prefixes, 48bit, metabox.
 
 What:		/sys/fs/erofs/<disk>/sync_decompress
 Date:		November 2021
fs/erofs/sysfs.c +2 -0
index 6734483a440f..dfcec9376cd5 100644
@@ -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
#1 lore raw
Quoted 12 lines · Jingbo Xu

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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

Quoted 4 lines
---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Why is adding a new feature a stable thing?

confused,

greg k-h

maintainer
#2 lore raw

Hi Greg,

Quoted 18 lines · Greg KH
Quoted 12 lines · Jingbo Xu

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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

Quoted 4 lines
---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Quoted 1 line

Why is adding a new feature a stable thing?

It's not a new feature (Also, this patch has 3 lines diff):
This is a bugfix to address the missing part of commit 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes"") since every on-disk features should be shown in /sys/fs/erofs/features/* according to the definition of:

What:           /sys/fs/erofs/features/
Date:           November 2021
Contact:        "Huang Jianan" <[email protected]>
Description:    Shows all enabled kernel features.

...

IOWs, this sysfs entry should be part of commit 6a318ccd7e08 to indicate this feature is supported since Linux 6.4+

Thanks,
Gao Xiang

Quoted 5 lines

confused,

greg k-h

#3 lore raw
Quoted 30 lines · Gao Xiang

Hi Greg,

Quoted 18 lines · Greg KH
Quoted 12 lines · Jingbo Xu

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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

Quoted 4 lines
---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Quoted 1 line

Why is adding a new feature a stable thing?

It's not a new feature (Also, this patch has 3 lines diff):
This is a bugfix to address the missing part of commit 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes"") since every on-disk features should be shown in /sys/fs/erofs/features/* according to the definition of:

Quoted 8 lines
What:           /sys/fs/erofs/features/
Date:           November 2021
Contact:        "Huang Jianan" <[email protected]>
Description:    Shows all enabled kernel features.

...

IOWs, this sysfs entry should be part of commit 6a318ccd7e08 to indicate this feature is supported since Linux 6.4+

Ok, but as this has not been present for a very long time, did anyone even notice and need this now in stable kernels? :)

thanks,

greg k-h

maintainer
#4 lore raw
Quoted 37 lines · Greg KH
Quoted 36 lines · Gao Xiang

Hi Greg,

Quoted 18 lines · Greg KH
Quoted 12 lines · Jingbo Xu

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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

Quoted 4 lines
---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Quoted 1 line

Why is adding a new feature a stable thing?

It's not a new feature (Also, this patch has 3 lines diff):
This is a bugfix to address the missing part of commit 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes"") since every on-disk features should be shown in /sys/fs/erofs/features/* according to the definition of:

What:           /sys/fs/erofs/features/
Date:           November 2021
Contact:        "Huang Jianan" <[email protected]>
Description:    Shows all enabled kernel features.

...

Quoted 5 lines
Quoted 2 lines

IOWs, this sysfs entry should be part of commit 6a318ccd7e08 to indicate this feature is supported since Linux 6.4+

Ok, but as this has not been present for a very long time, did anyone even notice and need this now in stable kernels? :)

I think Jingbo needs it (btw, I'm no longer in Alibaba Cloud anymore).

Also it would be better to port this into stable kernels so that users can get the supported on-disk features in a more unique obvious way.

Thanks,
Gao Xiang

Quoted 5 lines

thanks,

greg k-h

#5 lore raw
Quoted 44 lines · Gao Xiang
Quoted 37 lines · Greg KH
Quoted 36 lines · Gao Xiang

Hi Greg,

Quoted 18 lines · Greg KH
Quoted 12 lines · Jingbo Xu

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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

Quoted 4 lines
---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Quoted 1 line

Why is adding a new feature a stable thing?

It's not a new feature (Also, this patch has 3 lines diff):
This is a bugfix to address the missing part of commit 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes"") since every on-disk features should be shown in /sys/fs/erofs/features/* according to the definition of:

What:           /sys/fs/erofs/features/
Date:           November 2021
Contact:        "Huang Jianan" <[email protected]>
Description:    Shows all enabled kernel features.

...

Quoted 5 lines
Quoted 2 lines

IOWs, this sysfs entry should be part of commit 6a318ccd7e08 to indicate this feature is supported since Linux 6.4+

Ok, but as this has not been present for a very long time, did anyone even notice and need this now in stable kernels? :)

Quoted 6 lines

I think Jingbo needs it (btw, I'm no longer in Alibaba Cloud anymore).

Also it would be better to port this into stable kernels so that users can get the supported on-disk features in a more unique obvious way.

Ok, that makes more sense, sorry for the noise!

greg k-h

maintainer
#6 lore raw
Quoted 45 lines · Greg KH
Quoted 44 lines · Gao Xiang
Quoted 42 lines · Greg KH
Quoted 30 lines · Gao Xiang

Hi Greg,

Quoted 18 lines · Greg KH
Quoted 12 lines · Jingbo Xu

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+

---
changes since v2:
- add Reviewed-by tag (Gao Xiang)
- update list in Documentation/ABI/testing/sysfs-fs-erofs
(https://sashiko.dev/#/patchset/20260901062243.109172-1-jefflexu%40linux.alibaba.com)

Quoted 4 lines
---
 Documentation/ABI/testing/sysfs-fs-erofs | 2 +-
 fs/erofs/sysfs.c                         | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
Quoted 1 line

Why is adding a new feature a stable thing?

It's not a new feature (Also, this patch has 3 lines diff):
This is a bugfix to address the missing part of commit 6a318ccd7e08 ("erofs: enable long extended attribute name prefixes"") since every on-disk features should be shown in /sys/fs/erofs/features/* according to the definition of:

Quoted 8 lines
What:           /sys/fs/erofs/features/
Date:           November 2021
Contact:        "Huang Jianan" <[email protected]>
Description:    Shows all enabled kernel features.

...

IOWs, this sysfs entry should be part of commit 6a318ccd7e08 to indicate this feature is supported since Linux 6.4+

Ok, but as this has not been present for a very long time, did anyone even notice and need this now in stable kernels? :)

Quoted 8 lines
Quoted 6 lines

I think Jingbo needs it (btw, I'm no longer in Alibaba Cloud anymore).

Also it would be better to port this into stable kernels so that users can get the supported on-disk features in a more unique obvious way.

Ok, that makes more sense, sorry for the noise!

Thanks for your suggestion and time too!

Thanks,
Gao Xiang

Quoted 3 lines

greg k-h