udf: add llseek method
Subsystems (2)
PATCH 1/1 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 reiserfs, and that there's not protection vs the i_size updates from writers.
Signed-off-by Christoph Hellwig <[email protected]>
fs/udf/file.c +1 -0
@@ -211,6 +211,7 @@ const struct file_operations udf_file_op .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 = {
Jan Kara
reviewerQuoted 4 lines · Christoph Hellwig
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 reiserfs, and that there's not protection vs thei_sizeupdates from writers.
Thanks. Merged after fixing typo in the changelog (reiserfs -> udf).
Honza
Quoted 14 lines
Signed-off-by Christoph Hellwig <[email protected]>Index:
linux-2.6/fs/udf/file.c
===================================================================fs/udf/file.c +1
-0@@ -211,6 +211,7 @@ const struct file_operations udf_file_op .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 = {
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR