In 10.3-STABLE the -p option, which allows the setting of the file system's
permissions, worked fine. When I installed 11.1-STABLE and booted it, the
/etc/rc.d/tmp script failed with an error message about the -p option. I have
worked around the problem by removing the option from tmpmfs_flags in
/etc/rc.conf and changing the permissions elsewhere once the memory file system
has been created. However, the man page for mdmfs still says the option is
there to be used. Either the program or the man page should be changed, so
that the program's behavior and the man page are in accord.
Note: Both 10.3 and 11.1 are well past EOL.
We need more information to reproduce: what -p option was being used, and what was the error message? It works on CURRENT:
$ sudo mdmfs -p 700 tmpfs ./test-mount
$ echo $?
tmpfs on /usr/home/conrad/test-mount (tmpfs, local)
$ ls -lhd ./test-mount/
drwx------ 2 conrad conrad 0 Jun 30 08:40 ./test-mount//
I was unable to get it to work under 11.1, 11.2, and (I am not quite certain) in
11.3. I had waited to file this PR for a long time and, when I discovered a
few days ago that I could file simple (i.e., no attachments or any other kind
of uploads) PRs with lynx(1), I just filed it. However, I had not tried it again with what
I am currently running, which is
FreeBSD hellas 11.4-PRERELEASE FreeBSD 11.4-PRERELEASE #24 r360432: Tue Apr 28 18:48:15 CDT 2020 bennett@hellas:/usr/obj/usr/src/sys/hellas amd64 .
I have now done so and discovered that you are now correct: it should work
just fine with 11.4.
I apologize for the noise and am closing the PR as 'fixed'.