Skip to contentSkip to conversation

filesystem notification: create fs/notify to contain all fs notification

RFC In review Eric Paris 1 participant 1 message Sep 26, 2008

Subsystems (2)
lore
Share & tools
lore

Eric Paris

author
#0 lore raw

RFC 1/11 filesystem notification: create fs/notify to contain all fs notification

filesystem notification: create fs/notify to contain all fs notification

From: Eric Paris <[email protected]>

Adding yet another filesystem notification system it seemed like a good idea to clean up fs/ but creating an fs/notify and putting everything there.

---

 fs/Kconfig               |   39 --
 fs/Makefile              |    5 
 fs/dnotify.c             |  194 ------------
 fs/inotify.c             |  773 ----------------------------------------------
 fs/inotify_user.c        |  768 ----------------------------------------------
 fs/notify/Kconfig        |   38 ++
 fs/notify/Makefile       |    4 
 fs/notify/dnotify.c      |  194 ++++++++++++
 fs/notify/inotify.c      |  773 ++++++++++++++++++++++++++++++++++++++++++++++
 fs/notify/inotify_user.c |  768 ++++++++++++++++++++++++++++++++++++++++++++++
 10 files changed, 1779 insertions(+), 1777 deletions(-)
 delete mode 100644 fs/dnotify.c
 delete mode 100644 fs/inotify.c
 delete mode 100644 fs/inotify_user.c
 create mode 100644 fs/notify/Kconfig
 create mode 100644 fs/notify/Makefile
 create mode 100644 fs/notify/dnotify.c
 create mode 100644 fs/notify/inotify.c
 create mode 100644 fs/notify/inotify_user.c
fs/Kconfig +1 -38
index abccb5d..cfc7eab 100644
@@ -499,44 +499,7 @@ config OCFS2_DEBUG_FS
 
 endif # BLOCK
 
-config DNOTIFY
-	bool "Dnotify support"
-	default y
-	help
-	  Dnotify is a directory-based per-fd file change notification system
-	  that uses signals to communicate events to user-space.  There exist
-	  superior alternatives, but some applications may still rely on
-	  dnotify.
-
-	  If unsure, say Y.
-
-config INOTIFY
-	bool "Inotify file change notification support"
-	default y
-	---help---
-	  Say Y here to enable inotify support.  Inotify is a file change
-	  notification system and a replacement for dnotify.  Inotify fixes
-	  numerous shortcomings in dnotify and introduces several new features
-	  including multiple file events, one-shot support, and unmount
-	  notification.
-
-	  For more information, see <file:Documentation/filesystems/inotify.txt>
-
-	  If unsure, say Y.
-
-config INOTIFY_USER
-	bool "Inotify support for userspace"
-	depends on INOTIFY
-	default y
-	---help---
-	  Say Y here to enable inotify support for userspace, including the
-	  associated system calls.  Inotify allows monitoring of both files and
-	  directories via a single open fd.  Events are read from the file
-	  descriptor, which is also select()- and poll()-able.
-
-	  For more information, see <file:Documentation/filesystems/inotify.txt>
-
-	  If unsure, say Y.
+source "fs/notify/Kconfig"
 
 config QUOTA
 	bool "Quota support"
fs/Makefile +1 -4
index a1482a5..16c45da 100644
@@ -20,8 +20,7 @@ obj-y +=	no-block.o
 endif
 
 obj-$(CONFIG_BLK_DEV_INTEGRITY) += bio-integrity.o
-obj-$(CONFIG_INOTIFY)		+= inotify.o
-obj-$(CONFIG_INOTIFY_USER)	+= inotify_user.o
+obj-y				+= notify/
 obj-$(CONFIG_EPOLL)		+= eventpoll.o
 obj-$(CONFIG_ANON_INODES)	+= anon_inodes.o
 obj-$(CONFIG_SIGNALFD)		+= signalfd.o
@@ -55,8 +54,6 @@ obj-$(CONFIG_QFMT_V1)		+= quota_v1.o
 obj-$(CONFIG_QFMT_V2)		+= quota_v2.o
 obj-$(CONFIG_QUOTACTL)		+= quota.o
 
-obj-$(CONFIG_DNOTIFY)		+= dnotify.o
-
 obj-$(CONFIG_PROC_FS)		+= proc/
 obj-y				+= partitions/
 obj-$(CONFIG_SYSFS)		+= sysfs/
fs/dnotify.c deleted +0 -194

194 lines not on this page · raw message

fs/inotify.c deleted +0 -773

773 lines not on this page · raw message

fs/inotify_user.c deleted +0 -768

768 lines not on this page · raw message

fs/notify/Kconfig new file +38 -0
new file mode 100644
index 0000000..23415de
@@ -0,0 +1,38 @@
+config DNOTIFY
+	bool "Dnotify support"
+	default y
+	help
+	  Dnotify is a directory-based per-fd file change notification system
+	  that uses signals to communicate events to user-space.  There exist
+	  superior alternatives, but some applications may still rely on
+	  dnotify.
+
+	  If unsure, say Y.
+
+config INOTIFY
+	bool "Inotify file change notification support"
+	default y
+	---help---
+	  Say Y here to enable inotify support.  Inotify is a file change
+	  notification system and a replacement for dnotify.  Inotify fixes
+	  numerous shortcomings in dnotify and introduces several new features
+	  including multiple file events, one-shot support, and unmount
+	  notification.
+
+	  For more information, see <file:Documentation/filesystems/inotify.txt>
+
+	  If unsure, say Y.
+
+config INOTIFY_USER
+	bool "Inotify support for userspace"
+	depends on INOTIFY
+	default y
+	---help---
+	  Say Y here to enable inotify support for userspace, including the
+	  associated system calls.  Inotify allows monitoring of both files and
+	  directories via a single open fd.  Events are read from the file
+	  descriptor, which is also select()- and poll()-able.
+
+	  For more information, see <file:Documentation/filesystems/inotify.txt>
+
+	  If unsure, say Y.
fs/notify/Makefile new file +4 -0
new file mode 100644
index 0000000..882ecf9
@@ -0,0 +1,4 @@
+obj-$(CONFIG_INOTIFY)		+= inotify.o
+obj-$(CONFIG_INOTIFY_USER)	+= inotify_user.o
+
+obj-$(CONFIG_DNOTIFY)		+= dnotify.o
fs/notify/dnotify.c new file +194 -0

194 lines not on this page · raw message

fs/notify/inotify.c new file +773 -0

773 lines not on this page · raw message

fs/notify/inotify_user.c new file +768 -0

194 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.