RE: [PATCH] large offset llseek breaks for device special files on ac series

Martin Frey
2001-06-20T05:53:52Z

>Here is the patch.

Sorry, at least most of the patch was there. Here is the rest:

diff -r -u -N -b linux-2.4.5.ac16/include/linux/fs.h linux-2.4.5.ac16.patched/include/linux/fs.h
--- linux-2.4.5.ac16/include/linux/fs.h Tue Jun 19 15:12:50 2001
+++ linux-2.4.5.ac16.patched/include/linux/fs.h Tue Jun 19 18:28:47 2001
@@ -1336,6 +1336,7 @@
extern void do_generic_file_read(struct file *, loff_t *, read_descriptor_t *, read_actor_t);

extern ssize_t generic_read_dir(struct file *, char *, size_t, loff_t *);
+extern loff_t generic_file_llseek(struct file *, loff_t, int);
extern int generic_file_open(struct inode *, struct file *);

extern struct file_operations generic_ro_fops;
diff -r -u -N -b linux-2.4.5.ac16/kernel/ksyms.c linux-2.4.5.ac16.patched/kernel/ksyms.c
--- linux-2.4.5.ac16/kernel/ksyms.c Tue Jun 19 15:13:08 2001
+++ linux-2.4.5.ac16.patched/kernel/ksyms.c Wed Jun 20 01:41:21 2001
@@ -245,6 +245,7 @@
EXPORT_SYMBOL(vfs_unlink);
EXPORT_SYMBOL(vfs_rename);
EXPORT_SYMBOL(vfs_statfs);
+EXPORT_SYMBOL(generic_file_llseek);
EXPORT_SYMBOL(generic_read_dir);
EXPORT_SYMBOL(__pollwait);
EXPORT_SYMBOL(poll_freewait);