All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] reiserfs: add missing llseek method
@ 2008-09-08 17:42 Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2008-09-08 17:42 UTC (permalink / raw)
  To: viro; +Cc: reiserfs-devel, linux-fsdevel

Reiserfs currently doesn't set a llseek method for regular files, which
means it will fall back to default_llseek.  This means no one can seek
beyond 2 Gigabytes on reiserfs, and that there's not protection vs
the i_size updates from writers.


Signed-off-by: Christoph Hellwig <hch@lst.de>

Index: linux-2.6/fs/reiserfs/file.c
===================================================================
--- linux-2.6.orig/fs/reiserfs/file.c	2008-09-08 19:39:09.000000000 +0200
+++ linux-2.6/fs/reiserfs/file.c	2008-09-08 19:40:14.000000000 +0200
@@ -296,6 +296,7 @@ const struct file_operations reiserfs_fi
 	.aio_write = generic_file_aio_write,
 	.splice_read = generic_file_splice_read,
 	.splice_write = generic_file_splice_write,
+	.llseek = generic_file_llseek,
 };
 
 const struct inode_operations reiserfs_file_inode_operations = {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-08 17:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-08 17:42 [PATCH] reiserfs: add missing llseek method Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.