Skip to content

Commit

Permalink
udf: add llseek method
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Jan Kara committed Sep 8, 2008
1 parent 97e1cfb commit 5c89468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/udf/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 5c89468

Please sign in to comment.