Author: marti Date: Wed May 18 21:33:50 2011 GMT Module: packages Tag: HEAD ---- Log message: - works with 2.31 stable
---- Files affected: packages/transmission: transmission-preallocate_syscall.patch (1.16 -> 1.17) ---- Diffs: ================================================================ Index: packages/transmission/transmission-preallocate_syscall.patch diff -u packages/transmission/transmission-preallocate_syscall.patch:1.16 packages/transmission/transmission-preallocate_syscall.patch:1.17 --- packages/transmission/transmission-preallocate_syscall.patch:1.16 Mon Apr 11 17:38:27 2011 +++ packages/transmission/transmission-preallocate_syscall.patch Wed May 18 23:33:45 2011 @@ -1,9 +1,10 @@ ---- transmission-2.21/configure.ac~ 2011-02-24 23:12:10.304798067 +0100 -+++ transmission-2.21/configure.ac 2011-02-24 23:14:30.981464735 +0100 -@@ -99,6 +99,14 @@ +diff -ur transmission-2.30b1.orig/configure.ac transmission-2.30b1/configure.ac +--- transmission-2.30b1.orig/configure.ac 2011-04-01 03:28:41.000000000 +0200 ++++ transmission-2.30b1/configure.ac 2011-04-08 14:31:31.233502737 +0200 +@@ -108,6 +108,14 @@ AC_HEADER_STDC AC_HEADER_TIME - + +AC_MSG_CHECKING([for SYS_fallocate]) +AC_TRY_LINK([#include <sys/syscall.h> +#include <sys/types.h>], @@ -12,13 +13,13 @@ + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) + - AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs]) + AC_CHECK_HEADERS([stdbool.h]) + AC_CHECK_FUNCS([iconv_open pread pwrite lrintf strlcpy daemon dirname basename strcasecmp localtime_r fallocate64 posix_fallocate memmem strsep strtold syslog valloc getpagesize posix_memalign statvfs htonll ntohll]) AC_PROG_INSTALL - AC_PROG_MAKE_SET -diff -ur transmission-2.00-orig//libtransmission/fdlimit.c transmission-2.00/libtransmission/fdlimit.c ---- transmission-2.00-orig//libtransmission/fdlimit.c 2010-06-17 09:10:46.000000000 -0600 -+++ transmission-2.00/libtransmission/fdlimit.c 2010-06-18 17:06:22.000000000 -0600 -@@ -31,6 +31,10 @@ +diff -ur transmission-2.30b1.orig/libtransmission/fdlimit.c transmission-2.30b1/libtransmission/fdlimit.c +--- transmission-2.30b1.orig/libtransmission/fdlimit.c 2011-04-01 03:28:34.000000000 +0200 ++++ transmission-2.30b1/libtransmission/fdlimit.c 2011-04-08 14:34:14.120502738 +0200 +@@ -29,6 +29,10 @@ #include <fcntl.h> #endif @@ -29,17 +30,18 @@ #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 ); -@@ -168,6 +172,12 @@ +@@ -150,6 +154,14 @@ 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 ) { -Only in transmission-2.00/libtransmission: fdlimit.c.orig ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/transmission/transmission-preallocate_syscall.patch?r1=1.16&r2=1.17&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit