]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/inotify.h
inotify: force inotify and fsnotify use same bits
[net-next-2.6.git] / include / linux / inotify.h
index b74f2ef2c3686c530db576f96a489bd93f1fb1e6..d33041e2a42a6ee16bef9df6348eb4ec026cefd3 100644 (file)
@@ -73,6 +73,15 @@ struct inotify_event {
 #ifdef __KERNEL__
 #include <linux/sysctl.h>
 extern struct ctl_table inotify_table[]; /* for sysctl */
+
+#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)
+
 #endif
 
 #endif /* _LINUX_INOTIFY_H */