diff --git a/src/core/file_unix.cpp b/src/core/file_unix.cpp index a743d0e..8d60a2e 100644 --- a/src/core/file_unix.cpp +++ b/src/core/file_unix.cpp @@ -222,8 +222,10 @@ void cFile::Open( const TSTRING& sFileNameC, uint32 flags ) #endif #ifdef HAVE_POSIX_FADVISE - if (flags & OPEN_SCANNING) + if (flags & OPEN_SCANNING) { posix_fadvise(fh,0,0, POSIX_FADV_SEQUENTIAL); + posix_fadvise(fh,0,0, POSIX_FADV_NOREUSE); + } #endif }