Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright (c) 2000-2005 Silicon Graphics, Inc.
0004  * All Rights Reserved.
0005  */
0006 #include "xfs.h"
0007 
0008 /*
0009  * Tunable XFS parameters.  xfs_params is required even when CONFIG_SYSCTL=n,
0010  * other XFS code uses these values.  Times are measured in centisecs (i.e.
0011  * 100ths of a second) with the exception of blockgc_timer, which is measured
0012  * in seconds.
0013  */
0014 xfs_param_t xfs_params = {
0015               /*    MIN     DFLT        MAX */
0016     .sgid_inherit   = { 0,      0,      1   },
0017     .symlink_mode   = { 0,      0,      1   },
0018     .panic_mask = { 0,      0,      256 },
0019     .error_level    = { 0,      3,      11  },
0020     .syncd_timer    = { 1*100,      30*100,     7200*100},
0021     .stats_clear    = { 0,      0,      1   },
0022     .inherit_sync   = { 0,      1,      1   },
0023     .inherit_nodump = { 0,      1,      1   },
0024     .inherit_noatim = { 0,      1,      1   },
0025     .xfs_buf_timer  = { 100/2,      1*100,      30*100  },
0026     .xfs_buf_age    = { 1*100,      15*100,     7200*100},
0027     .inherit_nosym  = { 0,      0,      1   },
0028     .rotorstep  = { 1,      1,      255 },
0029     .inherit_nodfrg = { 0,      1,      1   },
0030     .fstrm_timer    = { 1,      30*100,     3600*100},
0031     .blockgc_timer  = { 1,      300,        3600*24},
0032 };
0033 
0034 struct xfs_globals xfs_globals = {
0035     .log_recovery_delay =   0,  /* no delay by default */
0036     .mount_delay        =   0,  /* no delay by default */
0037 #ifdef XFS_ASSERT_FATAL
0038     .bug_on_assert      =   true,   /* assert failures BUG() */
0039 #else
0040     .bug_on_assert      =   false,  /* assert failures WARN() */
0041 #endif
0042 #ifdef DEBUG
0043     .pwork_threads      =   -1, /* automatic thread detection */
0044     .larp           =   false,  /* log attribute replay */
0045 #endif
0046 };