mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
Rename MDNSECT to MD_NSECT and declare it as something that isn't
default in NOTES. Requested by: bde Approved by: phk
This commit is contained in:
parent
feeff03591
commit
f274479332
5 changed files with 10 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue