You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In newer versions of ZFS, certain prefixes for xattr (extended attribute) names are restricted. Specifically, the 'trusted' prefix used by GlusterFS is now prohibited in ZFS, leading to conflicts. Consequently, ZFS cannot be used as a brick location in these newer versions.
The exact command to reproduce the issue:
Issue following command FreeBSD with filename 'test' located on zfs volume:
setextattr user trusted.test test /zfs/test
Description of problem:
In newer versions of ZFS, certain prefixes for xattr (extended attribute) names are restricted. Specifically, the 'trusted' prefix used by GlusterFS is now prohibited in ZFS, leading to conflicts. Consequently, ZFS cannot be used as a brick location in these newer versions.
The exact command to reproduce the issue:
Issue following command FreeBSD with filename 'test' located on zfs volume:
setextattr user trusted.test test /zfs/test
so also GlusterFS is failing.
The full output of the command that failed:
setextattr: /zfs/test: failed: Invalid argument
Expected results:
no error
Mandatory info:
GlusterFS 8/9/10/11
OpenZFS 2.2.3
Additional info:
For example OpenZFS 2.2.3 file 'includes/sys/fs/zfs.h' define forbidden prefixes:
#define ZFS_XA_NS_FREEBSD_PREFIX "freebsd:"
#define ZFS_XA_NS_FREEBSD_PREFIX_LEN strlen("freebsd:")
#define ZFS_XA_NS_LINUX_SECURITY_PREFIX "security."
#define ZFS_XA_NS_LINUX_SECURITY_PREFIX_LEN strlen("security.")
#define ZFS_XA_NS_LINUX_SYSTEM_PREFIX "system."
#define ZFS_XA_NS_LINUX_SYSTEM_PREFIX_LEN strlen("system.")
#define ZFS_XA_NS_LINUX_TRUSTED_PREFIX "trusted."
#define ZFS_XA_NS_LINUX_TRUSTED_PREFIX_LEN strlen("trusted.")
#define ZFS_XA_NS_LINUX_USER_PREFIX "user."
#define ZFS_XA_NS_LINUX_USER_PREFIX_LEN strlen("user.")
#define ZFS_XA_NS_PREFIX_MATCH(ns, name)
(strncmp(name, ZFS_XA_NS_##ns##PREFIX,
ZFS_XA_NS##ns##_PREFIX_LEN) == 0)
#define ZFS_XA_NS_PREFIX_FORBIDDEN(name)
(ZFS_XA_NS_PREFIX_MATCH(FREEBSD, name) ||
ZFS_XA_NS_PREFIX_MATCH(LINUX_SECURITY, name) ||
ZFS_XA_NS_PREFIX_MATCH(LINUX_SYSTEM, name) ||
ZFS_XA_NS_PREFIX_MATCH(LINUX_TRUSTED, name) ||
ZFS_XA_NS_PREFIX_MATCH(LINUX_USER, name))
- The operating system / glusterfs version:
Checked on FreeBSD
The text was updated successfully, but these errors were encountered: