Commit | Line | Data |
---|---|---|
0b61f8a4 | 1 | // SPDX-License-Identifier: GPL-2.0 |
1da177e4 | 2 | /* |
7b718769 NS |
3 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. |
4 | * All Rights Reserved. | |
1da177e4 | 5 | */ |
1da177e4 | 6 | #include "xfs.h" |
167ce4cb | 7 | #include "xfs_error.h" |
1da177e4 | 8 | |
1da177e4 LT |
9 | /* |
10 | * 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. | |
9669f51d DW |
12 | * 100ths of a second) with the exception of blockgc_timer, which is measured |
13 | * in seconds. | |
1da177e4 LT |
14 | */ |
15 | xfs_param_t xfs_params = { | |
16 | /* MIN DFLT MAX */ | |
1da177e4 LT |
17 | .sgid_inherit = { 0, 0, 1 }, |
18 | .symlink_mode = { 0, 0, 1 }, | |
167ce4cb | 19 | .panic_mask = { 0, 0, XFS_PTAG_MASK}, |
1da177e4 LT |
20 | .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 }, | |
d3446eac | 30 | .inherit_nodfrg = { 0, 1, 1 }, |
8da22d7a | 31 | .fstrm_timer = { 1, 30*100, 3600*100}, |
9669f51d | 32 | .blockgc_timer = { 1, 300, 3600*24}, |
1da177e4 | 33 | }; |
2e227178 BF |
34 | |
35 | struct xfs_globals xfs_globals = { | |
36 | .log_recovery_delay = 0, /* no delay by default */ | |
dae5cd81 | 37 | .mount_delay = 0, /* no delay by default */ |
1040960e BF |
38 | #ifdef XFS_ASSERT_FATAL |
39 | .bug_on_assert = true, /* assert failures BUG() */ | |
40 | #else | |
41 | .bug_on_assert = false, /* assert failures WARN() */ | |
42 | #endif | |
40786717 DW |
43 | #ifdef DEBUG |
44 | .pwork_threads = -1, /* automatic thread detection */ | |
535e2f75 | 45 | .larp = false, /* log attribute replay */ |
40786717 | 46 | #endif |
2e227178 | 47 | }; |