Skip to content

Commit

Permalink
filesystem notification: create fs/notify to contain all fs notification
Browse files Browse the repository at this point in the history
Creating a generic filesystem notification interface, fsnotify, which will be
used by inotify, dnotify, and eventually fanotify is really starting to
clutter the fs directory.  This patch simply moves inotify and dnotify into
fs/notify/inotify and fs/notify/dnotify respectively to make both current fs/
and future notification tidier.

Signed-off-by: Eric Paris <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
eparis authored and Al Viro committed Dec 31, 2008
1 parent c2acf7b commit 272eb01
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 42 deletions.
39 changes: 1 addition & 38 deletions fs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -270,44 +270,7 @@ config OCFS2_COMPAT_JBD

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"
Expand Down
5 changes: 1 addition & 4 deletions fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,8 +56,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/
Expand Down
2 changes: 2 additions & 0 deletions fs/notify/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source "fs/notify/dnotify/Kconfig"
source "fs/notify/inotify/Kconfig"
2 changes: 2 additions & 0 deletions fs/notify/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj-y += dnotify/
obj-y += inotify/
10 changes: 10 additions & 0 deletions fs/notify/dnotify/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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.
1 change: 1 addition & 0 deletions fs/notify/dnotify/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_DNOTIFY) += dnotify.o
File renamed without changes.
27 changes: 27 additions & 0 deletions fs/notify/inotify/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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.
2 changes: 2 additions & 0 deletions fs/notify/inotify/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj-$(CONFIG_INOTIFY) += inotify.o
obj-$(CONFIG_INOTIFY_USER) += inotify_user.o
File renamed without changes.
File renamed without changes.

0 comments on commit 272eb01

Please sign in to comment.