"Nilsen, Vidar" <vidar.nil...@palantir.no> writes: > And once an hour I run a script that checks for new dirs last 60 > minutes matching some criteria, and outputs the path to an > IRC-channel. Where we can see if someone else has added new stuff. > > Method used is “find –mmin -60”, which gets horrible slow when more > data is added. > > My question is if there exists some method I can get the same results > but based on events rather than seeking through everything once an > hour.
yes, File Events Notification (FEN) http://blogs.sun.com/praks/entry/file_events_notification you access this through the event port API. http://developers.sun.com/solaris/articles/event_completion.html gnome-vfs uses FEN, but unfortunately gnomevfs-monitor will only watch a specific directory. I think you'll need to write your own code to watch all directories in a tree. -- Kjetil T. Homme Redpill Linpro AS - Changing the game _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss