2 * Copyright (c) 2001-2002 Silicon Graphics, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it would be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * Further, this software is distributed without any warranty that it is
13 * free of the rightful claim of any third person regarding infringement
14 * or the like. Any license provided herein, whether implied or
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
17 * other software, or any other product whatsoever.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc., 59
21 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
28 * For further information regarding this notice, see:
30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
33 #ifndef __XFS_SYSCTL_H__
34 #define __XFS_SYSCTL_H__
36 #include <linux/sysctl.h>
39 * Tunable xfs parameters
42 typedef struct xfs_sysctl_val {
48 typedef struct xfs_param {
49 xfs_sysctl_val_t restrict_chown;/* Root/non-root can give away files.*/
50 xfs_sysctl_val_t sgid_inherit; /* Inherit S_ISGID bit if process' GID
51 * is not a member of the parent dir
53 xfs_sysctl_val_t symlink_mode; /* Link creat mode affected by umask */
54 xfs_sysctl_val_t panic_mask; /* bitmask to cause panic on errors. */
55 xfs_sysctl_val_t error_level; /* Degree of reporting for problems */
56 xfs_sysctl_val_t sync_interval; /* time between sync calls */
57 xfs_sysctl_val_t stats_clear; /* Reset all XFS statistics to zero. */
58 xfs_sysctl_val_t inherit_sync; /* Inherit the "sync" inode flag. */
59 xfs_sysctl_val_t inherit_nodump;/* Inherit the "nodump" inode flag. */
60 xfs_sysctl_val_t inherit_noatim;/* Inherit the "noatime" inode flag. */
61 xfs_sysctl_val_t flush_interval;/* interval between runs of the
62 * delwri flush daemon. */
63 xfs_sysctl_val_t age_buffer; /* time for buffer to age before
70 * How much error reporting will be done when internal problems are
71 * encountered. These problems normally return an EFSCORRUPTED to their
72 * caller, with no other information reported.
75 * 1 Report EFSCORRUPTED errors that will cause a filesystem shutdown
76 * 5 Report all EFSCORRUPTED errors (all of the above errors, plus any
77 * additional errors that are known to not cause shutdowns)
79 * xfs_panic_mask bit 0x8 turns the error reports into panics
83 XFS_RESTRICT_CHOWN = 3,
88 XFS_SYNC_INTERVAL = 8,
90 XFS_INHERIT_SYNC = 13,
91 XFS_INHERIT_NODUMP = 14,
92 XFS_INHERIT_NOATIME = 15,
93 XFS_FLUSH_INTERVAL = 16,
97 extern xfs_param_t xfs_params;
100 extern void xfs_sysctl_register(void);
101 extern void xfs_sysctl_unregister(void);
103 # define xfs_sysctl_register() do { } while (0)
104 # define xfs_sysctl_unregister() do { } while (0)
105 #endif /* CONFIG_SYSCTL */
107 #endif /* __XFS_SYSCTL_H__ */