2018-06-06 10:42:14 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
2005-11-02 11:58:39 +08:00
|
|
|
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
|
|
|
* All Rights Reserved.
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
|
|
|
#include "xfs.h"
|
2023-02-09 00:59:56 +08:00
|
|
|
#include "xfs_error.h"
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
|
|
|
|
* other XFS code uses these values. Times are measured in centisecs (i.e.
|
2021-01-23 08:48:43 +08:00
|
|
|
* 100ths of a second) with the exception of blockgc_timer, which is measured
|
|
|
|
* in seconds.
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
|
|
|
xfs_param_t xfs_params = {
|
|
|
|
/* MIN DFLT MAX */
|
|
|
|
.sgid_inherit = { 0, 0, 1 },
|
|
|
|
.symlink_mode = { 0, 0, 1 },
|
2023-02-09 00:59:56 +08:00
|
|
|
.panic_mask = { 0, 0, XFS_PTAG_MASK},
|
2005-04-17 06:20:36 +08:00
|
|
|
.error_level = { 0, 3, 11 },
|
|
|
|
.syncd_timer = { 1*100, 30*100, 7200*100},
|
|
|
|
.stats_clear = { 0, 0, 1 },
|
|
|
|
.inherit_sync = { 0, 1, 1 },
|
|
|
|
.inherit_nodump = { 0, 1, 1 },
|
|
|
|
.inherit_noatim = { 0, 1, 1 },
|
|
|
|
.xfs_buf_timer = { 100/2, 1*100, 30*100 },
|
|
|
|
.xfs_buf_age = { 1*100, 15*100, 7200*100},
|
|
|
|
.inherit_nosym = { 0, 0, 1 },
|
|
|
|
.rotorstep = { 1, 1, 255 },
|
2006-06-09 12:54:19 +08:00
|
|
|
.inherit_nodfrg = { 0, 1, 1 },
|
2007-08-16 13:20:56 +08:00
|
|
|
.fstrm_timer = { 1, 30*100, 3600*100},
|
2021-01-23 08:48:43 +08:00
|
|
|
.blockgc_timer = { 1, 300, 3600*24},
|
2005-04-17 06:20:36 +08:00
|
|
|
};
|
2014-09-09 09:56:13 +08:00
|
|
|
|
|
|
|
struct xfs_globals xfs_globals = {
|
|
|
|
.log_recovery_delay = 0, /* no delay by default */
|
2018-05-11 12:50:23 +08:00
|
|
|
.mount_delay = 0, /* no delay by default */
|
2017-06-15 12:29:13 +08:00
|
|
|
#ifdef XFS_ASSERT_FATAL
|
|
|
|
.bug_on_assert = true, /* assert failures BUG() */
|
|
|
|
#else
|
|
|
|
.bug_on_assert = false, /* assert failures WARN() */
|
|
|
|
#endif
|
2019-07-03 22:33:26 +08:00
|
|
|
#ifdef DEBUG
|
|
|
|
.pwork_threads = -1, /* automatic thread detection */
|
2022-05-11 15:01:22 +08:00
|
|
|
.larp = false, /* log attribute replay */
|
2019-07-03 22:33:26 +08:00
|
|
|
#endif
|
2023-12-16 02:03:28 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Leave this many record slots empty when bulk loading btrees. By
|
|
|
|
* default we load new btree leaf blocks 75% full.
|
|
|
|
*/
|
|
|
|
.bload_leaf_slack = -1,
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Leave this many key/ptr slots empty when bulk loading btrees. By
|
|
|
|
* default we load new btree node blocks 75% full.
|
|
|
|
*/
|
|
|
|
.bload_node_slack = -1,
|
2014-09-09 09:56:13 +08:00
|
|
|
};
|