On 11/09/2023 05:21, Xiubo Li wrote:
"This will generally not work if the file has a link count of
zero (files created with O_TMPFILE and without O_EXCL are an
exception)."
In this sentence, "generally" probably means "typically", so it depends
on the specific file system's behavior. I don't know the CephFS behavior
in this case. However, at least files created with O_TMPFILE are an
exception. Does CephFS support creating files with O_TMPFILE? Such files
can (and often will) go from the unlinked and open state to the linked
and closed state.
--
Sebastian Hasler, M.Sc.
Institute of Information Security - SEC
University of Stuttgart
Universitätsstraße 38
D-70569 Stuttgart
Germany
https://sec.uni-stuttgart.de
Phone: +49 (0) 711 685 88208