Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / fs / xfs / linux-2.6 / xfs_globals.c
blobef90e64641e6a662b0478d74fc0918246c9a2e95
1 /*
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
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
7 * published by the Free Software Foundation.
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.
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
18 #include "xfs.h"
19 #include "xfs_cred.h"
20 #include "xfs_sysctl.h"
23 * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
24 * other XFS code uses these values. Times are measured in centisecs (i.e.
25 * 100ths of a second).
27 xfs_param_t xfs_params = {
28 /* MIN DFLT MAX */
29 .restrict_chown = { 0, 1, 1 },
30 .sgid_inherit = { 0, 0, 1 },
31 .symlink_mode = { 0, 0, 1 },
32 .panic_mask = { 0, 0, 255 },
33 .error_level = { 0, 3, 11 },
34 .syncd_timer = { 1*100, 30*100, 7200*100},
35 .stats_clear = { 0, 0, 1 },
36 .inherit_sync = { 0, 1, 1 },
37 .inherit_nodump = { 0, 1, 1 },
38 .inherit_noatim = { 0, 1, 1 },
39 .xfs_buf_timer = { 100/2, 1*100, 30*100 },
40 .xfs_buf_age = { 1*100, 15*100, 7200*100},
41 .inherit_nosym = { 0, 0, 1 },
42 .rotorstep = { 1, 1, 255 },
43 .inherit_nodfrg = { 0, 1, 1 },
44 .fstrm_timer = { 1, 30*100, 3600*100},
48 * Global system credential structure.
50 static cred_t sys_cred_val;
51 cred_t *sys_cred = &sys_cred_val;