# Re: \[RFC iproute2\] netns: add mounting state file for each netns

- From: Nicolas Dichtel \<hidden\>
- Date: 2019-07-01 12:38:39 
- List: netdev
- Page: https://ratatoskr.run/netdev/2019/07/11140886
- Thread: https://ratatoskr.run/netdev/2019/06/11140824/t.md

```text
Le 30/06/2019 à 21:29, Matteo Croce a écrit :
> When ip creates a netns, there is a small time interval between the
> placeholder file creation in NETNS_RUN_DIR and the bind mount from /proc.
> 
> Add a temporary file named .mounting-$netns which gets deleted after the
> bind mount, so watching for delete event matching the .mounting-* name
> will notify watchers only after the bind mount has been done.
Probably a naive question, but why creating those '.mounting-$netns' files in
the directory where netns are stored? Why not another directory, something like
/var/run/netns-monitor/?


Regards,
Nicolas
```
