Ideally, I want to have a directory that does not appear on the file system and that will be automatically deleted when the last open file descriptor is closed. Content will only be available through openat() , fstatat() , etc.
For regular files, this behavior is achieved if the O_TMPFILE flag is open() . However, mkdir() does not have the flags parameter.
Assuming I have the latest Linux kernel, is this possible?
Benno source share