inotify -cannot add a watch to newly created directory after few levels in a directoy
I am using inotify on Linux to monitor a directory. My directory has 50 sub-directories and my directory tree is 20 level deep. I am able to monitor directory and all its sub directories till this point. I using C++ STL vector to save each directories path and their respective watch descriptor. When i add 8 or 10 new directories recursively i.e. add new 8-10 new level, i get notification about any event till 28th or 30th levels inside the directory tree. If i create a new directory inside 28th or 30th level than i do not get any notification.
Has any body faced this problem.
Last edited by rex1254; 09-10-2014 at 07:11 AM.
|