Commit 5c89468c12899b84886cb47eec93f0c88e0f896a

Authored by Christoph Hellwig
Committed by Jan Kara
1 parent 97e1cfb086

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -211,6 +211,7 @@
211 211 .release = udf_release_file,
212 212 .fsync = udf_fsync_file,
213 213 .splice_read = generic_file_splice_read,
  214 + .llseek = generic_file_llseek,
214 215 };
215 216  
216 217 const struct inode_operations udf_file_inode_operations = {