diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-07 03:13:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:17 -0500 |
commit | e9b1a4d160f68397d29183ce76af1cc774508aba (patch) | |
tree | 029375c6bb3f0268dcd3aca373066acaec2e59ca | |
parent | 4a6b88ca3d9a301b496d6bfc18bc40c78fbb3669 (diff) |
Documentation: move dnotify.txt to filesystems/
I'm inclined to think dnotify belongs in filesystems/.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | Documentation/00-INDEX | 2 | ||||
-rw-r--r-- | Documentation/filesystems/00-INDEX | 2 | ||||
-rw-r--r-- | Documentation/filesystems/dnotify.txt (renamed from Documentation/dnotify.txt) | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Documentation/00-INDEX b/Documentation/00-INDEX index c1067e48b529..bb5e21034209 100644 --- a/Documentation/00-INDEX +++ b/Documentation/00-INDEX | |||
@@ -126,8 +126,6 @@ devices.txt | |||
126 | - plain ASCII listing of all the nodes in /dev/ with major minor #'s. | 126 | - plain ASCII listing of all the nodes in /dev/ with major minor #'s. |
127 | digiepca.txt | 127 | digiepca.txt |
128 | - info on Digi Intl. {PC,PCI,EISA}Xx and Xem series cards. | 128 | - info on Digi Intl. {PC,PCI,EISA}Xx and Xem series cards. |
129 | dnotify.txt | ||
130 | - info about directory notification in Linux. | ||
131 | dontdiff | 129 | dontdiff |
132 | - file containing a list of files that should never be diff'ed. | 130 | - file containing a list of files that should never be diff'ed. |
133 | driver-model/ | 131 | driver-model/ |
diff --git a/Documentation/filesystems/00-INDEX b/Documentation/filesystems/00-INDEX index 1de155e2dc36..632fe3f376eb 100644 --- a/Documentation/filesystems/00-INDEX +++ b/Documentation/filesystems/00-INDEX | |||
@@ -32,6 +32,8 @@ directory-locking | |||
32 | - info about the locking scheme used for directory operations. | 32 | - info about the locking scheme used for directory operations. |
33 | dlmfs.txt | 33 | dlmfs.txt |
34 | - info on the userspace interface to the OCFS2 DLM. | 34 | - info on the userspace interface to the OCFS2 DLM. |
35 | dnotify.txt | ||
36 | - info about directory notification in Linux. | ||
35 | ecryptfs.txt | 37 | ecryptfs.txt |
36 | - docs on eCryptfs: stacked cryptographic filesystem for Linux. | 38 | - docs on eCryptfs: stacked cryptographic filesystem for Linux. |
37 | ext2.txt | 39 | ext2.txt |
diff --git a/Documentation/dnotify.txt b/Documentation/filesystems/dnotify.txt index 6984fca6002a..9f5d338ddbb8 100644 --- a/Documentation/dnotify.txt +++ b/Documentation/filesystems/dnotify.txt | |||
@@ -69,24 +69,24 @@ Example | |||
69 | #include <signal.h> | 69 | #include <signal.h> |
70 | #include <stdio.h> | 70 | #include <stdio.h> |
71 | #include <unistd.h> | 71 | #include <unistd.h> |
72 | 72 | ||
73 | static volatile int event_fd; | 73 | static volatile int event_fd; |
74 | 74 | ||
75 | static void handler(int sig, siginfo_t *si, void *data) | 75 | static void handler(int sig, siginfo_t *si, void *data) |
76 | { | 76 | { |
77 | event_fd = si->si_fd; | 77 | event_fd = si->si_fd; |
78 | } | 78 | } |
79 | 79 | ||
80 | int main(void) | 80 | int main(void) |
81 | { | 81 | { |
82 | struct sigaction act; | 82 | struct sigaction act; |
83 | int fd; | 83 | int fd; |
84 | 84 | ||
85 | act.sa_sigaction = handler; | 85 | act.sa_sigaction = handler; |
86 | sigemptyset(&act.sa_mask); | 86 | sigemptyset(&act.sa_mask); |
87 | act.sa_flags = SA_SIGINFO; | 87 | act.sa_flags = SA_SIGINFO; |
88 | sigaction(SIGRTMIN + 1, &act, NULL); | 88 | sigaction(SIGRTMIN + 1, &act, NULL); |
89 | 89 | ||
90 | fd = open(".", O_RDONLY); | 90 | fd = open(".", O_RDONLY); |
91 | fcntl(fd, F_SETSIG, SIGRTMIN + 1); | 91 | fcntl(fd, F_SETSIG, SIGRTMIN + 1); |
92 | fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT); | 92 | fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT); |