diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2019-02-16 23:57:38 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2019-02-16 23:57:38 +0000 |
commit | c9b6ff9c980f9219220cceb18f8e58662da07ad8 (patch) | |
tree | dd92378281b7ab30aba39c880d32ccf4814496a2 /sbin/mdmfs | |
parent | 7588d90e4a22585cfff3b725fa7bf570cc7bd09d (diff) | |
download | src-test-c9b6ff9c980f9219220cceb18f8e58662da07ad8.tar.gz src-test-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c index 6e4a39611a89f..2dcf087079e5e 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); |