Actions
Feature #13743
closedSupport linking of files opened with O_TMPFILE
Feature #13743:
Support linking of files opened with O_TMPFILE
Description
This patch enables linking of files opened with O_TMPFILE into file system.
Users can make a temporary file persistent as named file.
File.open(".", IO::WRONLY|IO::TMPFILE) do |f|
f.write("content")
f.chmod(0600)
File.link(f, "file_name") # make temporary file persistent
end
Files
Actions