--- zzzz-none-000/linux-2.6.39.4/include/linux/inotify.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/linux/inotify.h 2021-11-10 13:38:17.000000000 +0000 @@ -56,6 +56,8 @@ #define IN_ISDIR 0x40000000 /* event occurred against dir */ #define IN_ONESHOT 0x80000000 /* only send event once */ +#define IN_RECURSIVE 0x10000000 /* use recursive events */ + /* * All of the events - we build the list by hand so that we can add flags in * the future and not break backward compatibility. Apps will get only the @@ -74,6 +76,14 @@ #include extern struct ctl_table inotify_table[]; /* for sysctl */ +#if defined(CONFIG_FSNOTIFY_RECURSIVE) +#define ALL_INOTIFY_BITS \ + (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE | \ + IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM | IN_MOVED_TO | \ + IN_CREATE | IN_DELETE | IN_DELETE_SELF | IN_MOVE_SELF | IN_UNMOUNT | \ + IN_Q_OVERFLOW | IN_IGNORED | IN_ONLYDIR | IN_DONT_FOLLOW | \ + IN_EXCL_UNLINK | IN_MASK_ADD | IN_ISDIR | IN_ONESHOT | IN_RECURSIVE) +#else #define ALL_INOTIFY_BITS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE | \ IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM | \ IN_MOVED_TO | IN_CREATE | IN_DELETE | \ @@ -81,6 +91,7 @@ IN_Q_OVERFLOW | IN_IGNORED | IN_ONLYDIR | \ IN_DONT_FOLLOW | IN_EXCL_UNLINK | IN_MASK_ADD | \ IN_ISDIR | IN_ONESHOT) +#endif #endif