Skip to content
Commit 66a362a2 authored by Jan Andres's avatar Jan Andres Committed by Al Viro
Browse files

isofs: Fix lseek() to position beyond 4 GB



isofs supports files larger than 4 GB by using multi-extent files.
However an lseek() to a position beyond 4 GB in such a file will
fail with EINVAL, because s_maxbytes in the isofs superblock is
initialized to 2^32-1, and generic_file_llseek() checks against
that value.

I therefore suggest increasing the value of s_maxbytes to have
full support for large files in isofs. With multi-extent files, file
size is only limited by the maximum size of the file system (8 TB),
so this seems a reasonable value for s_maxbytes.

Signed-off-by: default avatarJan Andres <jandres@gmx.net>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 532490f0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment