2018-06-06 02:42:14 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2005-04-16 22:20:36 +00:00
|
|
|
/*
|
2005-11-02 03:58:39 +00:00
|
|
|
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
|
|
|
|
* All Rights Reserved.
|
2005-04-16 22:20:36 +00:00
|
|
|
*/
|
|
|
|
#include "xfs.h"
|
|
|
|
#include "xfs_sysctl.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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.
|
2016-10-03 16:11:46 +00:00
|
|
|
* 100ths of a second) with the exception of eofb_timer and cowb_timer, which
|
|
|
|
* are measured in seconds.
|
2005-04-16 22:20:36 +00:00
|
|
|
*/
|
|
|
|
xfs_param_t xfs_params = {
|
|
|
|
/* MIN DFLT MAX */
|
|
|
|
.sgid_inherit = { 0, 0, 1 },
|
|
|
|
.symlink_mode = { 0, 0, 1 },
|
2019-02-01 17:12:20 +00:00
|
|
|
.panic_mask = { 0, 0, 256 },
|
2005-04-16 22:20:36 +00: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 04:54:19 +00:00
|
|
|
.inherit_nodfrg = { 0, 1, 1 },
|
2007-08-16 05:20:56 +00:00
|
|
|
.fstrm_timer = { 1, 30*100, 3600*100},
|
2012-11-06 14:50:47 +00:00
|
|
|
.eofb_timer = { 1, 300, 3600*24},
|
2016-10-03 16:11:46 +00:00
|
|
|
.cowb_timer = { 1, 1800, 3600*24},
|
2005-04-16 22:20:36 +00:00
|
|
|
};
|
2014-09-09 01:56:13 +00:00
|
|
|
|
|
|
|
struct xfs_globals xfs_globals = {
|
|
|
|
.log_recovery_delay = 0, /* no delay by default */
|
2018-05-11 04:50:23 +00:00
|
|
|
.mount_delay = 0, /* no delay by default */
|
2017-06-15 04:29:13 +00:00
|
|
|
#ifdef XFS_ASSERT_FATAL
|
|
|
|
.bug_on_assert = true, /* assert failures BUG() */
|
|
|
|
#else
|
|
|
|
.bug_on_assert = false, /* assert failures WARN() */
|
|
|
|
#endif
|
2014-09-09 01:56:13 +00:00
|
|
|
};
|