FreeBSD Bugzilla – Attachment 103169 Details for
Bug 143058
[patch] mdconfig(8): make mdconfig -o reserve default for malloc-backed memory disks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.27 KB, created by
Nikos Vassiliadis
on 2010-01-21 16:40:06 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Nikos Vassiliadis
Created:
2010-01-21 16:40:06 UTC
Size:
1.27 KB
patch
obsolete
>Index: src/sbin/mdconfig/mdconfig.8 >=================================================================== >RCS file: /home/ncvs/src/sbin/mdconfig/mdconfig.8,v >retrieving revision 1.44 >diff -u -r1.44 mdconfig.8 >--- src/sbin/mdconfig/mdconfig.8 10 Jan 2009 17:17:18 -0000 1.44 >+++ src/sbin/mdconfig/mdconfig.8 21 Jan 2010 16:12:10 -0000 >@@ -91,8 +91,8 @@ > .Xr malloc 9 . > This limits the size to the malloc bucket limit in the kernel. > If the >-.Fl o Cm reserve >-option is not set, creating and filling a large >+.Fl o Cm noreserve >+option is set, creating and filling a large > malloc-backed memory disk is a very easy way to > panic a system. > .It Cm vnode >Index: src/sbin/mdconfig/mdconfig.c >=================================================================== >RCS file: /home/ncvs/src/sbin/mdconfig/mdconfig.c,v >retrieving revision 1.57 >diff -u -r1.57 mdconfig.c >--- src/sbin/mdconfig/mdconfig.c 10 Jan 2009 17:17:18 -0000 1.57 >+++ src/sbin/mdconfig/mdconfig.c 21 Jan 2010 16:12:10 -0000 >@@ -115,7 +115,7 @@ > usage(); > if (!strcmp(optarg, "malloc")) { > mdio.md_type = MD_MALLOC; >- mdio.md_options = MD_AUTOUNIT | MD_COMPRESS; >+ mdio.md_options = MD_AUTOUNIT | MD_COMPRESS | MD_RESERVE; > } else if (!strcmp(optarg, "preload")) { > mdio.md_type = MD_PRELOAD; > mdio.md_options = 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 143058
: 103169