aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_sysctl.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /fs/xfs/linux-2.6/xfs_sysctl.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_sysctl.h')
-rw-r--r--fs/xfs/linux-2.6/xfs_sysctl.h114
1 files changed, 114 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_sysctl.h b/fs/xfs/linux-2.6/xfs_sysctl.h
new file mode 100644
index 000000000000..a39a95020a58
--- /dev/null
+++ b/fs/xfs/linux-2.6/xfs_sysctl.h
@@ -0,0 +1,114 @@
1/*
2 * Copyright (c) 2001-2004 Silicon Graphics, Inc. All Rights Reserved.
3 *
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.
7 *
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.
11 *
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.
18 *
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.
22 *
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
25 *
26 * http://www.sgi.com
27 *
28 * For further information regarding this notice, see:
29 *
30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
31 */
32
33#ifndef __XFS_SYSCTL_H__
34#define __XFS_SYSCTL_H__
35
36#include <linux/sysctl.h>
37
38/*
39 * Tunable xfs parameters
40 */
41
42typedef struct xfs_sysctl_val {
43 int min;
44 int val;
45 int max;
46} xfs_sysctl_val_t;
47
48typedef 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 if process' GID is
51 * not a member of parent dir GID. */
52 xfs_sysctl_val_t symlink_mode; /* Link creat mode affected by umask */
53 xfs_sysctl_val_t panic_mask; /* bitmask to cause panic on errors. */
54 xfs_sysctl_val_t error_level; /* Degree of reporting for problems */
55 xfs_sysctl_val_t syncd_timer; /* Interval between xfssyncd wakeups */
56 xfs_sysctl_val_t stats_clear; /* Reset all XFS statistics to zero. */
57 xfs_sysctl_val_t inherit_sync; /* Inherit the "sync" inode flag. */
58 xfs_sysctl_val_t inherit_nodump;/* Inherit the "nodump" inode flag. */
59 xfs_sysctl_val_t inherit_noatim;/* Inherit the "noatime" inode flag. */
60 xfs_sysctl_val_t xfs_buf_timer; /* Interval between xfsbufd wakeups. */
61 xfs_sysctl_val_t xfs_buf_age; /* Metadata buffer age before flush. */
62 xfs_sysctl_val_t inherit_nosym; /* Inherit the "nosymlinks" flag. */
63 xfs_sysctl_val_t rotorstep; /* inode32 AG rotoring control knob */
64} xfs_param_t;
65
66/*
67 * xfs_error_level:
68 *
69 * How much error reporting will be done when internal problems are
70 * encountered. These problems normally return an EFSCORRUPTED to their
71 * caller, with no other information reported.
72 *
73 * 0 No error reports
74 * 1 Report EFSCORRUPTED errors that will cause a filesystem shutdown
75 * 5 Report all EFSCORRUPTED errors (all of the above errors, plus any
76 * additional errors that are known to not cause shutdowns)
77 *
78 * xfs_panic_mask bit 0x8 turns the error reports into panics
79 */
80
81enum {
82 /* XFS_REFCACHE_SIZE = 1 */
83 /* XFS_REFCACHE_PURGE = 2 */
84 XFS_RESTRICT_CHOWN = 3,
85 XFS_SGID_INHERIT = 4,
86 XFS_SYMLINK_MODE = 5,
87 XFS_PANIC_MASK = 6,
88 XFS_ERRLEVEL = 7,
89 XFS_SYNCD_TIMER = 8,
90 /* XFS_PROBE_DMAPI = 9 */
91 /* XFS_PROBE_IOOPS = 10 */
92 /* XFS_PROBE_QUOTA = 11 */
93 XFS_STATS_CLEAR = 12,
94 XFS_INHERIT_SYNC = 13,
95 XFS_INHERIT_NODUMP = 14,
96 XFS_INHERIT_NOATIME = 15,
97 XFS_BUF_TIMER = 16,
98 XFS_BUF_AGE = 17,
99 /* XFS_IO_BYPASS = 18 */
100 XFS_INHERIT_NOSYM = 19,
101 XFS_ROTORSTEP = 20,
102};
103
104extern xfs_param_t xfs_params;
105
106#ifdef CONFIG_SYSCTL
107extern void xfs_sysctl_register(void);
108extern void xfs_sysctl_unregister(void);
109#else
110# define xfs_sysctl_register() do { } while (0)
111# define xfs_sysctl_unregister() do { } while (0)
112#endif /* CONFIG_SYSCTL */
113
114#endif /* __XFS_SYSCTL_H__ */