xfs_globals.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) 2000-2005 Silicon Graphics, Inc.
  3. * All Rights Reserved.
  4. *
  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
  7. * published by the Free Software Foundation.
  8. *
  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.
  13. *
  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
  17. */
  18. #include "xfs.h"
  19. #include "xfs_sysctl.h"
  20. /*
  21. * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
  22. * other XFS code uses these values. Times are measured in centisecs (i.e.
  23. * 100ths of a second) with the exception of eofb_timer, which is measured in
  24. * seconds.
  25. */
  26. xfs_param_t xfs_params = {
  27. /* MIN DFLT MAX */
  28. .sgid_inherit = { 0, 0, 1 },
  29. .symlink_mode = { 0, 0, 1 },
  30. .panic_mask = { 0, 0, 255 },
  31. .error_level = { 0, 3, 11 },
  32. .syncd_timer = { 1*100, 30*100, 7200*100},
  33. .stats_clear = { 0, 0, 1 },
  34. .inherit_sync = { 0, 1, 1 },
  35. .inherit_nodump = { 0, 1, 1 },
  36. .inherit_noatim = { 0, 1, 1 },
  37. .xfs_buf_timer = { 100/2, 1*100, 30*100 },
  38. .xfs_buf_age = { 1*100, 15*100, 7200*100},
  39. .inherit_nosym = { 0, 0, 1 },
  40. .rotorstep = { 1, 1, 255 },
  41. .inherit_nodfrg = { 0, 1, 1 },
  42. .fstrm_timer = { 1, 30*100, 3600*100},
  43. .eofb_timer = { 1, 300, 3600*24},
  44. };
  45. struct xfs_globals xfs_globals = {
  46. .log_recovery_delay = 0, /* no delay by default */
  47. };