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

From
Nicolas Dichtel <hidden>
Date
2019-07-01 14:17:09
Reply to
Matteo Croce, 2019-07-01
Le 01/07/2019 à 15:50, Matteo Croce a écrit :
On Mon, Jul 1, 2019 at 2:38 PM Nicolas Dichtel
[off-list ref] wrote:
quoted
Le 30/06/2019 à 21:29, Matteo Croce a écrit :
quoted
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
Yes, would work too. But ideally I'd wait for the mount inotify notifications.
Yes, I agree.
Thread (6 messages) 6 messages, 4 authors, last reply 2019-07-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help