On 9/11/23 18:07, Sebastian Hasler wrote:
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.
Hmm, yeah. I didn't see anywhere is disallowing to create with
O_TMPFILE. Let me have a look at this case carefully later.
Thanks very much for your reporting Sebastian.
- Xiubo