svn commit: r344218 - head/sbin/mdmfs

Kyle Evans kevans at FreeBSD.org
Sat Feb 16 23:57:39 UTC 2019


Author: kevans
Date: Sat Feb 16 23:57:38 2019
New Revision: 344218
URL: https://svnweb.freebsd.org/changeset/base/344218

Log:
  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

Modified:
  head/sbin/mdmfs/mdmfs.c

Modified: head/sbin/mdmfs/mdmfs.c
==============================================================================
--- head/sbin/mdmfs/mdmfs.c	Sat Feb 16 19:49:12 2019	(r344217)
+++ head/sbin/mdmfs/mdmfs.c	Sat Feb 16 23:57:38 2019	(r344218)
@@ -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);


More information about the svn-src-head mailing list