blob: 5169e84ae38255a9438d2f7425c534b4954b9c9f [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#include "xfs_sysctl.h"
8
9/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070010 * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
11 * other XFS code uses these values. Times are measured in centisecs (i.e.
Darrick J. Wong83104d42016-10-03 09:11:46 -070012 * 100ths of a second) with the exception of eofb_timer and cowb_timer, which
13 * are measured in seconds.
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 */
15xfs_param_t xfs_params = {
16 /* MIN DFLT MAX */
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 .sgid_inherit = { 0, 0, 1 },
18 .symlink_mode = { 0, 0, 1 },
Nathan Scott572d95f2006-09-28 11:03:20 +100019 .panic_mask = { 0, 0, 255 },
Linus Torvalds1da177e2005-04-16 15:20:36 -070020 .error_level = { 0, 3, 11 },
21 .syncd_timer = { 1*100, 30*100, 7200*100},
22 .stats_clear = { 0, 0, 1 },
23 .inherit_sync = { 0, 1, 1 },
24 .inherit_nodump = { 0, 1, 1 },
25 .inherit_noatim = { 0, 1, 1 },
26 .xfs_buf_timer = { 100/2, 1*100, 30*100 },
27 .xfs_buf_age = { 1*100, 15*100, 7200*100},
28 .inherit_nosym = { 0, 0, 1 },
29 .rotorstep = { 1, 1, 255 },
Barry Naujokd3446ea2006-06-09 14:54:19 +100030 .inherit_nodfrg = { 0, 1, 1 },
David Chinner8da22d72007-08-16 15:20:56 +100031 .fstrm_timer = { 1, 30*100, 3600*100},
Brian Foster579b62f2012-11-06 09:50:47 -050032 .eofb_timer = { 1, 300, 3600*24},
Darrick J. Wong83104d42016-10-03 09:11:46 -070033 .cowb_timer = { 1, 1800, 3600*24},
Linus Torvalds1da177e2005-04-16 15:20:36 -070034};
Brian Foster2e227172014-09-09 11:56:13 +100035
36struct xfs_globals xfs_globals = {
37 .log_recovery_delay = 0, /* no delay by default */
Dave Chinnerdae5cd82018-05-10 21:50:23 -070038 .mount_delay = 0, /* no delay by default */
Brian Foster1040960e2017-06-14 21:29:13 -070039#ifdef XFS_ASSERT_FATAL
40 .bug_on_assert = true, /* assert failures BUG() */
41#else
42 .bug_on_assert = false, /* assert failures WARN() */
43#endif
Brian Foster2e227172014-09-09 11:56:13 +100044};