Page MenuHomeFreeBSD

Rework a bit /dev/shm magic.
ClosedPublic

Authored by dchagin on Jan 11 2015, 2:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 7:12 PM
Unknown Object (File)
Fri, Dec 20, 6:47 PM
Unknown Object (File)
Fri, Dec 20, 12:52 PM
Unknown Object (File)
Thu, Dec 5, 3:02 PM
Unknown Object (File)
Nov 14 2024, 1:43 AM
Unknown Object (File)
Nov 13 2024, 11:54 PM
Unknown Object (File)
Sep 24 2024, 9:08 AM
Unknown Object (File)
Sep 19 2024, 11:50 PM
Subscribers
None

Details

Summary

As for now our tmpfs is no longer being considered "highly experimental" remove /dev/shm magic commited in r218497 and convert tmpfs type to an expected magic number.

Test Plan

rt/tst-shm test from glib-2.20

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dchagin retitled this revision from to Rework a bit /dev/shm magic..
dchagin updated this object.
dchagin added a reviewer: Linux Emulation.

Out of curiosity, what did the deleted parts of code used to do, and why it's no longer needed?

In D1497#5, @trasz wrote:

Out of curiosity, what did the deleted parts of code used to do, and why it's no longer needed?

glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for POSIX shared memory (shm_open, shm_unlink).
if /dev/shm is not mounted glibc tries (where_is_shmfs() method) all entries in /proc/mounts by statfs() sys call
and check f_type against SHMFS_SUPER_MAGIC.
So, removed code weird )))

trasz edited edge metadata.
This revision is now accepted and ready to land.Mar 31 2015, 12:27 PM
This revision was automatically updated to reflect the committed changes.