Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Nathan Scott | 7b71876 | 2005-11-02 14:58:39 +1100 | [diff] [blame] | 2 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. |
| 3 | * All Rights Reserved. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | * |
Nathan Scott | 7b71876 | 2005-11-02 14:58:39 +1100 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | * published by the Free Software Foundation. |
| 8 | * |
Nathan Scott | 7b71876 | 2005-11-02 14:58:39 +1100 | [diff] [blame] | 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. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | * |
Nathan Scott | 7b71876 | 2005-11-02 14:58:39 +1100 | [diff] [blame] | 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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include "xfs.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #include "xfs_sysctl.h" |
| 20 | |
| 21 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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. |
Darrick J. Wong | 83104d4 | 2016-10-03 09:11:46 -0700 | [diff] [blame] | 24 | * 100ths of a second) with the exception of eofb_timer and cowb_timer, which |
| 25 | * are measured in seconds. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | */ |
| 27 | xfs_param_t xfs_params = { |
| 28 | /* MIN DFLT MAX */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | .sgid_inherit = { 0, 0, 1 }, |
| 30 | .symlink_mode = { 0, 0, 1 }, |
Nathan Scott | 572d95f | 2006-09-28 11:03:20 +1000 | [diff] [blame] | 31 | .panic_mask = { 0, 0, 255 }, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 }, |
Barry Naujok | d3446ea | 2006-06-09 14:54:19 +1000 | [diff] [blame] | 42 | .inherit_nodfrg = { 0, 1, 1 }, |
David Chinner | 8da22d7 | 2007-08-16 15:20:56 +1000 | [diff] [blame] | 43 | .fstrm_timer = { 1, 30*100, 3600*100}, |
Brian Foster | 579b62f | 2012-11-06 09:50:47 -0500 | [diff] [blame] | 44 | .eofb_timer = { 1, 300, 3600*24}, |
Darrick J. Wong | 83104d4 | 2016-10-03 09:11:46 -0700 | [diff] [blame] | 45 | .cowb_timer = { 1, 1800, 3600*24}, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | }; |
Brian Foster | 2e22717 | 2014-09-09 11:56:13 +1000 | [diff] [blame] | 47 | |
| 48 | struct xfs_globals xfs_globals = { |
| 49 | .log_recovery_delay = 0, /* no delay by default */ |
Brian Foster | 1040960e | 2017-06-14 21:29:13 -0700 | [diff] [blame^] | 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 |
Brian Foster | 2e22717 | 2014-09-09 11:56:13 +1000 | [diff] [blame] | 55 | }; |