Re: O_NOLINK for open()

Jan Kara
2007-09-13T09:13:54Z

> > However, it occurs to me that this problem goes away if there were
> > a method create a file in an unlinked state to begin with. However
> > there does not appear to be any such mechanism in Linux's open()
> > interface.
>
> Having no window for creating stale temp files is nice to have. We only
> need a clever fool to implement it.-) But since it's hard to get killed
> just in the right moment for having a stale temp file, there is very low
> interest for this feature.
I don't think this is a problem. The file is simply created with link
count 0. As soon as the process closes the file, it gets deleted. So
there would be no stale files... Or did you mean anything else?

Honza
--
Jan Kara <jack@suse.cz>
SuSE CR Labs