![]() | ||||||||||
Messages in this thread Patch in this message |
On Thu, 2005-04-21 at 01:13 -0400, Robert Love wrote: > Live from linux.conf.au, below is inotify against 2.6.12-rc3. Mark the open inotify device as nonseekable, so lseek() and such do not work. Signed-off-by: Robert Love <rml@novell.com> fs/inotify.c | 2 ++ 1 files changed, 2 insertions(+) diff -urN linux-2.6.12-rc3-inotify/fs/inotify.c linux/fs/inotify.c --- linux-2.6.12-rc3-inotify/fs/inotify.c 2005-04-22 00:54:25.000000000 -0400 +++ linux/fs/inotify.c 2005-04-22 00:50:36.000000000 -0400 @@ -743,6 +743,8 @@ file->private_data = dev; + nonseekable_open(inode, file); + return 0; out_err: free_uid(user); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | |||||||||
| Last update: 2005-04-22 04:59 [from the cache] ©2003-2008 | ||||||||||