aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/mdmfs
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-02-16 23:57:38 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-02-16 23:57:38 +0000
commitc9b6ff9c980f9219220cceb18f8e58662da07ad8 (patch)
treedd92378281b7ab30aba39c880d32ccf4814496a2 /sbin/mdmfs
parent7588d90e4a22585cfff3b725fa7bf570cc7bd09d (diff)
downloadsrc-c9b6ff9c980f9219220cceb18f8e58662da07ad8.tar.gz
src-c9b6ff9c980f9219220cceb18f8e58662da07ad8.zip
mdmfs(8): use -o reserve with malloc-backed md(4)
Mentioned in mdconfig(8), malloc-backed md(4) can be unstable unless required memory is allocated up front with -o reserve. Furthermore, panics have been observed with md used in fstab on 12.0-RELEASE. Choose the stable route and pass -o reserve. Submitted by: Paul Vixie MFC after: 1 week
Notes
Notes: svn path=/head/; revision=344218
Diffstat (limited to 'sbin/mdmfs')
-rw-r--r--sbin/mdmfs/mdmfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c
index 6e4a39611a89..2dcf087079e5 100644
--- a/sbin/mdmfs/mdmfs.c
+++ b/sbin/mdmfs/mdmfs.c
@@ -196,6 +196,7 @@ main(int argc, char **argv)
usage();
mdtype = MD_MALLOC;
have_mdtype = true;
+ argappend(&mdconfig_arg, "-o reserve");
break;
case 'm':
argappend(&newfs_arg, "-m %s", optarg);