xfs_globals.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_cred.h"
  20. #include "xfs_sysctl.h"
  21. /*
  22. * System memory size - used to scale certain data structures in XFS.
  23. */
  24. unsigned long xfs_physmem;
  25. /*
  26. * Tunable XFS parameters. xfs_params is required even when CONFIG_SYSCTL=n,
  27. * other XFS code uses these values. Times are measured in centisecs (i.e.
  28. * 100ths of a second).
  29. */
  30. xfs_param_t xfs_params = {
  31. /* MIN DFLT MAX */
  32. .restrict_chown = { 0, 1, 1 },
  33. .sgid_inherit = { 0, 0, 1 },
  34. .symlink_mode = { 0, 0, 1 },
  35. .panic_mask = { 0, 0, 255 },
  36. .error_level = { 0, 3, 11 },
  37. .syncd_timer = { 1*100, 30*100, 7200*100},
  38. .stats_clear = { 0, 0, 1 },
  39. .inherit_sync = { 0, 1, 1 },
  40. .inherit_nodump = { 0, 1, 1 },
  41. .inherit_noatim = { 0, 1, 1 },
  42. .xfs_buf_timer = { 100/2, 1*100, 30*100 },
  43. .xfs_buf_age = { 1*100, 15*100, 7200*100},
  44. .inherit_nosym = { 0, 0, 1 },
  45. .rotorstep = { 1, 1, 255 },
  46. .inherit_nodfrg = { 0, 1, 1 },
  47. };
  48. /*
  49. * Global system credential structure.
  50. */
  51. cred_t sys_cred_val, *sys_cred = &sys_cred_val;