aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2022-08-13 00:20:25 +0300
committerGitHub <[email protected]>2022-08-12 14:20:25 -0700
commitfbc210fab21e1ec9d744d7589c386fc148f7682e (patch)
tree25659a7d2a1ba79c50a8c260a4127d013fd2a304 /module/zcommon
parentb3d0568cfd65458c92f7ab3d7bb709087992628e (diff)
Enable relatime by default
Linux sets relatime on mount by default for any file system, but relatime=off in ZFS disables it explicitly. Let's be consistent with other file systems on Linux. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: George Melikov <[email protected]> Closes #13614
Diffstat (limited to 'module/zcommon')
-rw-r--r--module/zcommon/zfs_prop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zcommon/zfs_prop.c b/module/zcommon/zfs_prop.c
index 2a58088a7..0e91304ec 100644
--- a/module/zcommon/zfs_prop.c
+++ b/module/zcommon/zfs_prop.c
@@ -465,7 +465,7 @@ zfs_prop_init(void)
/* inherit index (boolean) properties */
zprop_register_index(ZFS_PROP_ATIME, "atime", 1, PROP_INHERIT,
ZFS_TYPE_FILESYSTEM, "on | off", "ATIME", boolean_table, sfeatures);
- zprop_register_index(ZFS_PROP_RELATIME, "relatime", 0, PROP_INHERIT,
+ zprop_register_index(ZFS_PROP_RELATIME, "relatime", 1, PROP_INHERIT,
ZFS_TYPE_FILESYSTEM, "on | off", "RELATIME", boolean_table,
sfeatures);
zprop_register_index(ZFS_PROP_DEVICES, "devices", 1, PROP_INHERIT,