| 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" | 
|  | 19 | #include "xfs_cred.h" | 
|  | 20 | #include "xfs_sysctl.h" | 
|  | 21 |  | 
|  | 22 | /* | 
|  | 23 | * System memory size - used to scale certain data structures in XFS. | 
|  | 24 | */ | 
|  | 25 | unsigned long xfs_physmem; | 
|  | 26 |  | 
|  | 27 | /* | 
|  | 28 | * Tunable XFS parameters.  xfs_params is required even when CONFIG_SYSCTL=n, | 
|  | 29 | * other XFS code uses these values.  Times are measured in centisecs (i.e. | 
|  | 30 | * 100ths of a second). | 
|  | 31 | */ | 
|  | 32 | xfs_param_t xfs_params = { | 
|  | 33 | /*	MIN		DFLT		MAX	*/ | 
|  | 34 | .restrict_chown	= {	0,		1,		1	}, | 
|  | 35 | .sgid_inherit	= {	0,		0,		1	}, | 
|  | 36 | .symlink_mode	= {	0,		0,		1	}, | 
| Nathan Scott | 572d95f | 2006-09-28 11:03:20 +1000 | [diff] [blame] | 37 | .panic_mask	= {	0,		0,		255	}, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | .error_level	= {	0,		3,		11	}, | 
|  | 39 | .syncd_timer	= {	1*100,		30*100,		7200*100}, | 
|  | 40 | .stats_clear	= {	0,		0,		1	}, | 
|  | 41 | .inherit_sync	= {	0,		1,		1	}, | 
|  | 42 | .inherit_nodump	= {	0,		1,		1	}, | 
|  | 43 | .inherit_noatim = {	0,		1,		1	}, | 
|  | 44 | .xfs_buf_timer	= {	100/2,		1*100,		30*100	}, | 
|  | 45 | .xfs_buf_age	= {	1*100,		15*100,		7200*100}, | 
|  | 46 | .inherit_nosym	= {	0,		0,		1	}, | 
|  | 47 | .rotorstep	= {	1,		1,		255	}, | 
| Barry Naujok | d3446ea | 2006-06-09 14:54:19 +1000 | [diff] [blame] | 48 | .inherit_nodfrg	= {	0,		1,		1	}, | 
| David Chinner | 8da22d7 | 2007-08-16 15:20:56 +1000 | [diff] [blame] | 49 | .fstrm_timer	= {	1,		30*100,		3600*100}, | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | }; | 
|  | 51 |  | 
|  | 52 | /* | 
|  | 53 | * Global system credential structure. | 
|  | 54 | */ | 
|  | 55 | cred_t sys_cred_val, *sys_cred = &sys_cred_val; | 
|  | 56 |  |