Re: mount notification question

From: Chris Friesen
Date: Wed Aug 04 2010 - 15:04:26 EST


On 08/02/2010 03:12 PM, Daniel Lezcano wrote:
>
> Hi all,
>
> is there a way to be notified when a mount occurs on the system ?

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-mounted-with-inotify

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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/