<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>295096</bug_id>
          
          <creation_ts>2026-05-08 06:11:41 +0000</creation_ts>
          <short_desc>mount fail on remount with tmpfs with extra args</short_desc>
          <delta_ts>2026-05-27 23:23:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Base System</product>
          <component>bin</component>
          <version>16.0-CURRENT</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Many People</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Rozhuk">rozhuk.im</reporter>
          <assigned_to name="Dag-Erling Smørgrav">des</assigned_to>
          <cc>des</cc>
    
    <cc>emaste</cc>
    
    <cc>rozhuk.im</cc>
          

      

      

      <flag name="mfc-stable15"
          id="98431"
          type_id="13"
          status="+"
          setter="des"
    />
    <flag name="mfc-stable14"
          id="98432"
          type_id="11"
          status="+"
          setter="des"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1422009</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Rozhuk">rozhuk.im</who>
    <bug_when>2026-05-08 06:11:41 +0000</bug_when>
    <thetext>Command sequence does not work:
mkdir -p /tmp/1234567
mount -o rw -o nomtime -o pgread -o size=10m -o mode=0777 -o noexec -o nosuid -o inodes=128k -t tmpfs tmpfs /tmp/1234567
mount -u -o ro /tmp/1234567
mount: tmpfs: mount option &lt;pgread&gt; is unknown: Operation not supported
...
mount: tmpfs: mount option &lt;mode&gt; is unknown: Operation not supported
...
mount: tmpfs: mount option &lt;inodes&gt; is unknown: Operation not supported
...

Only
mount -o rw -o nomtime -o size=10m -o noexec -o nosuid -t tmpfs tmpfs /tmp/1234567
wokrs.


Can it be fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424259</commentid>
    <comment_count>1</comment_count>
    <who name="Dag-Erling Smørgrav">des</who>
    <bug_when>2026-05-18 14:33:18 +0000</bug_when>
    <thetext>https://reviews.freebsd.org/D57044</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424390</commentid>
    <comment_count>2</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-05-19 06:55:40 +0000</bug_when>
    <thetext>A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=1cfc208a07b64a64377a4f8fe51c28f588a929cf

commit 1cfc208a07b64a64377a4f8fe51c28f588a929cf
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-05-19 06:54:28 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-05-19 06:54:28 +0000

    tmpfs: Overhaul option handling on remount

    On remount, we must accept all the same options as on initial mount.
    For parameters which we&apos;re unable to modify on the fly, fail only if
    the new value is different from the existing one.

    PR:             295096
    MFC after:      1 week
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D57044

 sys/fs/tmpfs/tmpfs_vfsops.c | 100 +++++++++++++++++++++++++++-----------------
 1 file changed, 62 insertions(+), 38 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1425459</commentid>
    <comment_count>3</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-05-24 16:16:03 +0000</bug_when>
    <thetext>A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=0f4fd69ee282b7ab5f23d0a4d3e57ab1ef6ec26c

commit 0f4fd69ee282b7ab5f23d0a4d3e57ab1ef6ec26c
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-05-19 06:54:28 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-05-24 16:14:39 +0000

    tmpfs: Overhaul option handling on remount

    On remount, we must accept all the same options as on initial mount.
    For parameters which we&apos;re unable to modify on the fly, fail only if
    the new value is different from the existing one.

    PR:             295096
    MFC after:      1 week
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D57044

    (cherry picked from commit 1cfc208a07b64a64377a4f8fe51c28f588a929cf)

 sys/fs/tmpfs/tmpfs_vfsops.c | 100 +++++++++++++++++++++++++++-----------------
 1 file changed, 62 insertions(+), 38 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1425460</commentid>
    <comment_count>4</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-05-24 16:16:04 +0000</bug_when>
    <thetext>A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=09935bf8af363af75fc94b65bb3c33e323e9893a

commit 09935bf8af363af75fc94b65bb3c33e323e9893a
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-05-19 06:54:28 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-05-24 16:14:50 +0000

    tmpfs: Overhaul option handling on remount

    On remount, we must accept all the same options as on initial mount.
    For parameters which we&apos;re unable to modify on the fly, fail only if
    the new value is different from the existing one.

    PR:             295096
    MFC after:      1 week
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D57044

    (cherry picked from commit 1cfc208a07b64a64377a4f8fe51c28f588a929cf)

 sys/fs/tmpfs/tmpfs_vfsops.c | 100 +++++++++++++++++++++++++++-----------------
 1 file changed, 62 insertions(+), 38 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426282</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Linimon">linimon</who>
    <bug_when>2026-05-27 22:21:19 +0000</bug_when>
    <thetext>^Triage: the mfc-stable* flags are set, so this is properly still In Progress.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>