xfs_globals.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2000-2005 Silicon Graphics, Inc.
  4. * All Rights Reserved.
  5. */
  6. #include "xfs.h"
  7. /*
  8. * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
  9. * other XFS code uses these values. Times are measured in centisecs (i.e.
  10. * 100ths of a second) with the exception of eofb_timer and cowb_timer, which
  11. * are measured in seconds.
  12. */
  13. xfs_param_t xfs_params = {
  14. /* MIN DFLT MAX */
  15. .sgid_inherit = { 0, 0, 1 },
  16. .symlink_mode = { 0, 0, 1 },
  17. .panic_mask = { 0, 0, 256 },
  18. .error_level = { 0, 3, 11 },
  19. .syncd_timer = { 1*100, 30*100, 7200*100},
  20. .stats_clear = { 0, 0, 1 },
  21. .inherit_sync = { 0, 1, 1 },
  22. .inherit_nodump = { 0, 1, 1 },
  23. .inherit_noatim = { 0, 1, 1 },
  24. .xfs_buf_timer = { 100/2, 1*100, 30*100 },
  25. .xfs_buf_age = { 1*100, 15*100, 7200*100},
  26. .inherit_nosym = { 0, 0, 1 },
  27. .rotorstep = { 1, 1, 255 },
  28. .inherit_nodfrg = { 0, 1, 1 },
  29. .fstrm_timer = { 1, 30*100, 3600*100},
  30. .eofb_timer = { 1, 300, 3600*24},
  31. .cowb_timer = { 1, 1800, 3600*24},
  32. };
  33. struct xfs_globals xfs_globals = {
  34. .log_recovery_delay = 0, /* no delay by default */
  35. .mount_delay = 0, /* no delay by default */
  36. #ifdef XFS_ASSERT_FATAL
  37. .bug_on_assert = true, /* assert failures BUG() */
  38. #else
  39. .bug_on_assert = false, /* assert failures WARN() */
  40. #endif
  41. #ifdef DEBUG
  42. .pwork_threads = -1, /* automatic thread detection */
  43. #endif
  44. };