blob: f62fa652c2fd248b186f021cc1dcab9c9b5f78db [file] [log] [blame]
Dave Chinner0b61f8a2018-06-05 19:42:14 -07001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Nathan Scott7b718762005-11-02 14:58:39 +11003 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#include "xfs.h"
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
8/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
10 * other XFS code uses these values. Times are measured in centisecs (i.e.
Darrick J. Wong9669f512021-01-22 16:48:43 -080011 * 100ths of a second) with the exception of blockgc_timer, which is measured
12 * in seconds.
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 */
14xfs_param_t xfs_params = {
15 /* MIN DFLT MAX */
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 .sgid_inherit = { 0, 0, 1 },
17 .symlink_mode = { 0, 0, 1 },
Marco Benattod519da42019-02-01 09:12:20 -080018 .panic_mask = { 0, 0, 256 },
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 .error_level = { 0, 3, 11 },
20 .syncd_timer = { 1*100, 30*100, 7200*100},
21 .stats_clear = { 0, 0, 1 },
22 .inherit_sync = { 0, 1, 1 },
23 .inherit_nodump = { 0, 1, 1 },
24 .inherit_noatim = { 0, 1, 1 },
25 .xfs_buf_timer = { 100/2, 1*100, 30*100 },
26 .xfs_buf_age = { 1*100, 15*100, 7200*100},
27 .inherit_nosym = { 0, 0, 1 },
28 .rotorstep = { 1, 1, 255 },
Barry Naujokd3446ea2006-06-09 14:54:19 +100029 .inherit_nodfrg = { 0, 1, 1 },
David Chinner8da22d72007-08-16 15:20:56 +100030 .fstrm_timer = { 1, 30*100, 3600*100},
Darrick J. Wong9669f512021-01-22 16:48:43 -080031 .blockgc_timer = { 1, 300, 3600*24},
Linus Torvalds1da177e2005-04-16 15:20:36 -070032};
Brian Foster2e227172014-09-09 11:56:13 +100033
34struct xfs_globals xfs_globals = {
35 .log_recovery_delay = 0, /* no delay by default */
Dave Chinnerdae5cd82018-05-10 21:50:23 -070036 .mount_delay = 0, /* no delay by default */
Brian Foster1040960e2017-06-14 21:29:13 -070037#ifdef XFS_ASSERT_FATAL
38 .bug_on_assert = true, /* assert failures BUG() */
39#else
40 .bug_on_assert = false, /* assert failures WARN() */
41#endif
Darrick J. Wong40786712019-07-03 07:33:26 -070042#ifdef DEBUG
43 .pwork_threads = -1, /* automatic thread detection */
44#endif
Brian Foster2e227172014-09-09 11:56:13 +100045};