]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - fs/xfs/xfs_globals.c
UBUNTU: Ubuntu-4.13.0-45.50
[mirror_ubuntu-artful-kernel.git] / fs / xfs / xfs_globals.c
CommitLineData
1da177e4 1/*
7b718769
NS
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
1da177e4 4 *
7b718769
NS
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
1da177e4
LT
7 * published by the Free Software Foundation.
8 *
7b718769
NS
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
1da177e4 13 *
7b718769
NS
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1da177e4 17 */
1da177e4 18#include "xfs.h"
1da177e4
LT
19#include "xfs_sysctl.h"
20
1da177e4
LT
21/*
22 * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
23 * other XFS code uses these values. Times are measured in centisecs (i.e.
83104d44
DW
24 * 100ths of a second) with the exception of eofb_timer and cowb_timer, which
25 * are measured in seconds.
1da177e4
LT
26 */
27xfs_param_t xfs_params = {
28 /* MIN DFLT MAX */
1da177e4
LT
29 .sgid_inherit = { 0, 0, 1 },
30 .symlink_mode = { 0, 0, 1 },
572d95f4 31 .panic_mask = { 0, 0, 255 },
1da177e4
LT
32 .error_level = { 0, 3, 11 },
33 .syncd_timer = { 1*100, 30*100, 7200*100},
34 .stats_clear = { 0, 0, 1 },
35 .inherit_sync = { 0, 1, 1 },
36 .inherit_nodump = { 0, 1, 1 },
37 .inherit_noatim = { 0, 1, 1 },
38 .xfs_buf_timer = { 100/2, 1*100, 30*100 },
39 .xfs_buf_age = { 1*100, 15*100, 7200*100},
40 .inherit_nosym = { 0, 0, 1 },
41 .rotorstep = { 1, 1, 255 },
d3446eac 42 .inherit_nodfrg = { 0, 1, 1 },
8da22d7a 43 .fstrm_timer = { 1, 30*100, 3600*100},
579b62fa 44 .eofb_timer = { 1, 300, 3600*24},
83104d44 45 .cowb_timer = { 1, 1800, 3600*24},
1da177e4 46};
2e227178
BF
47
48struct xfs_globals xfs_globals = {
49 .log_recovery_delay = 0, /* no delay by default */
1040960e
BF
50#ifdef XFS_ASSERT_FATAL
51 .bug_on_assert = true, /* assert failures BUG() */
52#else
53 .bug_on_assert = false, /* assert failures WARN() */
54#endif
2e227178 55};