Commit 2f9dcc35 authored by Laurent Aimar's avatar Laurent Aimar

Removed prefetch whole file advise in the file access.

On all my linux PC (debian sid and lenny) it has really bad side effects,
mostly when seeking and at startup up (slow or even blocking), and makes
sshfs unusable.
parent 0926bbb6
...@@ -322,8 +322,6 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len ) ...@@ -322,8 +322,6 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
p_access->info.i_update |= INPUT_UPDATE_SIZE; p_access->info.i_update |= INPUT_UPDATE_SIZE;
} }
#endif #endif
/* Pre-fetch until the end (within memory limits) */
posix_fadvise (fd, p_access->info.i_pos, 0, POSIX_FADV_WILLNEED);
} }
return i_ret; return i_ret;
} }
......
Markdown is supported
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