Re: [patch] inotify for 2.6.12-rc3.

From: Robert Love
Date: Thu Apr 21 2005 - 23:57:27 EST


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@xxxxxxxxxx>

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/