Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2017 22:21:42 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324108 - head/etc
Message-ID:  <201709292221.v8TMLgFr084743@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Fri Sep 29 22:21:42 2017
New Revision: 324108
URL: https://svnweb.freebsd.org/changeset/base/324108

Log:
  Remove spurious $flags; it's a paste-o from copying the line from rc.subr.
  Also, add a comment documenting the args passed to mount_md().

Modified:
  head/etc/rc.initdiskless

Modified: head/etc/rc.initdiskless
==============================================================================
--- head/etc/rc.initdiskless	Fri Sep 29 22:13:26 2017	(r324107)
+++ head/etc/rc.initdiskless	Fri Sep 29 22:21:42 2017	(r324108)
@@ -197,8 +197,9 @@ handle_remount() { # $1 = mount point
 
 # Create a generic memory disk.
 # The 'auto' parameter will attempt to use tmpfs(5), falls back to md(4).
+# $1 is size in 512-byte sectors, $2 is the mount point.
 mount_md() {
-    /sbin/mdmfs $flags -s $1 auto $2
+    /sbin/mdmfs -s $1 auto $2
 }
 
 # Create the memory filesystem if it has not already been created



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709292221.v8TMLgFr084743>