Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48378
b: refs/heads/master
c: 4ed075e
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Feb 14, 2007
1 parent 3b2da75 commit 7e50ca9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd6065b4fdcb64c43e400278ebd0cb56989871c3
refs/heads/master: 4ed075e93bad97d0fdbb8a1be62f2449988496cb
24 changes: 16 additions & 8 deletions trunk/fs/ntfs/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,28 @@
#include "sysctl.h"
#include "debug.h"

#define FS_NTFS 1

/* Definition of the ntfs sysctl. */
static ctl_table ntfs_sysctls[] = {
{ FS_NTFS, "ntfs-debug", /* Binary and text IDs. */
&debug_msgs,sizeof(debug_msgs), /* Data pointer and size. */
0644, NULL, &proc_dointvec }, /* Mode, child, proc handler. */
{ 0 }
{
.ctl_name = CTL_UNNUMBERED, /* Binary and text IDs. */
.procname = "ntfs-debug",
.data = &debug_msgs, /* Data pointer and size. */
.maxlen = sizeof(debug_msgs),
.mode = 0644, /* Mode, proc handler. */
.proc_handler = &proc_dointvec
},
{}
};

/* Define the parent directory /proc/sys/fs. */
static ctl_table sysctls_root[] = {
{ CTL_FS, "fs", NULL, 0, 0555, ntfs_sysctls },
{ 0 }
{
.ctl_name = CTL_FS,
.procname = "fs",
.mode = 0555,
.child = ntfs_sysctls
},
{}
};

/* Storage for the sysctls header. */
Expand Down

0 comments on commit 7e50ca9

Please sign in to comment.