svn commit: r344624 - stable/12/sbin/mdmfs

Kyle Evans kevans at FreeBSD.org
Wed Feb 27 17:00:15 UTC 2019


Author: kevans
Date: Wed Feb 27 17:00:14 2019
New Revision: 344624
URL: https://svnweb.freebsd.org/changeset/base/344624

Log:
  MFC r344218: 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.

Modified:
  stable/12/sbin/mdmfs/mdmfs.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/mdmfs/mdmfs.c
==============================================================================
--- stable/12/sbin/mdmfs/mdmfs.c	Wed Feb 27 14:20:28 2019	(r344623)
+++ stable/12/sbin/mdmfs/mdmfs.c	Wed Feb 27 17:00:14 2019	(r344624)
@@ -194,6 +194,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-all mailing list