Changeset 8575


Ignore:
Timestamp:
May 31, 2009, 9:20:49 PM (12 years ago)
Author:
charles
Message:

(trunk libT) on platforms that support it, use POSIX_FADV_SEQUENTIAL instead of POSIX_FADV_RANDOM. (http://trac.transmissionbt.com/ticket/1521#comment:25)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8389 r8575  
    321321    /* open the file */
    322322    flags = doWrite ? ( O_RDWR | O_CREAT ) : O_RDONLY;
    323 #ifdef O_RANDOM
    324     flags |= O_RANDOM
     323#ifdef O_SEQUENTIAL
     324    flags |= O_SEQUENTIAL;
    325325#endif
    326326#ifdef O_LARGEFILE
     
    343343
    344344#ifdef HAVE_POSIX_FADVISE
    345     posix_fadvise( file->fd, 0, 0, POSIX_FADV_RANDOM );
     345    posix_fadvise( file->fd, 0, 0, POSIX_FADV_SEQUENTIAL );
    346346#endif
    347347
Note: See TracChangeset for help on using the changeset viewer.