O_DIRECTORY|O_TMPFILE - sample code
O_DIRECTORY|O_TMPFILE - sample code
Posted Aug 10, 2026 2:48 UTC (Mon) by neilbrown (subscriber, #359)In reply to: O_DIRECTORY|O_TMPFILE by neilbrown
Parent article: Reconsidering O_CREAT|O_DIRECTORY
I decide to play and wrote some code which implements this idea for tmpfs.
It is in the TMPDIR branch of my "linux" tree on github.
It is in the TMPDIR branch of my "linux" tree on github.
https://github.com/neilbrown/linux/tree/TMPDIR
There is a .c file in the root for testing.
No promises - it might eat your data.
