I'm using Linux Inotify to detect FS events on my program.
How could I be notified when a device is mounted on a monitored directory?
I don't think you can do it with
inotify. Here is the method though:
"/proc/mounts"when you get an event with a