patch-1.3.73 linux/kernel/sysctl.c
Next file: linux/net/appletalk/aarp.c
Previous file: linux/kernel/sys.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Mar 12 17:30:14 1996
- Orig file:
v1.3.72/linux/kernel/sysctl.c
- Orig date:
Sun Mar 10 09:49:57 1996
diff -u --recursive --new-file v1.3.72/linux/kernel/sysctl.c linux/kernel/sysctl.c
@@ -25,6 +25,10 @@
extern int panic_timeout;
+#ifdef CONFIG_ROOT_NFS
+#include <linux/nfs_fs.h>
+#endif
+
static ctl_table root_table[];
static struct ctl_table_header root_table_header =
{root_table, DNODE_SINGLE(&root_table_header)};
@@ -122,6 +126,16 @@
0444, NULL, &proc_dointvec, (ctl_handler *)&do_securelevel_strategy},
{KERN_PANIC, "panic", &panic_timeout, sizeof(int),
0644, NULL, &proc_dointvec},
+#ifdef CONFIG_BLK_DEV_INITRD
+ {KERN_REALROOTDEV, "real-root-dev", &real_root_dev, sizeof(int),
+ 0644, NULL, &proc_dointvec},
+#endif
+#ifdef CONFIG_ROOT_NFS
+ {KERN_NFSRNAME, "nfs-root-name", nfs_root_name, NFS_ROOT_NAME_LEN,
+ 0644, NULL, &proc_dostring, &sysctl_string },
+ {KERN_NFSRNAME, "nfs-root-addrs", nfs_root_addrs, NFS_ROOT_ADDRS_LEN,
+ 0644, NULL, &proc_dostring, &sysctl_string },
+#endif
{0}
};
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this