/tmp: change default to mdmfs and/or tmpfs?

Jeremy Chadwick jdc at koitsu.org
Sun Jun 9 13:17:01 UTC 2013


On Sun, Jun 09, 2013 at 08:00:37AM -0500, Matthew D. Fuller wrote:
> On Sun, Jun 09, 2013 at 05:46:03AM -0700 I heard the voice of
> Jeremy Chadwick, and lo! it spake thus:
> > 
> > 1. grep -r tmpfs /etc returns nothing, so I don't know where this magic
> > comes from,
> 
> Remembering the second 'm' in tmpmfs   8-}
> 
> 
> > 2. tmpfs(5) documents none of these flags, and the flags you've given
> > cannot be mdconfig(8) flags because:
> 
> Which is why they're mdmfs(8) flags (/etc/rc.d/tmp -> mount_md from
> rc.subr -> mdmfs).

Thank you -- the magic has been discovered!  ;-)  I had never heard of
mdmfs(8) until now (mdconfig(8) sure, mdmfs(8) nope).

Looking at the source, this thing is just a "fancy wrapper" written in
C, using mdconfig(8) and newfs(8), as well as geom_uzip(4) (which I also
didn't know about until now) in some manner (not sure how that fits
into the puzzle).  I guess it's mainly a program for convenience.

-- 
| Jeremy Chadwick                                   jdc at koitsu.org |
| UNIX Systems Administrator                http://jdc.koitsu.org/ |
| Making life hard for others since 1977.             PGP 4BD6C0CB |



More information about the freebsd-fs mailing list