summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-07-17 13:13:04 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-07-17 13:13:04 +0000
commit263ffe32d13445d7647ddc4ebdb26e361e142020 (patch)
treef11084e65236395673690502b8b9e4186992b0b5
parentc633746aa6dbaa895bff3682cd0c909143dcc677 (diff)
downloadFreeBSD-src-263ffe32d13445d7647ddc4ebdb26e361e142020.zip
FreeBSD-src-263ffe32d13445d7647ddc4ebdb26e361e142020.tar.gz
Rename MDNSECT to MD_NSECT and declare it as something that isn't
default in NOTES. Requested by: bde Approved by: phk
-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 7b7d16b..5a771e3 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 40f8054..cb5b69c 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 9cfabe6..0ee2c9f 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 1a89214..725b407 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 40f8054..cb5b69c 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
OpenPOWER on IntegriCloud