packages: transmission/transmission-preallocate_syscall.patch - only SYS_fa...
charles
charles at pld-linux.org
Sat Jun 20 01:07:03 CEST 2009
Author: charles Date: Fri Jun 19 23:07:03 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- only SYS_fallocate
---- Files affected:
packages/transmission:
transmission-preallocate_syscall.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/transmission/transmission-preallocate_syscall.patch
diff -u packages/transmission/transmission-preallocate_syscall.patch:1.2 packages/transmission/transmission-preallocate_syscall.patch:1.3
--- packages/transmission/transmission-preallocate_syscall.patch:1.2 Thu Jun 18 18:33:00 2009
+++ packages/transmission/transmission-preallocate_syscall.patch Sat Jun 20 01:06:58 2009
@@ -29,7 +29,7 @@
#ifdef HAVE_XFS_XFS_H
#include <xfs/xfs.h>
#endif
-@@ -176,6 +181,16 @@
+@@ -176,6 +181,12 @@
success = !fcntl( fd, F_PREALLOCATE, &fst );
}
# endif
@@ -37,10 +37,6 @@
+ if( !success )
+ {
+ success = !syscall( SYS_fallocate, fd, FALLOC_FL_KEEP_SIZE, 0, (loff_t)length );
-+ if( !success )
-+ {
-+ success = !syscall( SYS_ftruncate, fd, (loff_t)length );
-+ }
+ }
+# endif
# ifdef HAVE_POSIX_FALLOCATE
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/transmission/transmission-preallocate_syscall.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list