mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
97e1cfb086
commit
5c89468c12
1 changed files with 1 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue