Support offset and length in file_source.