packages: transmission/transmission-preallocate_syscall.patch - up to fit 1.91

duddits duddits at pld-linux.org
Tue Feb 23 10:44:23 CET 2010


Author: duddits                      Date: Tue Feb 23 09:44:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to fit 1.91

---- Files affected:
packages/transmission:
   transmission-preallocate_syscall.patch (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: packages/transmission/transmission-preallocate_syscall.patch
diff -u packages/transmission/transmission-preallocate_syscall.patch:1.8 packages/transmission/transmission-preallocate_syscall.patch:1.9
--- packages/transmission/transmission-preallocate_syscall.patch:1.8	Sat Feb 20 15:25:38 2010
+++ packages/transmission/transmission-preallocate_syscall.patch	Tue Feb 23 10:44:18 2010
@@ -1,22 +1,24 @@
---- transmission-1.90/configure.ac.orig	2010-02-20 15:17:44.000000000 +0100
-+++ transmission-1.90/configure.ac	2010-02-20 15:19:12.000000000 +0100
-@@ -96,6 +96,14 @@
+diff -burNp transmission-1.91/configure.ac transmission-1.91-dud/configure.ac
+--- transmission-1.91/configure.ac	2010-02-22 03:42:55.000000000 +0100
++++ transmission-1.91-dud/configure.ac	2010-02-23 10:37:08.076245513 +0100
+@@ -108,6 +108,14 @@ fi
  AC_HEADER_STDC
  AC_HEADER_TIME
  
 +AC_MSG_CHECKING([for SYS_fallocate])
 +AC_TRY_LINK([#include <sys/syscall.h>
 +#include <sys/types.h>],
-+            [return syscall(SYS_fallocate, 0, 0, (loff_t) 0, (loff_t) 0);],
-+            [AC_DEFINE([HAVE_SYS_FALLOCATE],[1],[Defined if you have the SYS_fallocate syscall number])
-+             AC_MSG_RESULT([yes])],
-+            [AC_MSG_RESULT([no])])
++		[return syscall(SYS_fallocate, 0, 0, (loff_t) 0, (loff_t) 0);],
++		[AC_DEFINE([HAVE_SYS_FALLOCATE],[1],[Defined if you have the SYS_fallocate syscall number])
++		AC_MSG_RESULT([yes])],
++		[AC_MSG_RESULT([no])])
 +
- AC_CHECK_FUNCS([pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc])
+ AC_CHECK_FUNCS([pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strtold syslog valloc getpagesize posix_memalign])
  AC_PROG_INSTALL
  AC_PROG_MAKE_SET
---- transmission-1.83/libtransmission/fdlimit.c.orig	2010-01-29 02:01:32.000000000 +0100
-+++ transmission-1.83/libtransmission/fdlimit.c	2010-02-07 05:53:09.000000000 +0100
+diff -burNp transmission-1.91/libtransmission/fdlimit.c transmission-1.91-dud/libtransmission/fdlimit.c
+--- transmission-1.91/libtransmission/fdlimit.c	2010-02-22 03:42:48.000000000 +0100
++++ transmission-1.91-dud/libtransmission/fdlimit.c	2010-02-23 10:40:51.375812134 +0100
 @@ -43,6 +43,10 @@
   #include <fcntl.h>
  #endif
@@ -25,18 +27,18 @@
 + #include <sys/syscall.h>
 +#endif
 +
- #ifdef HAVE_XFS_XFS_H
-  #include <xfs/xfs.h>
- #endif
-@@ -168,6 +172,12 @@
+ #ifdef HAVE_FALLOCATE64
+   /* FIXME can't find the right #include voodoo to pick up the declaration.. */
+   extern int fallocate64( int fd, int mode, uint64_t offset, uint64_t len );
+@@ -179,6 +183,12 @@ preallocateFileFull( const char * filena
              success = !fcntl( fd, F_PREALLOCATE, &fst );
          }
  # endif
 +# ifdef HAVE_SYS_FALLOCATE
-+        if( !success )
-+        {
-+            success = !syscall( SYS_fallocate, fd, 0, (loff_t) 0, (loff_t) length );
-+        }
++	if( !success )
++	{
++	    success = !syscall( SYS_fallocate, fd, 0, (loff_t) 0, (loff_t) length );
++	}
 +# endif
  # ifdef HAVE_POSIX_FALLOCATE
          if( !success )
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/transmission/transmission-preallocate_syscall.patch?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list