Re: Race-free unlinking of directory entries

From: Christoph Hellwig
Date: Mon Apr 09 2018 - 05:59:26 EST


On Mon, Apr 09, 2018 at 09:42:41AM +0200, Pali Rohár wrote:
> Hi! I would like to remind this my older email about race free
> unlinking. Is there any plan to provide such support?

Given that in Linux we know which directory entry a given fd refers to,
we shouldn't even need a new syscall, but simply support the
AT_EMPTY_PATH flag for funlinkat.