Have you looked on google? The link is a bit misleading but they do
give a way to do it (not using inotify).
http://stackoverflow.com/questions/1113176/how-could-i-detect-when-a-directory-is-moun...
Chris
--
The author works for GENBAND Corporation (GENBAND) who is solely
responsible for this email and its contents. All enquiries regarding
this email should be addressed to GENBAND. Nortel has provided the use
of the nortel.com domain to GENBAND in connection with this email solely
for the purpose of connectivity and Nortel Networks Inc. has no
liability for the email or its contents. GENBAND's web site is
http://www.genband.com
--