aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2024-09-23 19:50:48 +0300
committerGitHub <[email protected]>2024-09-23 09:50:48 -0700
commite419a63bf4cd6abb58e392b4341a8057c4481dba (patch)
tree6a8b925294254e0ecb310fc1b564abe78fd28802 /module/zcommon
parent1d84c9eb661802e81dde6677e3c38ecdfe0bda6c (diff)
xattr dataset prop: change defaults to sa
It's the main recommendation to set xattr=sa even in man pages, so let's set it by default. xattr=sa don't use feature flag, so in the worst case we'll have non-readable xattrs by other non-openzfs platforms. Non-overridden default `xattr` prop of existing pools will automatically use `sa` after this commit too. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #15147
Diffstat (limited to 'module/zcommon')
-rw-r--r--module/zcommon/zfs_prop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c
index 618e863c5..20cc0dffc 100644
--- a/module/zcommon/zfs_prop.c
+++ b/module/zcommon/zfs_prop.c
@@ -362,7 +362,7 @@ zfs_prop_init(void)
static const zprop_index_t xattr_table[] = {
{ "off", ZFS_XATTR_OFF },
- { "on", ZFS_XATTR_DIR },
+ { "on", ZFS_XATTR_SA },
{ "sa", ZFS_XATTR_SA },
{ "dir", ZFS_XATTR_DIR },
{ NULL }
@@ -475,7 +475,7 @@ zfs_prop_init(void)
zprop_register_index(ZFS_PROP_LOGBIAS, "logbias", ZFS_LOGBIAS_LATENCY,
PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
"latency | throughput", "LOGBIAS", logbias_table, sfeatures);
- zprop_register_index(ZFS_PROP_XATTR, "xattr", ZFS_XATTR_DIR,
+ zprop_register_index(ZFS_PROP_XATTR, "xattr", ZFS_XATTR_SA,
PROP_INHERIT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_SNAPSHOT,
"on | off | dir | sa", "XATTR", xattr_table, sfeatures);
zprop_register_index(ZFS_PROP_DNODESIZE, "dnodesize",