Commit 1978c795 authored by Eric Sandeen's avatar Eric Sandeen Committed by Stephen Lord

[XFS] Fix indices into xfs_min/xfs_max for sysctls in 2.5.x

SGI Modid: 2.5.x-xfs:slinx:140972a
parent e268988e
......@@ -69,27 +69,27 @@ xfs_stats_clear_proc_handler(
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[2], &xfs_max[2]},
&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[3], &xfs_max[3]},
&sysctl_intvec, NULL, &xfs_min[1], &xfs_max[1]},
{XFS_SGID_INHERIT, "irix_sgid_inherit", &xfs_params.sgid_inherit,
sizeof(ulong), 0644, NULL, &proc_doulongvec_minmax,
&sysctl_intvec, NULL, &xfs_min[4], &xfs_max[4]},
&sysctl_intvec, NULL, &xfs_min[2], &xfs_max[2]},
{XFS_SYMLINK_MODE, "irix_symlink_mode", &xfs_params.symlink_mode,
sizeof(ulong), 0644, NULL, &proc_doulongvec_minmax,
&sysctl_intvec, NULL, &xfs_min[5], &xfs_max[5]},
&sysctl_intvec, NULL, &xfs_min[3], &xfs_max[3]},
{XFS_PANIC_MASK, "panic_mask", &xfs_params.panic_mask,
sizeof(ulong), 0644, NULL, &proc_doulongvec_minmax,
&sysctl_intvec, NULL, &xfs_min[6], &xfs_max[6]},
&sysctl_intvec, NULL, &xfs_min[4], &xfs_max[4]},
{XFS_ERRLEVEL, "error_level", &xfs_params.error_level,
sizeof(ulong), 0644, NULL, &proc_doulongvec_minmax,
&sysctl_intvec, NULL, &xfs_min[7], &xfs_max[7]},
&sysctl_intvec, NULL, &xfs_min[5], &xfs_max[5]},
{0}
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment