diff --git a/downloadthread.cpp b/downloadthread.cpp index 8a62e4e..2516230 100644 --- a/downloadthread.cpp +++ b/downloadthread.cpp @@ -603,6 +603,11 @@ bool DownloadThread::_verify() QElapsedTimer t1; t1.start(); +#ifdef Q_OS_LINUX + /* Make sure we are reading from the drive and not from cache */ + fcntl(_file.handle(), F_SETFL, O_DIRECT | fcntl(_file.handle(), F_GETFL)); +#endif + if (!_firstBlock) { _file.seek(0);