Ignore:
Timestamp:
Jun 14, 2009, 6:32:09 PM (13 years ago)
Author:
charles
Message:

(trunk) remove the test for fallocate(), since we used posix_fallocate() as a fallback anyway. <http://www.lucas-nussbaum.net/blog/?p=332> says: "Glibc does have posix_fallocate(), which implements the POSIX interface. posix_fallocate() is wired to use the fallocate system call, for sufficiently modern versions of glibc."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8654 r8691  
    4444#endif
    4545
    46 #ifdef HAVE_FALLOCATE
    47  #include <linux/falloc.h>
    48 #endif
    49 
    5046#ifdef HAVE_XFS_XFS_H
    5147 #include <xfs/xfs.h>
     
    179175            fst.fst_bytesalloc = 0;
    180176            success = !fcntl( fd, F_PREALLOCATE, &fst );
    181         }
    182 # endif
    183 # ifdef HAVE_FALLOCATE
    184         if( !success )
    185         {
    186             success = !fallocate( fd, FALLOC_FL_KEEP_SIZE, 0, length );
    187177        }
    188178# endif
Note: See TracChangeset for help on using the changeset viewer.