162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (c) 2000-2005 Silicon Graphics, Inc. 462306a36Sopenharmony_ci * All Rights Reserved. 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci#include "xfs.h" 762306a36Sopenharmony_ci#include "xfs_error.h" 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* 1062306a36Sopenharmony_ci * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n, 1162306a36Sopenharmony_ci * other XFS code uses these values. Times are measured in centisecs (i.e. 1262306a36Sopenharmony_ci * 100ths of a second) with the exception of blockgc_timer, which is measured 1362306a36Sopenharmony_ci * in seconds. 1462306a36Sopenharmony_ci */ 1562306a36Sopenharmony_cixfs_param_t xfs_params = { 1662306a36Sopenharmony_ci /* MIN DFLT MAX */ 1762306a36Sopenharmony_ci .sgid_inherit = { 0, 0, 1 }, 1862306a36Sopenharmony_ci .symlink_mode = { 0, 0, 1 }, 1962306a36Sopenharmony_ci .panic_mask = { 0, 0, XFS_PTAG_MASK}, 2062306a36Sopenharmony_ci .error_level = { 0, 3, 11 }, 2162306a36Sopenharmony_ci .syncd_timer = { 1*100, 30*100, 7200*100}, 2262306a36Sopenharmony_ci .stats_clear = { 0, 0, 1 }, 2362306a36Sopenharmony_ci .inherit_sync = { 0, 1, 1 }, 2462306a36Sopenharmony_ci .inherit_nodump = { 0, 1, 1 }, 2562306a36Sopenharmony_ci .inherit_noatim = { 0, 1, 1 }, 2662306a36Sopenharmony_ci .xfs_buf_timer = { 100/2, 1*100, 30*100 }, 2762306a36Sopenharmony_ci .xfs_buf_age = { 1*100, 15*100, 7200*100}, 2862306a36Sopenharmony_ci .inherit_nosym = { 0, 0, 1 }, 2962306a36Sopenharmony_ci .rotorstep = { 1, 1, 255 }, 3062306a36Sopenharmony_ci .inherit_nodfrg = { 0, 1, 1 }, 3162306a36Sopenharmony_ci .fstrm_timer = { 1, 30*100, 3600*100}, 3262306a36Sopenharmony_ci .blockgc_timer = { 1, 300, 3600*24}, 3362306a36Sopenharmony_ci}; 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_cistruct xfs_globals xfs_globals = { 3662306a36Sopenharmony_ci .log_recovery_delay = 0, /* no delay by default */ 3762306a36Sopenharmony_ci .mount_delay = 0, /* no delay by default */ 3862306a36Sopenharmony_ci#ifdef XFS_ASSERT_FATAL 3962306a36Sopenharmony_ci .bug_on_assert = true, /* assert failures BUG() */ 4062306a36Sopenharmony_ci#else 4162306a36Sopenharmony_ci .bug_on_assert = false, /* assert failures WARN() */ 4262306a36Sopenharmony_ci#endif 4362306a36Sopenharmony_ci#ifdef DEBUG 4462306a36Sopenharmony_ci .pwork_threads = -1, /* automatic thread detection */ 4562306a36Sopenharmony_ci .larp = false, /* log attribute replay */ 4662306a36Sopenharmony_ci#endif 4762306a36Sopenharmony_ci}; 48