2 * Copyright (c) 2001-2005 Silicon Graphics, Inc.
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.
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.
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
18 #ifndef __XFS_SYSCTL_H__
19 #define __XFS_SYSCTL_H__
22 * Tunable xfs parameters
25 typedef struct xfs_sysctl_val {
31 typedef struct xfs_param {
32 xfs_sysctl_val_t refcache_size; /* Size of NFS reference cache. */
33 xfs_sysctl_val_t refcache_purge;/* # of entries to purge each time. */
34 xfs_sysctl_val_t restrict_chown;/* Root/non-root can give away files.*/
35 xfs_sysctl_val_t sgid_inherit; /* Inherit S_ISGID if process' GID is
36 * not a member of parent dir GID. */
37 xfs_sysctl_val_t symlink_mode; /* Link creat mode affected by umask */
38 xfs_sysctl_val_t panic_mask; /* bitmask to cause panic on errors. */
39 xfs_sysctl_val_t error_level; /* Degree of reporting for problems */
40 xfs_sysctl_val_t syncd_timer; /* Interval between xfssyncd wakeups */
41 xfs_sysctl_val_t stats_clear; /* Reset all XFS statistics to zero. */
42 xfs_sysctl_val_t probe_dmapi; /* probe for DMAPI module on mount. */
43 xfs_sysctl_val_t probe_ioops; /* probe for an IO module on mount. */
44 xfs_sysctl_val_t probe_quota; /* probe for quota module on mount. */
45 xfs_sysctl_val_t inherit_sync; /* Inherit the "sync" inode flag. */
46 xfs_sysctl_val_t inherit_nodump;/* Inherit the "nodump" inode flag. */
47 xfs_sysctl_val_t inherit_noatim;/* Inherit the "noatime" inode flag. */
48 xfs_sysctl_val_t xfs_buf_timer; /* Interval between xfsbufd wakeups. */
49 xfs_sysctl_val_t xfs_buf_age; /* Metadata buffer age before flush. */
50 xfs_sysctl_val_t inherit_nosym; /* Inherit the "nosymlinks" flag. */
51 xfs_sysctl_val_t rotorstep; /* inode32 AG rotoring control knob */
57 * How much error reporting will be done when internal problems are
58 * encountered. These problems normally return an EFSCORRUPTED to their
59 * caller, with no other information reported.
62 * 1 Report EFSCORRUPTED errors that will cause a filesystem shutdown
63 * 5 Report all EFSCORRUPTED errors (all of the above errors, plus any
64 * additional errors that are known to not cause shutdowns)
66 * xfs_panic_mask bit 0x8 turns the error reports into panics
70 /* XFS_REFCACHE_SIZE = 1 */
71 /* XFS_REFCACHE_PURGE = 2 */
72 XFS_RESTRICT_CHOWN = 3,
82 XFS_INHERIT_SYNC = 13,
83 XFS_INHERIT_NODUMP = 14,
84 XFS_INHERIT_NOATIME = 15,
87 /* XFS_IO_BYPASS = 18 */
88 XFS_INHERIT_NOSYM = 19,
92 extern xfs_param_t xfs_params;
95 extern void xfs_sysctl_register(void);
96 extern void xfs_sysctl_unregister(void);
98 # define xfs_sysctl_register() do { } while (0)
99 # define xfs_sysctl_unregister() do { } while (0)
100 #endif /* CONFIG_SYSCTL */
102 #endif /* __XFS_SYSCTL_H__ */