Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2025 11:25:36 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        FreeBSD Current <current@freebsd.org>
Subject:   Re: rc.d/tmp: tmpfs support not entirely complete?
Message-ID:  <CANCZdfpSVougZomphE_eeAmk4vHjugPcX50WhWRKbu0jNEGNxA@mail.gmail.com>
In-Reply-To: <da28cb1d-9045-4963-bcdc-783512d85313@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Thu, Sep 25, 2025 at 8:10 AM Andriy Gapon <avg@freebsd.org> wrote:

>
> I've just had a quick look at rc.d/tmp and noticed that it uses mount_md
> function for the actual mounting.  The function is quite smart and can use
> either tmpfs or a memory disk depending on the configuration.
> But mount_tmpmfs in rc.d/tmp tests only for an md device when it checks
> whether
> /tmp is already a "memory filesystem".
>

That sounds wrong to me...

Warner

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Sep 25, 2025 at 8:10 AM Andriy Gapon &lt;<a href="mailto:avg@freebsd.org">avg@freebsd.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I&#39;ve just had a quick look at rc.d/tmp and noticed that it uses mount_md <br>
function for the actual mounting.  The function is quite smart and can use <br>
either tmpfs or a memory disk depending on the configuration.<br>
But mount_tmpmfs in rc.d/tmp tests only for an md device when it checks whether <br>
/tmp is already a &quot;memory filesystem&quot;.<br></blockquote><div><br></div><div>That sounds wrong to me... </div><div><br></div><div>Warner </div></div></div>
home | help

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