summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2000-07-17 13:13:04 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2000-07-17 13:13:04 +0000
commitf274479332fd8fe2f5aaf9ee55e388d6b1f46745 (patch)
tree8cab247e7fb31b69d9d15dd8528df9b6d71b6361
parentfeeff035912cfa537aa421ca237c2d64b6274f94 (diff)
Notes
-rw-r--r--share/man/man4/md.44
-rw-r--r--sys/conf/NOTES4
-rw-r--r--sys/conf/options2
-rw-r--r--sys/dev/md/md.c6
-rw-r--r--sys/i386/conf/NOTES4
5 files changed, 10 insertions, 10 deletions
diff --git a/share/man/man4/md.4 b/share/man/man4/md.4
index 7b7d16b143aa..5a771e334244 100644
--- a/share/man/man4/md.4
+++ b/share/man/man4/md.4
@@ -19,7 +19,7 @@
To specify the default maximum size of
.Xr malloc 9
backed disks:
-.Cd options MDNSECT=20000
+.Cd options MD_NSECT=20000
.Sh DESCRIPTION
The
.Nm
@@ -57,7 +57,7 @@ backed by
is 20,000 sectors of 512 bytes each.
This can be changed
with the kernel option
-.Dv MDNSECT .
+.Dv MD_NSECT .
.Pp
At boot time the
.Nm
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 40f805481738..cb5b69c618f3 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -660,8 +660,8 @@ options MD_ROOT_SIZE=10
# images of type mfs_root or md_root.
options MD_ROOT
-# Specify the default maximum size for malloc(9)-backed md devices.
-options MDNSECT=20000
+# Specify double the default maximum size for malloc(9)-backed md devices.
+options MD_NSECT=40000
# Allow this many swap-devices.
options NSWAPDEV=20
diff --git a/sys/conf/options b/sys/conf/options
index 9cfabe6367fe..0ee2c9fd5263 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -54,9 +54,9 @@ GDB_REMOTE_CHAT opt_ddb.h
DEVFS
HW_WDOG
KTRACE
+MD_NSECT opt_md.h
MD_ROOT opt_md.h
MD_ROOT_SIZE opt_md.h
-MDNSECT opt_md.h
MFS_ROOT opt_mfs.h
MFS_ROOT_SIZE opt_mfs.h
NTIMECOUNTER opt_ntp.h
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index 1a8921402051..725b4078199d 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -24,8 +24,8 @@
#include <sys/sysctl.h>
#include <sys/linker.h>
-#ifndef MDNSECT
-#define MDNSECT (10000 * 2)
+#ifndef MD_NSECT
+#define MD_NSECT (10000 * 2)
#endif
MALLOC_DEFINE(M_MD, "MD disk", "Memory Disk");
@@ -381,7 +381,7 @@ mdcreate_malloc(void)
sc = mdcreate();
sc->type = MD_MALLOC;
- sc->nsect = MDNSECT; /* for now */
+ sc->nsect = MD_NSECT; /* for now */
MALLOC(sc->secp, u_char **, sizeof(u_char *), M_MD, M_WAITOK);
bzero(sc->secp, sizeof(u_char *));
sc->nsecp = 1;
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 40f805481738..cb5b69c618f3 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -660,8 +660,8 @@ options MD_ROOT_SIZE=10
# images of type mfs_root or md_root.
options MD_ROOT
-# Specify the default maximum size for malloc(9)-backed md devices.
-options MDNSECT=20000
+# Specify double the default maximum size for malloc(9)-backed md devices.
+options MD_NSECT=40000
# Allow this many swap-devices.
options NSWAPDEV=20