aboutsummaryrefslogtreecommitdiffstats
path: root/module/zcommon
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-08-18 09:52:30 -0700
committerGitHub <[email protected]>2020-08-18 09:52:30 -0700
commit5e7eaf8fbda348db9878ce013ecb4ab5e9b5cf5a (patch)
treeb8c71233ba009a68f6ab8fff6d9c9a2b584357fa /module/zcommon
parent009cc8e884a84aeebed612ab64c30f77eab38392 (diff)
Add define to enable autotrim to default to on
In FreeBSD trim has defaulted to on for several years. In order to minimize POLA violations on import it's important to maintain this default when importing vendored openzfs in to FreeBSD base. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10719
Diffstat (limited to 'module/zcommon')
-rw-r--r--module/zcommon/zpool_prop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zcommon/zpool_prop.c b/module/zcommon/zpool_prop.c
index 3cfb435e4..815fad6df 100644
--- a/module/zcommon/zpool_prop.c
+++ b/module/zcommon/zpool_prop.c
@@ -129,7 +129,7 @@ zpool_prop_init(void)
ZIO_FAILURE_MODE_WAIT, PROP_DEFAULT, ZFS_TYPE_POOL,
"wait | continue | panic", "FAILMODE", failuremode_table);
zprop_register_index(ZPOOL_PROP_AUTOTRIM, "autotrim",
- SPA_AUTOTRIM_OFF, PROP_DEFAULT, ZFS_TYPE_POOL,
+ SPA_AUTOTRIM_DEFAULT, PROP_DEFAULT, ZFS_TYPE_POOL,
"on | off", "AUTOTRIM", boolean_table);
/* hidden properties */