Blame view

fs/xfs/xfs_globals.c 1.89 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
  /*
7b7187698   Nathan Scott   [XFS] Update lice...
2
3
   * Copyright (c) 2000-2005 Silicon Graphics, Inc.
   * All Rights Reserved.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
   *
7b7187698   Nathan Scott   [XFS] Update lice...
5
6
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU General Public License as
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
   * published by the Free Software Foundation.
   *
7b7187698   Nathan Scott   [XFS] Update lice...
9
10
11
12
   * This program is distributed in the hope that it would be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   * GNU General Public License for more details.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
   *
7b7187698   Nathan Scott   [XFS] Update lice...
14
15
16
   * You should have received a copy of the GNU General Public License
   * along with this program; if not, write the Free Software Foundation,
   * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
17
   */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
18
  #include "xfs.h"
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19
20
21
  #include "xfs_sysctl.h"
  
  /*
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
22
23
   * Tunable XFS parameters.  xfs_params is required even when CONFIG_SYSCTL=n,
   * other XFS code uses these values.  Times are measured in centisecs (i.e.
83104d449   Darrick J. Wong   xfs: garbage coll...
24
25
   * 100ths of a second) with the exception of eofb_timer and cowb_timer, which
   * are measured in seconds.
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
26
27
28
   */
  xfs_param_t xfs_params = {
  			  /*	MIN		DFLT		MAX	*/
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
29
30
  	.sgid_inherit	= {	0,		0,		1	},
  	.symlink_mode	= {	0,		0,		1	},
572d95f49   Nathan Scott   [XFS] Improve err...
31
  	.panic_mask	= {	0,		0,		255	},
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
32
33
34
35
36
37
38
39
40
41
  	.error_level	= {	0,		3,		11	},
  	.syncd_timer	= {	1*100,		30*100,		7200*100},
  	.stats_clear	= {	0,		0,		1	},
  	.inherit_sync	= {	0,		1,		1	},
  	.inherit_nodump	= {	0,		1,		1	},
  	.inherit_noatim = {	0,		1,		1	},
  	.xfs_buf_timer	= {	100/2,		1*100,		30*100	},
  	.xfs_buf_age	= {	1*100,		15*100,		7200*100},
  	.inherit_nosym	= {	0,		0,		1	},
  	.rotorstep	= {	1,		1,		255	},
d3446eac3   Barry Naujok   [XFS] Add degfram...
42
  	.inherit_nodfrg	= {	0,		1,		1	},
8da22d7a3   David Chinner   [XFS] Set filestr...
43
  	.fstrm_timer	= {	1,		30*100,		3600*100},
579b62faa   Brian Foster   xfs: add backgrou...
44
  	.eofb_timer	= {	1,		300,		3600*24},
83104d449   Darrick J. Wong   xfs: garbage coll...
45
  	.cowb_timer	= {	1,		1800,		3600*24},
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
46
  };
2e2271787   Brian Foster   xfs: export log_r...
47
48
49
  
  struct xfs_globals xfs_globals = {
  	.log_recovery_delay	=	0,	/* no delay by default */
1040960ef   Brian Foster   xfs: define fatal...
50
51
52
53
54
  #ifdef XFS_ASSERT_FATAL
  	.bug_on_assert		=	true,	/* assert failures BUG() */
  #else
  	.bug_on_assert		=	false,	/* assert failures WARN() */
  #endif
2e2271787   Brian Foster   xfs: export log_r...
55
  };