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)
Mar 14 2024, 6:11 AM
Unknown Object (File)
Jan 23 2024, 2:32 AM
Unknown Object (File)
Dec 20 2023, 12:27 AM
Unknown Object (File)
Dec 2 2023, 1:31 PM
Unknown Object (File)
Oct 31 2023, 6:44 AM
Unknown Object (File)
Oct 13 2023, 12:28 PM
Unknown Object (File)
Oct 11 2023, 12:44 AM
Unknown Object (File)
Aug 27 2023, 6:51 AM
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.