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?
If you don't mind lots of false alarms, you might be able to watch for close_nowrite on /etc/fstab. . Watching /etc/mtab, /proc/mounts, etc. doesn't work for me.
close_nowrite
/etc/fstab
/etc/mtab
/proc/mounts