Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
ef094721
Commit
ef094721
authored
Jun 19, 2003
by
Stephen Lord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] break dependency between CONFIG_PROCFS and CONFIG_SYSCTL in xfs
SGI Modid: 2.5.x-xfs:slinx:150782a
parent
08ed5dce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
19 deletions
+24
-19
fs/xfs/linux/xfs_sysctl.c
fs/xfs/linux/xfs_sysctl.c
+16
-11
fs/xfs/linux/xfs_sysctl.h
fs/xfs/linux/xfs_sysctl.h
+8
-8
No files found.
fs/xfs/linux/xfs_sysctl.c
View file @
ef094721
...
...
@@ -36,12 +36,13 @@
#include <linux/proc_fs.h>
STATIC
ulong
xfs_min
[
XFS_PARAM
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
HZ
};
STATIC
ulong
xfs_max
[
XFS_PARAM
]
=
{
1
,
1
,
1
,
1
,
127
,
3
,
HZ
*
60
};
STATIC
ulong
xfs_min
[
XFS_PARAM
]
=
{
0
,
0
,
0
,
0
,
0
,
HZ
,
0
};
STATIC
ulong
xfs_max
[
XFS_PARAM
]
=
{
1
,
1
,
1
,
1
27
,
3
,
HZ
*
60
,
1
};
static
struct
ctl_table_header
*
xfs_table_header
;
#ifdef CONFIG_PROC_FS
STATIC
int
xfs_stats_clear_proc_handler
(
ctl_table
*
ctl
,
...
...
@@ -66,35 +67,39 @@ xfs_stats_clear_proc_handler(
return
ret
;
}
#endif
/* CONFIG_PROC_FS */
STATIC
ctl_table
xfs_table
[]
=
{
{
XFS_STATS_CLEAR
,
"stats_clear"
,
&
xfs_params
.
stats_clear
,
sizeof
(
ulong
),
0644
,
NULL
,
&
xfs_stats_clear_proc_handler
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
0
],
&
xfs_max
[
0
]},
{
XFS_RESTRICT_CHOWN
,
"restrict_chown"
,
&
xfs_params
.
restrict_chown
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
1
],
&
xfs_max
[
1
]},
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
0
],
&
xfs_max
[
0
]},
{
XFS_SGID_INHERIT
,
"irix_sgid_inherit"
,
&
xfs_params
.
sgid_inherit
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
2
],
&
xfs_max
[
2
]},
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
1
],
&
xfs_max
[
1
]},
{
XFS_SYMLINK_MODE
,
"irix_symlink_mode"
,
&
xfs_params
.
symlink_mode
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
3
],
&
xfs_max
[
3
]},
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
2
],
&
xfs_max
[
2
]},
{
XFS_PANIC_MASK
,
"panic_mask"
,
&
xfs_params
.
panic_mask
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
4
],
&
xfs_max
[
4
]},
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
3
],
&
xfs_max
[
3
]},
{
XFS_ERRLEVEL
,
"error_level"
,
&
xfs_params
.
error_level
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
5
],
&
xfs_max
[
5
]},
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
4
],
&
xfs_max
[
4
]},
{
XFS_SYNC_INTERVAL
,
"sync_interval"
,
&
xfs_params
.
sync_interval
,
sizeof
(
ulong
),
0644
,
NULL
,
&
proc_doulongvec_minmax
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
5
],
&
xfs_max
[
5
]},
/* please keep this the last entry */
#ifdef CONFIG_PROC_FS
{
XFS_STATS_CLEAR
,
"stats_clear"
,
&
xfs_params
.
stats_clear
,
sizeof
(
ulong
),
0644
,
NULL
,
&
xfs_stats_clear_proc_handler
,
&
sysctl_intvec
,
NULL
,
&
xfs_min
[
6
],
&
xfs_max
[
6
]},
#endif
/* CONFIG_PROC_FS */
{
0
}
};
...
...
fs/xfs/linux/xfs_sysctl.h
View file @
ef094721
...
...
@@ -42,7 +42,6 @@
#define XFS_PARAM (sizeof(struct xfs_param) / sizeof(ulong))
typedef
struct
xfs_param
{
ulong
stats_clear
;
/* Reset all XFS statistics to zero. */
ulong
restrict_chown
;
/* Root/non-root can give away files. */
ulong
sgid_inherit
;
/* Inherit ISGID bit if process' GID is */
/* not a member of the parent dir GID. */
...
...
@@ -50,6 +49,7 @@ typedef struct xfs_param {
ulong
panic_mask
;
/* bitmask to specify panics on errors. */
ulong
error_level
;
/* Degree of reporting for internal probs*/
ulong
sync_interval
;
/* time between sync calls */
ulong
stats_clear
;
/* Reset all XFS statistics to zero. */
}
xfs_param_t
;
/*
...
...
@@ -68,13 +68,13 @@ typedef struct xfs_param {
*/
enum
{
XFS_
STATS_CLEAR
=
1
,
XFS_
RESTRICT_CHOWN
=
2
,
XFS_S
GID_INHERIT
=
3
,
XFS_
SYMLINK_MODE
=
4
,
XFS_
PANIC_MASK
=
5
,
XFS_
ERRLEVE
L
=
6
,
XFS_S
YNC_INTERVAL
=
7
,
XFS_
RESTRICT_CHOWN
=
1
,
XFS_
SGID_INHERIT
=
2
,
XFS_S
YMLINK_MODE
=
3
,
XFS_
PANIC_MASK
=
4
,
XFS_
ERRLEVEL
=
5
,
XFS_
SYNC_INTERVA
L
=
6
,
XFS_S
TATS_CLEAR
=
7
,
};
extern
xfs_param_t
xfs_params
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment