Skip to contentSkip to conversation

reiserfs: add missing llseek method

PATCH New Christoph Hellwig 1 participant 1 message Sep 8, 2008 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reiserfs: add missing llseek method

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.

fs/reiserfs/file.c +1 -0
Index: linux-2.6/fs/reiserfs/file.c
===================================================================
@@ -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 = {