summaryrefslogtreecommitdiff
path: root/fs/udf
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-09-08 21:44:17 +0400
committerJan Kara <jack@suse.cz>2008-09-08 22:31:04 +0400
commit5c89468c12899b84886cb47eec93f0c88e0f896a (patch)
tree2a862d7ad5ac16d2911d0f34a66a096ef72f6211 /fs/udf
parent97e1cfb08616987878f91a46cefdd7fc5fa3dba1 (diff)
downloadlinux-5c89468c12899b84886cb47eec93f0c88e0f896a.tar.xz
udf: add llseek method
UDF 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 udf, and that there's not protection vs the i_size updates from writers. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c
index 0ed6e146a0d9..eb91f3b70320 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -211,6 +211,7 @@ const struct file_operations udf_file_operations = {
.release = udf_release_file,
.fsync = udf_fsync_file,
.splice_read = generic_file_splice_read,
+ .llseek = generic_file_llseek,
};
const struct inode_operations udf_file_inode_operations = {