# Re: \[RFC PATCH\] fs: introduce mkdirat2 syscall for atomic mkdir

- From: Miklos Szeredi \<miklos@szeredi.hu\>
- Date: 2021-03-02 12:06:26 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2021/03/200898
- Thread: https://ratatoskr.run/linux-fsdevel/2021/02/200743/t.md

```text
On Mon, Mar 1, 2021 at 8:42 PM Matthew Wilcox [ref] wrote:

> (as an aside, i think there's a missing feature in posix -- being able
> to atomically replace one directory with another.

RENAME_EXCHANGE.

Thanks,
Miklos
```
