enhance inotify support.